/* ============================================================
   QUORIXTRADE — Independence Day (15 August) theme
   Modern soft-gradient accents. Dark base UI untouched.
   Activated by body.qx-iday (see includes/independence-theme.php)

   NOTE: sirf classic color-stop syntax use karo (`color 33%`),
   `color 0 33%` wali two-position shorthand se editor formatter
   declarations drop kar deta hai.
   ============================================================ */

:root {
    --iday-saffron: #ff9933;
    --iday-white: #ffffff;
    --iday-green: #138808;
    --iday-green-lit: #1ba80b;
    --iday-navy: #1c4bd8;
}

/* Soft tricolour hairline at the very top of the viewport */
body.qx-iday .qx-iday-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3000;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 51, 0) 0%,
        rgba(255, 153, 51, 0.95) 22%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(27, 168, 11, 0.95) 78%,
        rgba(19, 136, 8, 0) 100%
    );
}

/* ── Top header ─────────────────────────────────────────────── */
body.qx-iday .welcome-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 51, 0) 0%,
        rgba(255, 153, 51, 0.7) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(27, 168, 11, 0.7) 75%,
        rgba(19, 136, 8, 0) 100%
    );
}

body.qx-iday .welcome-label {
    color: #ffcfa1;
}

body.qx-iday .welcome-label::after {
    content: " 🇮🇳";
    font-size: 0.78rem;
    display: inline-block;
    animation: qxIdayWave 2.4s ease-in-out infinite;
}

@keyframes qxIdayWave {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-8deg); }
    75%      { transform: rotate(8deg); }
}

/* Profile avatar gets a soft tricolour ring */
body.qx-iday .welcome-avatar {
    border: 2px solid transparent;
    background-image:
        linear-gradient(135deg, var(--purple), var(--pink-accent)),
        linear-gradient(135deg, var(--iday-saffron), #ffffff 50%, var(--iday-green-lit));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ── Greeting strip ─────────────────────────────────────────── */
.qx-iday-strip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: 480px;
    margin: 0 auto 0.85rem;
    padding: 11px 13px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255, 153, 51, 0.12) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(27, 168, 11, 0.14) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.qx-iday-strip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--iday-saffron) 0%, #ffffff 50%, var(--iday-green-lit) 100%);
}

.qx-iday-chakra {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--iday-navy);
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    animation: qxIdaySpin 9s linear infinite;
}

.qx-iday-chakra::before,
.qx-iday-chakra::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        var(--iday-navy) 0deg,
        var(--iday-navy) 1.5deg,
        transparent 1.5deg,
        transparent 15deg
    );
}

.qx-iday-chakra::after {
    inset: 11px;
    background: var(--iday-navy);
}

@keyframes qxIdaySpin {
    to { transform: rotate(360deg); }
}

.qx-iday-copy { flex: 1; min-width: 0; }

.qx-iday-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffb066;
    background: linear-gradient(90deg, var(--iday-saffron) 0%, #ffffff 52%, #37c22b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qx-iday-sub {
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 1px;
    line-height: 1.35;
}

.qx-iday-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qx-iday-close:active { transform: scale(0.94); }

/* ── Bottom nav ──────────────────────────────────────────────
   Base dark rehta hai; flag ka rang ek fading hairline aur active
   icon ke soft chip me hai, isliye labels/icons poore readable rehte. */
body.qx-iday .bottom-nav {
    background: rgba(12, 16, 28, 0.94);
    border-top-color: transparent !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.42);
}

body.qx-iday .bottom-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1.5px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 51, 0) 0%,
        rgba(255, 153, 51, 0.85) 24%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(27, 168, 11, 0.85) 76%,
        rgba(19, 136, 8, 0) 100%
    );
}

/* Icons ko fixed chip mila — active/inactive switch par height nahi hilti */
body.qx-iday .nav-item i {
    width: 36px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

body.qx-iday .nav-item {
    color: rgba(255, 255, 255, 0.66) !important;
}

body.qx-iday .nav-item.active {
    color: var(--iday-saffron) !important;
}

body.qx-iday .nav-item.active i {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.24) 0%, rgba(27, 168, 11, 0.22) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* FAB: saffron gradient + green ring — do rang mix karne se beech me
   muddy olive aa jata tha, ring se dono rang saaf dikhte hain. */
body.qx-iday .nav-fab a {
    background: linear-gradient(145deg, #ffab55 0%, #ff8c14 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 20, 0.34), 0 0 0 2px rgba(27, 168, 11, 0.65) !important;
}

/* ── Balance card ────────────────────────────────────────────
   Solid saffron/white bands par white text gayab ho jata hai, isliye
   flag ke rang glow aur sheen ki tarah lage hain aur base deep green
   rakha hai — white text ka contrast 8:1 ke aas-paas rehta hai. */
body.qx-iday .wallet-card {
    background:
        radial-gradient(115% 85% at 0% 0%, rgba(255, 153, 51, 0.4) 0%, rgba(255, 153, 51, 0) 58%),
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0) 36%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0) 64%
        ),
        linear-gradient(135deg, #0d4413 0%, #115c19 48%, #0a3a10 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

/* Purple glow ki jagah saffron */
body.qx-iday .wallet-card::before {
    background: radial-gradient(circle, rgba(255, 153, 51, 0.2) 0%, transparent 70%) !important;
}

/* Doosra glow Ashoka Chakra watermark ban jata hai */
body.qx-iday .wallet-card::after {
    top: 50%;
    right: 10px;
    bottom: auto;
    left: auto;
    width: 130px;
    height: 130px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.16) 0deg,
        rgba(255, 255, 255, 0.16) 1.2deg,
        transparent 1.2deg,
        transparent 15deg
    ) !important;
    opacity: 0.5;
}

/* Card ke andar ke surfaces thode dark, taaki labels padhein */
body.qx-iday .wallet-action-btn,
body.qx-iday .wallet-icon {
    background: rgba(0, 0, 0, 0.26) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.qx-iday .wallet-balance-badge {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* ── Section headings ───────────────────────────────────────── */
body.qx-iday .section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 3px;
    height: 0.95em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--iday-saffron) 0%, #ffffff 50%, var(--iday-green-lit) 100%);
}

/* ── Sidebar / notifications ────────────────────────────────── */
body.qx-iday .sidebar-header,
body.qx-iday .notif-panel-head {
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(
        90deg,
        rgba(255, 153, 51, 0) 0%,
        rgba(255, 153, 51, 0.8) 25%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(27, 168, 11, 0.8) 75%,
        rgba(19, 136, 8, 0) 100%
    ) 1;
}

body.qx-iday .notif-panel-head {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(27, 168, 11, 0.1) 100%) !important;
}

/* app.css me success flash ka green hardcoded hai — flag green par le aao */
body.qx-iday .flash-success {
    background: rgba(19, 136, 8, 0.12) !important;
    border-color: rgba(19, 136, 8, 0.35) !important;
}

/* ── Login / Register cards ─────────────────────────────────── */
body.qx-iday .login-box-premium,
body.qx-iday .register-box-premium {
    position: relative;
    overflow: hidden;
}

body.qx-iday .login-box-premium::before,
body.qx-iday .register-box-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 51, 0) 0%,
        rgba(255, 153, 51, 0.9) 25%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(27, 168, 11, 0.9) 75%,
        rgba(19, 136, 8, 0) 100%
    );
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.qx-iday .welcome-label::after,
    .qx-iday-chakra { animation: none !important; }
}
