/* Sora bar background elements */
.sora-bar-bg {
    background-image: url('./SoraBar.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sora-bar-bg::before {
    content: '';
    position: abs.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}  top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.8); /* Dark overlay to ensure text readability */
    z-index: 1;
}

.sora-bar-bg > * {
    position: relative;
    z-index: 2; /* Ensure content appears above the overlay */
}

/* Subtle background variant for less prominent sections */
.sora-bar-subtle {
    position: relative;
}

.sora-bar-subtle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 60%;
    height: 80%;
    background-image: url('./SoraBar.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-50%);
}

.sora-bar-subtle > * {
    position: relative;
    z-index: 1;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Twitch/Platform colors (not character-specific) */
    --primary: #9146ff;          /* Twitch purple */
    --primary-light: #b794f6;
    --primary-dark: #7c3aed;
    
    /* Bar/Tavern theme colors (from SoraBar) */
    --bar-warm: #d4a574;         /* Warm amber/wood tone */
    --bar-accent: #8b4513;       /* Rich brown */
    --bar-glow: #ffd700;         /* Golden highlight */
    --bar-shadow: #2d1810;       /* Deep brown shadow */
    
    /* Sora's actual character colors (from plushie and Bluebyte_3) */
    --sora-cream: #f5f5dc;       /* Character's primary cream/white fur */
    --sora-blue: #4a90e2;        /* Blue clothing/accessories */
    --sora-cyan: #00bcd4;        /* Bright cyan details */
    --sora-pink: #ffb3c1;        /* Pink accents (ears, nose) */
    --sora-black: #2c2c2c;       /* Character black details */
    
    /* Enhanced secondary colors based on actual character */
    --secondary: var(--sora-blue);      /* Use character blue, not purple */
    --accent: var(--sora-cyan);         /* Character cyan for highlights */
    --accent-warm: var(--bar-warm);     /* Bar warmth */
    --accent-soft: var(--sora-pink);    /* Soft character accent */
    
    /* Neutral colors with character-appropriate tones */
    --dark: #0f0f0f;
    --dark-light: #1a1a1a;
    --dark-lighter: #2d2d2d;
    --dark-warm: var(--bar-shadow);     /* Warmer dark tone */
    
    --gray: #4a5568;
    --gray-light: #718096;
    --gray-warm: #8b7355;              /* Warmer gray */
    
    --light: var(--sora-cream);         /* Use character cream instead of stark white */
    --white: #ffffff;
    
    /* Character-accurate gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--sora-blue) 100%);
    --gradient-character: linear-gradient(135deg, var(--sora-blue) 0%, var(--sora-cyan) 100%);
    --gradient-soft: linear-gradient(135deg, var(--sora-cream) 0%, var(--sora-pink) 100%);
    --gradient-warm: linear-gradient(135deg, var(--bar-warm) 0%, var(--bar-glow) 100%);
    --gradient-bar: linear-gradient(135deg, var(--bar-shadow) 0%, var(--bar-warm) 50%, var(--bar-glow) 100%);
    --gradient-accent: linear-gradient(135deg, var(--sora-cyan) 0%, var(--sora-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-warm) 100%);
    
    /* Success and error states */
    --success: #48bb78;
    --warning: var(--bar-glow);
    --error: #f56565;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(145, 70, 255, 0.3);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    background: var(--gradient-character);
}

/* Character-themed button variant */
.btn-character {
    background: var(--gradient-character);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-character:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-warm);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray-light);
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.badge-subtitle {
    font-weight: 700;
    font-size: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(145, 70, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* Goals Section */
.goals-section {
    padding: var(--section-padding);
    background: var(--dark-light);
}

.goals-image-container {
    position: relative;
    text-align: center;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--dark-lighter);
}

.goals-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.goals-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.goals-image-container:hover .goals-overlay {
    opacity: 1;
}

.goals-image-container:hover .goals-image {
    transform: scale(1.05);
}

/* Donations Section */
.donations-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--grey-900) 0%, var(--sora-dark) 100%);
}

.donations-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.donation-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--sora-accent);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recent-donations {
    max-width: 600px;
    margin: 0 auto;
}

.recent-donations h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.donations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donation-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.donation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.donation-name {
    font-weight: 600;
    color: var(--text-primary);
}

.donation-amount {
    font-weight: 700;
    color: var(--sora-accent);
    font-family: 'Space Grotesk', sans-serif;
}

.donation-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

.no-donations, .donation-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.donation-error {
    color: var(--danger);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .donations-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .donation-stat {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .donation-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Plushie Section */
.plushie-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-warm) 100%);
}

.plushie-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.plushie-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.plushie-info .section-description {
    text-align: left;
    margin-bottom: 2rem;
}

.plushie-stats {
    margin-bottom: 2.5rem;
}

.progress-container {
    background: var(--dark-lighter);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-character);
    transition: width 0.3s ease;
    min-width: 2px; /* Ensure visibility even at low percentages */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3); /* Sora cyan glow instead of purple */
}

.progress-text {
    font-weight: 600;
    color: var(--primary);
}

.plushie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.plushie-visual {
    position: relative;
    text-align: center;
}

.plushie-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Social Section */
.social-section {
    padding: var(--section-padding);
    background: var(--dark-light);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.social-card {
    background: var(--dark-lighter);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 0.1;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.social-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.social-card p {
    color: var(--gray-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.social-link {
    color: var(--primary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--gray-light);
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: var(--gray-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 0.75rem 1rem; /* Reduced padding from 1rem to 0.75rem */
        flex-direction: column;
        gap: 0.75rem; /* Reduced gap from 1rem to 0.75rem */
    }
    
    .nav-brand h1 {
        font-size: 1.5rem; /* Make title smaller on mobile */
        margin-bottom: 0.25rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem; /* Make tagline smaller */
        opacity: 0.8;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 8rem 1rem 4rem; /* Back to more reasonable padding */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plushie-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .plushie-info .section-title,
    .plushie-info .section-description {
        text-align: center;
    }
    
    .plushie-buttons {
        justify-content: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 9rem 1rem 4rem; /* Reasonable padding for very small screens */
    }
    
    .nav {
        padding: 0.5rem 1rem; /* Even more compact on very small screens */
        gap: 0.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1.25rem; /* Even smaller title */
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
