/* =====================================================
   Quick QR — Shared styles for secondary pages
   Optimized: shared rules first, theme-specific rules next
   ===================================================== */

/* ---------- Page layout ---------- */
.static-page-main {
    width: min(960px, calc(100% - 2rem));
    margin: 2.5rem auto 4rem;
}

.static-page-hero {
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border, rgba(127, 127, 127, 0.24));
    border-radius: 1.25rem;
    background: var(--surface, rgba(127, 127, 127, 0.06));
}

.static-page-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--accent, #8b9cff);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.static-page-hero h1 {
    margin: 0 0 0.8rem;
    color: var(--text-primary, inherit);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.static-page-hero p {
    max-width: 68ch;
    margin: 0;
    color: var(--text-muted, #777);
    line-height: 1.75;
}

.static-page-content {
    display: grid;
    gap: 1rem;
}

.static-page-card {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--border, rgba(127, 127, 127, 0.24));
    border-radius: 1rem;
    background: var(--surface, rgba(127, 127, 127, 0.04));
}

.static-page-card h2 {
    margin: 0 0 0.7rem;
    color: var(--text-primary, inherit);
    font-size: 1.3rem;
    line-height: 1.45;
}

.static-page-card h3 {
    margin: 1.25rem 0 0.45rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.static-page-card p,
.static-page-card li {
    color: var(--text-muted, #777);
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.static-page-card p:last-child,
.static-page-card ul:last-child {
    margin-bottom: 0;
}

.static-page-card ul {
    padding-left: 1.25rem;
}

.static-page-card a {
    color: var(--accent, #8b9cff);
    text-underline-offset: 0.18em;
}

.static-page-note {
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--accent, #8b9cff);
    border-radius: 0.35rem;
    background: var(--surface, rgba(127, 127, 127, 0.06));
}

.static-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.static-page-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border, rgba(127, 127, 127, 0.28));
    border-radius: 0.7rem;
    color: var(--text-primary, inherit);
    font-weight: 650;
    text-decoration: none;
}

.static-page-actions a:hover,
.static-page-actions a:focus-visible {
    border-color: var(--accent, #8b9cff);
}

.static-page-meta {
    margin-top: 1rem !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---------- Readability variables ---------- */
:root {
    --page-content-color: #D1D5DB;
    --page-heading-color: #F8FAFC;
}

:root[data-theme="light"] {
    --page-content-color: #263244;
    --page-heading-color: #0F1522;
}

.static-page-hero > p:not(.static-page-meta),
.static-page-card p,
.static-page-card li {
    color: var(--page-content-color);
}

.static-page-hero > p:not(.static-page-meta) {
    font-size: 1.05rem;
}

.static-page-card p,
.static-page-card li {
    font-size: 1rem;
}

.static-page-hero h1,
.static-page-card h2,
.static-page-card h3 {
    color: var(--page-heading-color);
}

.static-page-meta {
    color: var(--page-content-color);
    opacity: 0.85;
}

/* ---------- Light theme: gradients, text and 3D depth ---------- */
:root[data-theme="light"] .static-page-hero {
    background: linear-gradient(
        135deg,
        #C5E0FC 0%,
        #E9F3FD 55%,
        #F7FAFC 100%
    );

    border: 2px solid #8DC5F2;
    border-bottom: 4px solid #8ABBE8;
    border-radius: 18px;

    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.85),
        inset 0 -3px 7px rgba(59, 130, 246, 0.07),
        0 5px 0 rgba(100, 160, 210, 0.12),
        0 9px 18px rgba(37, 99, 235, 0.08);

    transform: translateY(0);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

:root[data-theme="light"] .static-page-card {
    background: linear-gradient(
        135deg,
        #D3E7FD 0%,
        #E3EFFC 48%,
        #FFFFFF 100%
    );

    border: 2px solid #B5D7F3;
    border-bottom: 4px solid #A4CBEA;
    border-radius: 16px;

    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.9),
        inset 0 -3px 8px rgba(59, 130, 246, 0.06),
        0 4px 0 rgba(100, 160, 210, 0.10),
        0 7px 14px rgba(37, 99, 235, 0.06);

    transform: translateY(0);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

:root[data-theme="light"] .static-page-hero h1,
:root[data-theme="light"] .static-page-card h2,
:root[data-theme="light"] .static-page-card h3 {
    color: #0F1522;
    font-family: inherit;
    font-weight: 700;
}

:root[data-theme="light"] .static-page-hero > p:not(.static-page-meta),
:root[data-theme="light"] .static-page-card p,
:root[data-theme="light"] .static-page-card li {
    color: #263244;
    font-family: inherit;
    font-weight: 400;
}

:root[data-theme="light"] .static-page-meta {
    color: #475569;
    font-family: inherit;
    font-weight: 400;
    opacity: 1;
}

:root[data-theme="light"] .static-page-card a,
:root[data-theme="light"] .static-page-hero a {
    color: #174F86;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ---------- Dark theme: purple/teal gradients and 3D depth ---------- */
:root[data-theme="dark"] .static-page-hero {
    background: linear-gradient(
        135deg,
        #30234D 0%,
        #252844 52%,
        #2A6270 100%
    );

    border: 2px solid #7770C9;
    border-bottom: 4px solid #54B8BD;
    border-radius: 18px;

    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.08),
        inset 0 -3px 9px rgba(130, 110, 230, 0.12),
        0 5px 0 rgba(83, 70, 151, 0.45),
        0 10px 22px rgba(0, 0, 0, 0.24);

    transform: translateY(0);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

:root[data-theme="dark"] .static-page-card {
    background: linear-gradient(
        135deg,
        #2A2144 0%,
        #22283F 48%,
        #225966 100%
    );

    border: 2px solid #5F5A9E;
    border-bottom: 4px solid #438F9A;
    border-radius: 16px;

    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.07),
        inset 0 -3px 8px rgba(103, 190, 198, 0.07),
        0 4px 0 rgba(66, 57, 119, 0.45),
        0 7px 16px rgba(0, 0, 0, 0.20);

    transform: translateY(0);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

:root[data-theme="dark"] .static-page-hero h1,
:root[data-theme="dark"] .static-page-card h2,
:root[data-theme="dark"] .static-page-card h3 {
    color: #E7E3FF;
}

/* ---------- Hover lift for theme panels ---------- */
@media (hover: hover) {
    :root[data-theme="light"] .static-page-hero:hover,
    :root[data-theme="light"] .static-page-card:hover {
        transform: translateY(-3px);

        box-shadow:
            inset 0 2px 3px rgba(255, 255, 255, 0.9),
            inset 0 -3px 8px rgba(59, 130, 246, 0.07),
            0 6px 0 rgba(100, 160, 210, 0.12),
            0 13px 22px rgba(37, 99, 235, 0.11);
    }

    :root[data-theme="light"] .static-page-card:hover {
        border-color: #8FC2EC;
    }

    :root[data-theme="dark"] .static-page-hero:hover {
        transform: translateY(-3px);
        border-color: #958BE8;
        border-bottom-color: #76D9D8;

        box-shadow:
            inset 0 2px 4px rgba(255, 255, 255, 0.09),
            inset 0 -3px 9px rgba(130, 110, 230, 0.15),
            0 6px 0 rgba(83, 70, 151, 0.48),
            0 14px 26px rgba(0, 0, 0, 0.30);
    }

    :root[data-theme="dark"] .static-page-card:hover {
        transform: translateY(-3px);
        border-color: #817AC4;
        border-bottom-color: #59B5BD;

        box-shadow:
            inset 0 2px 4px rgba(255, 255, 255, 0.08),
            inset 0 -3px 8px rgba(103, 190, 198, 0.09),
            0 6px 0 rgba(66, 57, 119, 0.48),
            0 12px 22px rgba(0, 0, 0, 0.28);
    }
}

/* ---------- CTA links: scanner, generator and contact ---------- */
:is(.static-page-card, .static-page-hero)
a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    margin: 5px 6px 8px 0;

    border: 2px solid;
    border-bottom-width: 4px;
    border-radius: 10px;

    font-weight: 600;
    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

:root[data-theme="light"] :is(.static-page-card, .static-page-hero)
a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]) {
    color: #174A7C;
    background: linear-gradient(135deg, #FFFFFF, #E2F0FF);

    border-color: #91BCE0;
    border-bottom-color: #659AC7;

    box-shadow:
        0 3px 0 rgba(70, 120, 170, 0.12),
        0 5px 10px rgba(37, 99, 235, 0.08);
}

:root[data-theme="dark"] :is(.static-page-card, .static-page-hero)
a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]) {
    color: #E7E3FF;
    background: linear-gradient(135deg, #332A50, #243E49);

    border-color: #7770C9;
    border-bottom-color: #54B8BD;

    box-shadow:
        0 3px 0 rgba(20, 15, 45, 0.35),
        0 5px 12px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
    :root[data-theme="light"] :is(.static-page-card, .static-page-hero)
    a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]):hover {
        transform: translateY(-2px);
        border-color: #659AC7;

        box-shadow:
            0 4px 0 rgba(70, 120, 170, 0.14),
            0 8px 14px rgba(37, 99, 235, 0.13);
    }

    :root[data-theme="dark"] :is(.static-page-card, .static-page-hero)
    a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]):hover {
        transform: translateY(-2px);
        border-color: #A29AFF;
        border-bottom-color: #76D9D8;

        box-shadow:
            0 4px 0 rgba(20, 15, 45, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.28);
    }
}

