/* layout.css */

/* Header */
.header {
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand h1 {
    color: hsl(var(--foreground));
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.nav {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: hsl(var(--foreground));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: hsl(var(--foreground));
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    color: hsl(var(--primary-foreground));
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.hero-background iframe,
.hero-background #player {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: opacity 0.5s ease-in;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.5);
    z-index: -1;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content h1 {
    color: hsl(var(--primary-foreground));
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.hero-content p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.section-header p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* Page Hero */
.page-hero {
    background-color: hsl(var(--secondary));
    text-align: center;
    padding: 120px 0 60px;
    margin-top: 80px;
    border-bottom: 1px solid hsl(var(--border));
}

/* Footer */
.footer {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 40px 0 20px;
    border-top: 1px solid hsl(var(--border));
}

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

.footer-section h3,
.footer-section h4 {
    color: hsl(var(--background));
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: hsl(var(--background));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}