/* Layout Styles for The Reckoning Takes Flight */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Header Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--container-padding);
    min-height: 80px;
}

.nav-brand {
    flex: 0 0 auto;
}

.brand-title {
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--accent-gold);
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: var(--font-medium);
    transition: color var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all var(--transition-normal);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Section Layout */
section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: var(--font-3xl);
    margin-bottom: var(--space-6);
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flex Layouts */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

/* Hero Layout */
.hero {
    background: var(--bg-hero-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: var(--font-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.rating-stars {
    color: var(--accent-gold);
    font-size: var(--font-lg);
}

.rating-text {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--accent-gold);
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-large);
    margin: 0 auto;
}

.hero-quote {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.9);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.hero-quote blockquote {
    margin: 0;
    font-size: var(--font-base);
    color: var(--accent-gold);
    background: none;
    border: none;
    padding: 0;
}

/* Section Backgrounds */
.watch-section {
    background: var(--bg-secondary);
}

.story-section {
    background: var(--bg-section);
}

.episodes-section {
    background: var(--bg-secondary);
}

.characters-section {
    background: var(--bg-section);
}

.analysis-section {
    background: var(--bg-secondary);
}

/* Footer Layout */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid var(--border-color);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: var(--space-4);
    font-size: var(--font-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: var(--font-sm);
} 