/* Critical CSS extracted from header.php */

/* Ensure text remains visible during webfont load */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* This ensures text is visible while fonts load */
}

/* Critical CSS */
:root {
    --primary-color: #e50914;
    --primary-hover: #f40d17;
    --dark-bg: #141414;
    --light-text: #ffffff;
    --gray-bg: #2f2f2f;
    --gray-light: #b3b3b3;
    --success-color: #46d369;
}

/* Special handling for slow connections */
html.slow-connection img:not([loading="eager"]) {
    content-visibility: auto;
}

/* Critical base styles */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Roboto', sans-serif;
    color: var(--light-text);
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container { 
    width: 100%; 
    max-width: 1320px; /* Increased from 1200px to match header container */ 
    margin: 0 auto; 
    padding: 0 15px; 
}

.logo-large { 
    max-width: 300px; 
    height: auto; 
}

/* Content pages specific CSS */
.suggestion-poster {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.suggestion-poster.loaded {
    opacity: 1;
}

.suggestion-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.ratings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.rating-item {
    text-align: center;
}

/* Home page specific CSS */
.home-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.home-tagline {
    font-style: italic;
    max-width: 700px;
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-light);
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.btn-flix {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Advanced page specific CSS */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-option {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    background: transparent;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.3s;
}

.form-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
} 