/**
 * PHASE 8.0: Public Site Styles
 * Unified CSS for all public-facing marketing pages
 */

:root {
    --zoogaboog-blue: #01aade;
    --zoogaboog-dark-blue: #0085ae;
    --green: #10B981;
    --purple: #8B5CF6;
    --orange: #F59E0B;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: white;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

/* TOP UTILITY BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--zoogaboog-blue);
    height: 42px;
    display: flex;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.top-bar-left i {
    font-size: 1.1rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-phone {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-phone:hover {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-phone i {
    font-size: 1rem;
}

/* MAIN NAVIGATION - LOGGED OUT */
.navbar-logged-out {
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    height: 68px;
}

.navbar-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* Logo */
.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo img,
.brand-logo {
    height: 40px;
    width: auto;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
}

.nav-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--zoogaboog-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--zoogaboog-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--zoogaboog-blue);
}

.nav-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    border: 2px solid #e2e8f0;
    margin-top: 0.5rem;
}

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

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-dropdown-item:hover {
    background: #f0f9ff;
    color: var(--zoogaboog-blue);
    padding-left: 2rem;
}

/* Auth Buttons */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-sign-in {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--zoogaboog-blue);
    color: var(--zoogaboog-blue);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sign-in:hover {
    background: var(--zoogaboog-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 170, 222, 0.3);
}

.btn-get-started {
    padding: 0.6rem 1.75rem;
    background: var(--zoogaboog-blue);
    border: 2px solid var(--zoogaboog-blue);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-get-started:hover {
    background: var(--zoogaboog-dark-blue);
    border-color: var(--zoogaboog-dark-blue);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--zoogaboog-blue);
    transition: all 0.3s ease;
}

/* Body padding for fixed navbar */
body {
    padding-top: 110px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--zoogaboog-blue);
    color: white;
    border-color: var(--zoogaboog-blue);
}

.btn-primary:hover {
    background: var(--zoogaboog-dark-blue);
    border-color: var(--zoogaboog-dark-blue);
}

.btn-outline {
    background: transparent;
    color: var(--zoogaboog-blue);
    border-color: var(--zoogaboog-blue);
}

.btn-outline:hover {
    background: var(--zoogaboog-blue);
    color: white;
}

.btn-white {
    background: white;
    color: var(--zoogaboog-blue);
    border-color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Footer - centered text, smaller fonts */
.public-footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

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

.public-footer .footer-column {
    text-align: center;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-column p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
    margin-bottom: 0;
}

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

.footer-column ul li {
    margin-bottom: 0.4rem;
}

.footer-column ul li a {
    font-size: 0.85rem;
}

.footer-brand {
    text-align: center;
}

.footer-cat {
    max-width: 200px;
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.footer-slogan {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
    margin-top: 1rem;
}

.footer-slogan .text-primary {
    color: var(--zoogaboog-blue);
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

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

.public-footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: white;
    font-size: 0.9rem;
}

.public-footer .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-400);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
    }

    .nav-dropdown-item {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .auth-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .container-custom {
        padding: 0 1rem;
        max-width: 100%;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .public-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 2rem;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        min-width: 0;
    }

    .public-footer .footer-column h3,
    .public-footer .footer-column h4 {
        font-size: 0.95rem;
    }

    .footer-column p,
    .footer-column ul li a {
        font-size: 0.8rem;
    }

    .footer-cat {
        max-width: 140px;
    }

    .footer-slogan {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-custom {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .public-footer {
        padding: 2rem 0 1rem;
        font-size: 0.8rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .public-footer .footer-column h3,
    .public-footer .footer-column h4 {
        font-size: 0.9rem;
    }

    .footer-column p,
    .footer-column ul li a {
        font-size: 0.75rem;
    }

    .footer-slogan {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

