/*
Theme Name: Yousr Donate
Theme URI: https://digitalize.sd
Author: Digitalize Lab
Author URI: https://digitalize.sd
Description: A donation landing theme inspired by the Yousr platform with custom cases and CashiPay support.
Version: 1.0
Requires at least: 5.7
Requires PHP: 7.4
Text Domain: yousr-donate
*/

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --primary: #0e4f31;
  --secondary: #d92b2b;
  --accent: #f2c94c;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --surface: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.bg-dark {
  background: var(--dark);
}

.text-dark {
  color: var(--dark);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: var(--light);
  color: #1f2937;
  min-height: 100vh;
  direction: rtl;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
}

.progress-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

#cashipay-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
}

#cashipay-modal .modal-panel {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

#cashipay-modal .modal-panel header {
  padding: 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

#cashipay-modal .modal-panel footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

#cashipay-modal .modal-panel footer button {
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.text-sudan-gold {
  color: #f2c94c;
}

.bg-sudan-gold {
  background: #f2c94c;
}

.text-sudan-dark {
  color: #0f3d1a;
}

.qr-frame {
  border: 2px dashed rgba(14, 79, 49, 0.3);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.qr-frame img {
  max-width: 220px;
  max-height: 220px;
  display: block;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .glass-nav .container {
    flex-wrap: wrap;
  }
}