:is(.static-page-card, .static-page-hero)
a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]):focus-visible {
    outline: 2px solid #67C9CF;
    outline-offset: 3px;
}

/* ---------- Responsive layout ---------- */
@media (max-width: 600px) {
    .static-page-main {
        width: min(960px, calc(100% - 1rem));
        margin-top: 1rem;
    }

    .static-page-hero,
    .static-page-card,
    :root[data-theme="light"] .static-page-hero,
    :root[data-theme="light"] .static-page-card,
    :root[data-theme="dark"] .static-page-hero,
    :root[data-theme="dark"] .static-page-card {
        border-radius: 0.85rem;
    }

    .static-page-hero > p:not(.static-page-meta),
    .static-page-card p,
    .static-page-card li {
        font-size: 1rem;
    }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    :root[data-theme="light"] .static-page-hero,
    :root[data-theme="light"] .static-page-card,
    :root[data-theme="dark"] .static-page-hero,
    :root[data-theme="dark"] .static-page-card,
    :is(.static-page-card, .static-page-hero)
    a:is([href*="#scanner"], [href*="#generator"], [href*="contact.html"]) {
        transition: none;
    }
}



/* Crypto Donation Section */
.crypto-donation-section {
    width: 100%;
    max-width: 1000px;
    margin: 35px auto;
}

