/* Dashboard Shared Styles */
:root {
    --gradient-primary: linear-gradient(135deg, #ff6b6b, #ffa07a);
    --gradient-secondary: linear-gradient(135deg, #2c3e50, #3498db);
    --light-gray: #f8fafc;
    --mid-gray: #94a3b8;
    --dark-gray: #334155;
    --almost-black: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--almost-black);
    color: var(--light-gray);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    flex-grow: 1;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.logo-icon {
    width: auto;
    height: 50px;
}

.logo-icon img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-size: 0.9rem;
    cursor: pointer;
}

.account-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.account-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.account-button:hover::before {
    opacity: 1;
}

.account-button svg {
    width: 20px;
    height: 20px;
}

#logoutBtn {
    cursor: pointer;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#logoutBtn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

#logoutBtn svg {
    color: #ef4444;
}

.button-text {
    margin-left: 0.5rem;
}

/* User Menu Dropdown */
.user-menu-container {
    position: relative;
}

.user-menu-toggle {
    cursor: pointer;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.menu-item span {
    flex: 1;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    padding-bottom: 100px !important;
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 0rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--mid-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Bottom Navbar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 9000;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.nav-item {
    background: none;
    border: none;
    color: var(--mid-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    color: var(--light-gray);
}

.nav-item.active {
    color: #ff6b6b;
}

.nav-item.active svg {
    stroke: #ff6b6b;
    fill: rgba(255, 107, 107, 0.1);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

/* Section Styles */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid #ff6b6b;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .account-button {
        padding: 0.75rem;
    }

    .nav-controls .button-text {
        display: none;
    }

    .user-menu-dropdown {
        right: -1rem;
        min-width: 180px;
    }

    .menu-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .menu-item svg {
        width: 20px;
        height: 20px;
    }

    main {
        padding: 5.5rem 1rem 1rem;
    }

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

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: rgba(30, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1) translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--mid-gray);
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--light-gray);
}

.auth-modal-close svg {
    width: 16px;
    height: 16px;
}

.auth-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 160, 122, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #ff6b6b;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-modal-subtitle {
    font-size: 0.95rem;
    color: var(--mid-gray);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.auth-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-modal-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-modal-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    color: white;
    border: none;
}

.auth-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.auth-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--light-gray);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-modal-btn svg {
    width: 18px;
    height: 18px;
}

.auth-modal-divider {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
    color: var(--mid-gray);
    font-size: 0.85rem;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-modal-divider span {
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
        max-width: 340px;
    }
    
    .auth-modal-title {
        font-size: 1.35rem;
    }
    
    .auth-modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .auth-modal-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Surf Plus Badge */
.surf-plus {
    position: relative;
    display: inline-block;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 0px;
    margin-bottom: 4px;
    color: transparent;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
}

/* Creator Button */
.creator-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.creator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
    opacity: 0.9;
}

.creator-button svg {
    width: 20px;
    height: 20px;
}
