/* General Shared Styles for MAK-AI Model Hub */

/* General Body & Header */
body {
    background: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.5rem;
    text-decoration: none;
    gap: 0.5rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

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

.logo h4 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary);
    background: var(--tag-bg);
    transform: translateY(-1px);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:hover {
    background: var(--tag-bg);
}

.mobile-menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    display: block;
    transition: all 0.2s ease;
    background: transparent;
}

.mobile-nav a:hover, .mobile-nav a.active {
    background: var(--tag-bg);
    color: var(--primary);
    padding-left: 2.5rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
        max-width: 70%;
    }
    
    .logo h4 {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show mobile menu toggle on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
        max-width: 65%;
    }
    
    .logo h4 {
        font-size: 0.9rem;
    }
    
    .mobile-nav a {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .mobile-nav a:hover, .mobile-nav a.active {
        padding-left: 2rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 0.9rem;
        max-width: 60%;
    }
    
    .logo h4 {
        font-size: 0.85rem;
    }
    
    .mobile-nav a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .mobile-nav a:hover, .mobile-nav a.active {
        padding-left: 1.75rem;
    }
    
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

/* Footer Styles */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-socials a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-links a:hover::before {
    width: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-copy p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-sections {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-socials {
        gap: 0.75rem;
    }
    
    .footer-socials a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-socials a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-legal {
        gap: 1rem;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .footer-sections {
        gap: 1rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-socials a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .footer-legal {
        gap: 0.75rem;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
} 