/* Common Styles - Shared across all pages */

:root {
    --bg-primary: #0f0d1f;
    --bg-secondary: #1a1832;
    --bg-card: #1e2139;
    --accent-primary: #a855f7;
    --accent-secondary: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-gold: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: #2d3250;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0d1f 0%, #1a1832 50%, #1e1b3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(168, 85, 247, 0.15), transparent 50%),
        radial-gradient(ellipse at top right, rgba(236, 72, 153, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Logo - Landing page */
.logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Logo - Header/Navigation */
.brand-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* Wallet Modal */
.wallet-modal {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.wallet-modal.show {
    display: flex;
}

.wallet-modal-content {
    background: rgba(30, 33, 57, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wallet-option {
    background: rgba(15, 13, 31, 0.8);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-option:hover {
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(5px);
}

.wallet-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Wallet Button */
.wallet-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.wallet-btn.connected {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

/* Header */
.header {
    background: rgba(15, 13, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-logo {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.brand-text {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 22px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
}

.nav-link i {
    margin-right: 0.375rem;
}

/* Hamburger Menu Button */
.hamburger-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: rgba(15, 13, 31, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-nav-drawer.show {
    left: 0;
}

/* Mobile Drawer Header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.brand-logo-img-mobile {
    height: 40px;
    width: auto;
}

.close-drawer-btn {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-drawer-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

/* Mobile Wallet Button in Drawer */
.mobile-wallet-container {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    margin-bottom: 0.5rem;
}

.mobile-wallet-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mobile-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.mobile-wallet-btn.connected {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.mobile-wallet-btn i {
    font-size: 1.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--accent-primary);
}

.mobile-nav-link.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.15);
    border-left-color: var(--accent-primary);
}

.mobile-nav-link.logout {
    color: var(--danger);
    margin-top: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.mobile-nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Hide mobile drawer on desktop */
@media (min-width: 992px) {
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-link .nav-text {
        display: none;
    }

    .nav-link i {
        margin-right: 0;
    }
}

/* Loading Spinner */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 20px;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* User Info and Logout Button */
.user-info-display {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-info-display:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.user-email {
    color: var(--accent-primary);
    font-weight: 500;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--danger);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .user-info-display {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .logout-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
