/* ================================================
   Cruza2TV - Layout
   Container, Header, Footer, Utilities
   ================================================ */

/* === Container === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: hsl(0 0% 100% / 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.header.solid-dark.scrolled {
    background: hsl(var(--accent) / 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    height: 2.5rem;
    transition: opacity 0.3s;
}

@media (min-width: 768px) {
    .logo {
        height: 3rem;
    }
}

.logo-white,
.logo-black {
    transition: opacity 0.3s ease;
}

.logo-black {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-black {
    opacity: 1;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 2.5rem;
}

@media (min-width: 768px) {
    .logo-wrapper {
        height: 3rem;
    }
}

.logo-wrapper img {
    height: 100%;
    width: auto;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link.light {
    color: hsl(0 0% 100% / 0.9);
}

.nav-link.light:hover {
    color: white;
}

.nav-link.dark {
    color: hsl(var(--foreground));
}

.nav-link.dark:hover {
    color: hsl(var(--primary));
}

.youtube-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .youtube-btn {
        display: flex;
    }
}

.mobile-toggle {
    display: block;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.header .mobile-toggle svg {
    color: white;
    transition: color 0.3s;
}

.header.scrolled .mobile-toggle svg {
    color: hsl(var(--foreground));
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border-radius: 1rem;
}

.mobile-menu.open {
    display: flex;
}

/* === Footer === */
.footer {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand p {
    color: hsl(var(--accent-foreground) / 0.75);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 2.5rem;
    margin-bottom: 1rem;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsl(0 0% 100% / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: white;
}

.footer-social-link:hover {
    background: hsl(var(--primary));
}

.footer-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: hsl(var(--accent-foreground) / 0.75);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid hsl(0 0% 100% / 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: hsl(var(--accent-foreground) / 0.6);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: hsl(var(--accent-foreground) / 0.6);
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-bottom-link:hover {
    color: white;
}

.scroll-top-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
}

.scroll-top-btn:hover {
    background: hsl(var(--primary) / 0.8);
}

.scroll-top-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.grid {
    display: grid;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    inset: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.hidden {
    display: none;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-16 {
    margin-top: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.pt-20 {
    padding-top: 5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

.text-primary {
    color: hsl(var(--primary));
}

.bg-primary {
    background-color: hsl(var(--primary));
}

.line-clamp-2 {
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.transition-all {
    transition: all 0.3s ease;
}

.object-cover {
    object-fit: cover;
}

/* === Responsive Utility Classes === */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
    }

    .md\:p-12 {
        padding: 3rem;
    }

    .md\:gap-16 {
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .lg\:col-span-2 {
        grid-column: span 2;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:text-7xl {
        font-size: 4.5rem;
    }
}