/* Navigation and footer styles */

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    z-index: 100000;
}

/* Beta tag - enhanced for better visibility and brand impact */
.beta-tag {
    display: inline-block;
    font-size: 0.5em;
    padding: 0.25em 0.6em;
    background: linear-gradient(135deg, rgba(201, 132, 66, 0.2), rgba(201, 132, 66, 0.15));
    color: #e8a55e;
    border-radius: 6px;
    vertical-align: super;
    margin-left: 0.5em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
    border: 1.5px solid rgba(232, 165, 94, 0.5);
    box-shadow: 0 2px 8px rgba(201, 132, 66, 0.15);
    transition: all 0.3s ease;
}

.beta-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 132, 66, 0.25);
    border-color: rgba(232, 165, 94, 0.7);
}

/* Homepage beta tag - reverted to original subtle styling */
.beta-tag-home {
    display: inline-block;
    font-size: 0.45em;
    padding: 0.1em 0.3em;
    background-color: rgba(0, 0, 0, 0.2);
    color: #c98442;
    border-radius: 3px;
    vertical-align: super;
    margin-left: 0.3em;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
    border: 1px solid rgba(201, 132, 66, 0.3);
    -webkit-text-fill-color: #c98442;
    background-clip: border-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
}

/* Auth Buttons */
#authButtons {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

/* Navigation links */
.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.nav-dropdown-toggle {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.nav-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-dropdown-toggle.active {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-toggle i.fa-caret-down {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}


.nav-dropdown-menu {
    display: none;
    position: fixed;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(25, 25, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 99999;
    padding: 0.5rem 0;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-toggle i.fa-caret-down {
    transform: rotate(180deg);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu a {
    display: block;
    color: #b8b8c0;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f0f0f4;
    border-left-color: #10b981;
}

.nav-dropdown-menu a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-left-color: #10b981;
}

/* Footer styles */
.app-footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #2d4059;
}

.app-footer p {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Logo link */
.logo a {
    text-decoration: none;
    color: inherit;
}

/* CTA button styles */
.cta-button {
    margin-top: 2rem;
    text-align: center;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.button-primary {
    background-color: #2d4059;
    color: #ffffff;
}

.button-primary:hover {
    background-color: #1a2636;
}

.button-secondary {
    background-color: #4a5568;
    color: #ffffff;
}

.button-secondary:hover {
    background-color: #2d3748;
}

.button-outline {
    background-color: transparent;
    color: #f0f0f0;
    border: 1px solid #4a5568;
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #f0f0f0;
}

/* Sleek, refined authentication buttons */
.button-auth {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.02em;
}

.button-auth:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button-auth-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d8d8d8;
}

.button-auth-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Card styles */
.card {
    background-color: #333333; /* Dark gray background as requested */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid #3a3a3a;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
    background-color: #2d2d2d; /* Slightly darker than card background */
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #f0f0f0; /* Light text for dark background */
}

.card-header .header-note {
    margin: 0.5rem 0 0;
    color: #b0b0b0; /* Secondary light text for dark background */
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
}

/* Fleischner theme */
.fleischner-theme .card-header {
    background-color: #1e2944; /* Dark blue that fits with the dark theme */
}

.fleischner-theme .card-header h3 {
    color: #5e7bfb; /* Match the Fleischner accent color */
}

.fleischner-theme .button-primary {
    background-color: #1e40af;
}

.fleischner-theme .button-primary:hover {
    background-color: #1e3a8a;
}

.fleischner-theme .nav-link.active {
    color: #1e40af;
    background-color: rgba(30, 64, 175, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        margin-top: 1rem;
        width: 100%;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}