/* Modern Pay/Donate Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(148, 163, 184, 0.1);
    --wise-color: #00B9FF;
    --paypal-color: #00457C;
    --kofi-color: #F16061;
    --github-color: #6e5494;
    --custom-color: #34D399;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-5%, -5%) rotate(120deg); }
    66% { transform: translate(-10%, 5%) rotate(240deg); }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Back to Home Button */
.back-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.back-home:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
    transform: translateX(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}

.back-home svg {
    transition: transform 0.3s ease;
}

.back-home:hover svg {
    transform: translateX(-4px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Payment Section */
.payment-section {
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.cards-grid.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Payment Cards */
.payment-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Recommended Badge */
.badge-recommended {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(251, 191, 36, 0.6);
    }
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card:hover::before {
    opacity: 1;
}

.payment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(99, 102, 241, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.payment-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-icon-img {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 12px;
}

.card-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Card-specific colors */
.wise-card .card-icon {
    background: rgba(0, 185, 255, 0.1);
}

.wise-card:hover {
    border-color: rgba(0, 185, 255, 0.3);
}

.paypal-card .card-icon {
    background: rgba(0, 69, 124, 0.1);
}

.paypal-card:hover {
    border-color: rgba(0, 69, 124, 0.3);
}

.kofi-card .card-icon {
    background: rgba(241, 96, 97, 0.1);
}

.kofi-card:hover {
    border-color: rgba(241, 96, 97, 0.3);
}

.buymeacoffee-card .card-icon {
    background: rgba(255, 221, 0, 0.1);
}

.buymeacoffee-card:hover {
    border-color: rgba(255, 221, 0, 0.3);
}

.patreon-card .card-icon {
    background: rgba(255, 66, 77, 0.1);
}

.patreon-card:hover {
    border-color: rgba(255, 66, 77, 0.3);
}

.github-card .card-icon {
    background: rgba(110, 84, 148, 0.1);
}

.github-card:hover {
    border-color: rgba(110, 84, 148, 0.3);
}

.custom-card .card-icon {
    background: rgba(52, 211, 153, 0.1);
}

.custom-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
}

.card-payment-card .card-icon {
    background: rgba(0, 69, 124, 0.1);
}

.card-payment-card:hover {
    border-color: rgba(0, 69, 124, 0.3);
}

.binance-card .card-icon {
    background: rgba(243, 186, 47, 0.1);
}

.binance-card:hover {
    border-color: rgba(243, 186, 47, 0.3);
}

.nepali-card .card-icon {
    background: rgba(220, 20, 60, 0.1);
}

.nepali-card:hover {
    border-color: rgba(220, 20, 60, 0.3);
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--primary);
}

/* Thank You Section */
.thank-you {
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.emoji-float {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.thank-you-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-home {
        top: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .back-home span {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .hall-of-fame-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem 1.5rem;
    }

    .hall-of-fame-section {
        padding: 0 0.5rem;
    }

    .supporter-card.top-supporter {
        grid-column: 1;
    }

    .payment-card {
        padding: 1.5rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .thank-you-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* Dark mode enhancements (already dark by default) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f8fafc;
        --bg-darker: #ffffff;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #64748b;
        --card-bg: rgba(255, 255, 255, 0.8);
        --card-border: rgba(148, 163, 184, 0.2);
    }

    body {
        background: linear-gradient(to bottom, #ffffff, #f8fafc);
    }

    .gradient-bg {
        background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    }

    .back-home {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(148, 163, 184, 0.2);
    }

    .back-home:hover {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accordion Styles */
.accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-icon {
    font-size: 2rem;
    line-height: 1;
}

.accordion-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.accordion-chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.accordion-header.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.show {
    max-height: 2000px;
}

.accordion-description {
    padding: 0 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-content .cards-grid {
    padding: 0 2rem 2rem;
}

/* Hall of Fame Styles */
.hall-of-fame-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.hall-of-fame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.supporter-card {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.supporter-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.supporter-card.top-supporter {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.3);
}

.supporter-card.top-supporter:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.2);
}

.supporter-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.supporter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.supporter-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.top-supporter .supporter-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    font-size: 2.5rem;
}

.supporter-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.supporter-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
    margin: 0;
}

.supporter-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.supporter-card.add-supporter {
    background: rgba(30, 41, 59, 0.2);
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.2);
    opacity: 0.7;
}

.supporter-card.add-supporter:hover {
    opacity: 1;
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.supporter-card.add-supporter .supporter-avatar {
    background: rgba(148, 163, 184, 0.2);
    box-shadow: none;
}

.supporter-card.add-supporter .supporter-name {
    color: var(--text-secondary);
}

/* Print styles */
@media print {
    .back-home,
    .toast {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

