/* Main CSS for The Look Up */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* App Container */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* Integrated Header */
.integrated-header {
    position: relative;
    width: 100%;
    background: var(--card-bg-secondary);
    backdrop-filter: blur(5px);
    margin-bottom: 1rem;
    border-radius: 0;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-image {
    max-height: 60px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Main Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    background: transparent;
}

.main-logo {
    text-align: center;
}

.main-logo-image {
    max-height: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.main-logo-image:hover {
    transform: scale(1.05);
}

/* Header Navigation */
.header-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.home-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
    color: white;
    text-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.5);
}

.home-button:active {
    transform: scale(0.95);
}

.home-text {
    font-size: 15px;
    font-weight: 700;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Navigation Button */
.nav-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: var(--button-text-shadow);
}

.nav-button:hover {
    background: var(--primary-color);
    color: var(--button-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
    text-shadow: var(--button-text-shadow);
}

.nav-button.active {
    background: var(--primary-color);
    color: var(--button-active-text);
    box-shadow: 0 2px 10px var(--shadow-color);
    text-shadow: var(--button-text-shadow);
}

.nav-button.active:hover {
    background: var(--accent-color);
    color: var(--button-hover-text);
    text-shadow: var(--button-text-shadow);
}

/* Developer Info Toggle Button */
.dev-info-toggle-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0 0 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7),
                 0 0 4px rgba(0, 0, 0, 0.5),
                 0 0 8px rgba(0, 0, 0, 0.3);
}

.dev-info-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 6px rgba(0, 0, 0, 0.6),
                 0 0 12px rgba(0, 0, 0, 0.4);
}

.dev-info-container {
    margin-top: 0;
}

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.hamburger-bar {
    width: 28px;
    height: 4px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger-menu.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .header-navigation {
        position: absolute;
        top: 70px;
        right: 16px;
        background: var(--card-bg-secondary);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        border-radius: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1rem 0.5rem;
        min-width: 160px;
        display: none;
        z-index: 99;
    }
    .header-navigation.nav-open {
        display: flex;
    }
    .nav-button {
        width: 100%;
        margin: 0.25rem 0;
        text-align: left;
        border-radius: 0;
        border: none;
        background: none;
        color: var(--primary-color);
        font-size: 1rem;
        padding: 0.75rem 1rem;
        box-shadow: none;
    }
    .logos-container {
        position: relative;
        width: 100%;
        justify-content: space-between;
    }
    .hamburger-menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-button {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
        white-space: nowrap;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-overlay-menu .nav-button {
        font-size: 1.2rem;
        padding: 0.7rem 1rem;
        white-space: nowrap;
        min-width: 0;
        max-width: 100vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Desktop navigation override */
@media (min-width: 769px) {
    .header-navigation {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        border-radius: 0;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
        min-width: unset;
    }
    .hamburger-menu {
        display: none;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-image {
        max-height: 50px;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .logos-container {
        gap: 0.75rem;
    }
    
    .home-button,
    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }
    
    .logo-section {
        padding: 0.75rem 0;
    }
    
    .main-logo-image {
        max-height: 100px;
    }
    .app-container {
        padding: 0.5rem;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .hero-section, .features-grid, .feature-card, .cta-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .feature-card {
        min-width: 0;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .hero-title, .hero-subtitle {
        font-size: 1.3rem;
        text-align: center;
        word-break: break-word;
    }
    .cta-button {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
        margin: 1rem 0 0 0;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-height: 40px;
    }
    
    .header-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logos-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .logo-section {
        padding: 0.5rem 0;
    }
    
    .main-logo-image {
        max-height: 80px;
    }
    
    .home-button,
    .nav-button {
        padding: 0.5rem 0.75rem;
        font-size: 12px;
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Fullscreen mobile navigation overlay - force above all elements */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    z-index: 2147483647 !important;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.nav-overlay-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.nav-overlay-menu .nav-button {
    font-size: 2rem;
    color: var(--primary-color);
    background: none;
    border: none;
    box-shadow: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.nav-overlay-menu .nav-button.active {
    color: var(--button-active-text);
    background: var(--primary-color);
}
.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}
@media (max-width: 768px) {
    .header-navigation {
        display: none !important;
    }
    .hamburger-menu {
        display: flex;
    }
    .nav-overlay {
        display: none;
    }
    .nav-overlay.open {
        display: block;
    }
}
@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
    .header-navigation {
        display: flex !important;
    }
    .hamburger-menu {
        display: none;
    }
}