.crypto-donation-section > h2 {
    text-align: center;
    margin-bottom: 28px;
}

.crypto-wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.crypto-wallet-card {
    min-width: 0;
    padding: 22px;
    border: 5px solid #c9e1d4;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7f4f4, #f1b4b4);
    box-shadow: 0 5px 0 #d2e6da, 0 10px 22px rgba(35, 90, 65, 0.10);
    color: #203a30;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crypto-wallet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #d2e6da, 0 14px 26px rgba(35, 90, 65, 0.14);
}

.crypto-wallet-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.crypto-wallet-heading h3 {
    margin: 0;
    font-size: 1.05rem;
}

.crypto-wallet-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.crypto-wallet-address {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(110, 160, 130, 0.12);
    font-size: 0.78rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    user-select: text;
}

.crypto-copy-btn {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #6aa889;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f1e7, #60ee9d);
    color: #214b36;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.crypto-copy-btn:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

/* Dark Theme */
html[data-theme="dark"] .crypto-wallet-card {
    background: linear-gradient(145deg, #4b8175, #193a32);
    border-color: #3b6555;
    box-shadow: 0 5px 0 #29483d, 0 10px 22px rgba(0, 0, 0, 0.20);
    color: #e8f4ed;
}

html[data-theme="dark"] .crypto-wallet-card:hover {
    box-shadow: 0 8px 0 #29483d, 0 14px 26px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .crypto-wallet-address {
    background: rgba(150, 210, 175, 0.10);
    color: #e8f4ed;
}

html[data-theme="dark"] .crypto-copy-btn {
    background: linear-gradient(135deg, #9356d8, #394c8a);
    border-color: #568d70;
    color: #effff4;
}

@media (max-width: 560px) {
    .crypto-wallet-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .crypto-wallet-card {
        padding: 18px;
    }
}


/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #d4dfeb;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f1f5fa);
    color: #26364a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-method-primary {
    border-color: #91c9ad;
    background: linear-gradient(145deg, #f0fff5, #dff5e7);
    box-shadow: 0 4px 0 #c7e5d3;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.contact-method-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-method-text strong {
    font-size: 1rem;
}

.contact-method-text span {
    font-size: 0.9rem;
    opacity: 0.85;
}

html[data-theme="dark"] .contact-method {
    background: linear-gradient(145deg, #25313f, #1d2834);
    border-color: #46566a;
    color: #edf3fa;
}

html[data-theme="dark"] .contact-method-primary {
    background: linear-gradient(145deg, #203d30, #1a3027);
    border-color: #4e8b6b;
    box-shadow: 0 4px 0 #315642;
}

@media (max-width: 560px) {
    .contact-method {
        padding: 15px;
        gap: 12px;
    }

    .contact-method-icon {
        width: 36px;
        height: 36px;
    }
}