/* Layout Styles */

/* Make body a flex container for sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for fixed footer */
}

/* Header */
.site-header {
    background-color: var(--color-bg-white);
    border-bottom: 2px solid var(--color-mint);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-xl);
}

.nav-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
}

.logo:hover {
    color: var(--color-text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: none;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-white);
    padding: var(--space-4xl) var(--space-xl);
    overflow-y: auto;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-link {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-mint);
}

.nav-link.scam-alert {
    color: #D97706;
}

.nav-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.search-btn {
    padding: var(--space-sm);
    color: var(--color-text-primary);
}

.search-btn:hover {
    color: var(--color-mint);
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
}

.content-area {
    min-width: 0;
}

.sidebar-area {
    display: none;
}

/* Footer - Sticky at bottom */
.site-footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg-white);
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: none; /* Hide on sticky footer */
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-bg-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-mint);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-column h4 {
    display: none; /* Hide titles in sticky footer */
}

.footer-column ul {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-column li {
    display: inline-block;
}

.footer-column a {
    color: var(--color-text-light);
    font-size: 0.875rem;
    white-space: nowrap;
}

.footer-column a:hover {
    color: var(--color-mint);
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-separator {
    color: var(--color-text-light);
    font-size: 0.75rem;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #00FF41;
    display: inline-block;
    vertical-align: middle;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(0, 255, 65, 0.6));
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.codedna-link {
    color: #00FF41 !important;
    font-weight: 400;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transition: all 0.3s ease;
}

.codedna-link:hover {
    color: var(--color-text-light) !important;
    text-shadow: none;
    text-decoration: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00FF41 0%, #00CC33 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.4);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 255, 65, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

/* Mobile Footer Menu Toggle (in footer) */
.footer-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-menu-toggle:hover {
    opacity: 1;
}

.footer-menu-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
}

.footer-menu-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-text-primary);
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--color-mint);
}

.footer-menu-overlay.active {
    transform: translateY(0);
}

.footer-menu-overlay .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-menu-overlay .footer-column h4 {
    display: block;
    color: var(--color-mint);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-menu-overlay .footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu-overlay .footer-column a {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    display: block;
}

.footer-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.footer-menu-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
}

/* Responsive footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 0.5rem 0;
    }
    
    .footer-content {
        justify-content: center;
    }
    
    .footer-links {
        display: none;
    }
    
    .footer-menu-toggle {
        display: flex;
    }
    
    .footer-menu-overlay {
        display: block;
    }
    
    .footer-bottom {
        font-size: 0.7rem;
        gap: 0.5rem;
        flex-direction: column;
    }
    
    .footer-separator {
        display: none;
    }
}
