/**
 * GiveCards.Online — universal design system (overrides BirthdayCard festive theme).
 * FILE_PATH: includes/css/givecards-theme.css
 * Load after custom.min.css on every page.
 */

:root {
    --gc-ink: #1a2332;
    --gc-ink-muted: #5c6b7a;
    --gc-paper: #f4f2ec;
    --gc-paper-warm: #faf8f4;
    --gc-surface: #ffffff;
    --gc-primary: #2d6a7a;
    --gc-primary-dark: #1e4d5a;
    --gc-primary-light: #3d8a9e;
    --gc-accent: #c9a227;
    --gc-accent-hover: #b08e1f;
    --gc-secondary: #5b4d8a;
    --gc-teal-soft: #e8f2f4;
    --gc-gold-soft: #f5efd9;
    --gc-border: #e2e0d8;
    --gc-radius: 12px;
    --gc-radius-lg: 20px;
    --gc-shadow: 0 4px 24px rgba(26, 35, 50, 0.07);
    --gc-shadow-lg: 0 12px 40px rgba(26, 35, 50, 0.1);
    --primary-color: var(--gc-primary);
    --secondary-color: var(--gc-secondary);
    --accent-color: var(--gc-accent);
    --border-radius: var(--gc-radius);
    --box-shadow: var(--gc-shadow);
}

/* ----- Base ----- */
body.givecards-site {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    color: var(--gc-ink);
    background-color: var(--gc-paper);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 106, 122, 0.12), transparent),
        linear-gradient(180deg, var(--gc-paper-warm) 0%, var(--gc-paper) 100%);
    background-attachment: fixed;
}

body.givecards-site .site-content {
    padding-top: 0.5rem;
}

body.givecards-site .content-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 1.5rem;
    margin: 0 auto;
}

/* ----- Header ----- */
body.givecards-site .site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gc-border);
    box-shadow: 0 1px 0 rgba(26, 35, 50, 0.04);
    padding: 0.75rem 0;
}

body.givecards-site .site-logo {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gc-ink);
    text-shadow: none;
    letter-spacing: -0.02em;
}

body.givecards-site .site-logo::after {
    content: none !important;
}

body.givecards-site .site-logo .gc-logo-accent,
body.givecards-site .site-logo .text-primary {
    color: var(--gc-primary) !important;
}

body.givecards-site .btn-nav-menu {
    color: var(--gc-primary);
    border: 1px solid var(--gc-border);
    background: var(--gc-surface);
    border-radius: var(--gc-radius);
}

body.givecards-site .btn-nav-menu:hover {
    background: var(--gc-teal-soft);
    border-color: var(--gc-primary-light);
}

/* ----- Sidebar nav ----- */
body.givecards-site .nav-sidebar {
    background: linear-gradient(180deg, #1e3a47 0%, #1a2332 100%);
}

body.givecards-site .nav-sidebar::before {
    background: linear-gradient(90deg, var(--gc-primary), var(--gc-accent));
}

body.givecards-site .nav-sidebar-section-title {
    color: var(--gc-accent);
}

body.givecards-site .nav-sidebar-link.active {
    background: rgba(45, 106, 122, 0.35);
}

/* ----- Footer ----- */
body.givecards-site .site-footer {
    background: var(--gc-ink);
    color: rgba(255, 255, 255, 0.85);
    border-top: 3px solid var(--gc-primary);
}

body.givecards-site .site-footer .footer-decoration-top {
    background: linear-gradient(90deg, var(--gc-primary), var(--gc-accent), var(--gc-secondary));
    height: 3px;
}

body.givecards-site .footer-link {
    color: rgba(255, 255, 255, 0.75);
}

body.givecards-site .footer-link:hover {
    color: var(--gc-accent);
}

/* ----- Cards & sections ----- */
body.givecards-site .content-card {
    background: var(--gc-surface);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-lg);
    box-shadow: var(--gc-shadow);
}

body.givecards-site .content-card::before {
    display: none !important;
}

body.givecards-site .section-title {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--gc-ink);
    border-bottom-color: var(--gc-teal-soft);
    font-weight: 600;
}

body.givecards-site .section-title .title-icon,
body.givecards-site .gc-icon-wrap {
    color: var(--gc-primary);
}

body.givecards-site .festive-page-title {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--gc-ink);
}

body.givecards-site .festive-page-title::before,
body.givecards-site .festive-page-title::after {
    content: none !important;
}

body.givecards-site .festive-section::before {
    content: none !important;
}

/* ----- Hero (homepage) ----- */
body.givecards-site .gc-hero {
    position: relative;
    padding: 4rem 0 4.5rem;
    margin: 0 -15px 2rem;
    overflow: hidden;
    background: linear-gradient(145deg, #1e4d5a 0%, #2d6a7a 40%, #3d5a80 100%);
    border-radius: 0 0 var(--gc-radius-lg) var(--gc-radius-lg);
}

body.givecards-site .gc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(91, 77, 138, 0.2), transparent 40%);
    pointer-events: none;
}

body.givecards-site .gc-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M30 8l4 12h12l-10 8 4 12-10-8-10 8 4-12-10-8h12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

body.givecards-site .gc-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
}

body.givecards-site .gc-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

body.givecards-site .gc-hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

body.givecards-site .gc-hero .gc-highlight {
    color: var(--gc-accent);
}

body.givecards-site .gc-hero-lead {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

body.givecards-site .gc-occasion-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

body.givecards-site .gc-occasion-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

/* ----- Buttons ----- */
body.givecards-site .btn-primary,
body.givecards-site .festive-button.primary {
    background: var(--gc-primary);
    border-color: var(--gc-primary);
    border-radius: var(--gc-radius);
    font-weight: 600;
}

body.givecards-site .btn-primary:hover,
body.givecards-site .festive-button.primary:hover {
    background: var(--gc-primary-dark);
    border-color: var(--gc-primary-dark);
}

body.givecards-site .btn-outline-primary {
    color: var(--gc-primary);
    border-color: var(--gc-primary);
    border-radius: var(--gc-radius);
    font-weight: 600;
}

body.givecards-site .btn-outline-primary:hover {
    background: var(--gc-teal-soft);
    color: var(--gc-primary-dark);
}

body.givecards-site .gc-hero .btn-light {
    background: #fff;
    color: var(--gc-primary-dark);
    border: none;
    font-weight: 700;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
}

body.givecards-site .gc-hero .btn-outline-light {
    border-radius: var(--gc-radius);
    border-width: 2px;
    font-weight: 600;
}

body.givecards-site .gc-hero .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ----- Type cards grid ----- */
body.givecards-site .gc-type-card {
    background: var(--gc-surface);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

body.givecards-site .gc-type-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--gc-shadow-lg);
    border-color: var(--gc-primary-light);
}

body.givecards-site .gc-type-card .gc-type-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

body.givecards-site .gc-type-card .gc-type-icon.icon-birthday { background: linear-gradient(135deg, #e07a5f, #c45c4a); }
body.givecards-site .gc-type-card .gc-type-icon.icon-thank_you { background: linear-gradient(135deg, #2d6a7a, #1e4d5a); }
body.givecards-site .gc-type-card .gc-type-icon.icon-congratulations { background: linear-gradient(135deg, #c9a227, #a8841a); }
body.givecards-site .gc-type-card .gc-type-icon.icon-sympathy { background: linear-gradient(135deg, #5b6b7a, #3d4a56); }
body.givecards-site .gc-type-card .gc-type-icon.icon-holiday { background: linear-gradient(135deg, #5b4d8a, #433a68); }
body.givecards-site .gc-type-card .gc-type-icon.icon-custom { background: linear-gradient(135deg, #3d8a9e, #5b4d8a); }

body.givecards-site .gc-type-card .gc-type-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gc-ink);
}

/* ----- Steps ----- */
body.givecards-site .gc-step-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

body.givecards-site .gc-step-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--gc-teal-soft);
    color: var(--gc-primary);
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 1rem;
}

body.givecards-site .gc-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gc-primary), var(--gc-primary-light));
}

/* ----- Stats ----- */
body.givecards-site .gc-stat-card {
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-primary-dark) 100%);
    border-radius: var(--gc-radius);
    padding: 1.25rem;
    color: #fff;
    text-align: center;
}

body.givecards-site .gc-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Fraunces', serif;
}

body.givecards-site .gc-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

/* ----- Feature tiles ----- */
body.givecards-site .gc-feature-tile {
    background: var(--gc-paper-warm);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1.25rem;
    height: 100%;
    border-left: 4px solid var(--gc-primary);
}

body.givecards-site .gc-feature-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gc-ink);
    margin-bottom: 0.35rem;
}

/* ----- CTA band ----- */
body.givecards-site .gc-cta-band {
    background: linear-gradient(135deg, var(--gc-gold-soft) 0%, var(--gc-teal-soft) 100%);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-lg);
}

/* ----- Override birthday hero from index.css / custom.css ----- */
body.givecards-site .hero-section {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

body.givecards-site .hero-section::before {
    display: none !important;
}

body.givecards-site .text-primary {
    color: var(--gc-primary) !important;
}

body.givecards-site a {
    color: var(--gc-primary);
}

body.givecards-site a:hover {
    color: var(--gc-primary-dark);
}

/* ----- Forms (create, login) ----- */
body.givecards-site .form-control:focus {
    border-color: var(--gc-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(45, 106, 122, 0.2);
}

body.givecards-site .card-header.bg-light {
    background: var(--gc-teal-soft) !important;
    border-bottom: 1px solid var(--gc-border);
}

@media (max-width: 767.98px) {
    body.givecards-site .gc-hero {
        padding: 2.5rem 0 3rem;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0 0 var(--gc-radius) var(--gc-radius);
    }
}
