/* styles.css - Dark and Vibrant Theme */

:root {
    --primary-color: #121212; /* A deep, dark grey, almost black */
    --secondary-color: #1e1e1e; /* A slightly lighter dark grey for cards and sections */
    --accent-color: #e50914; /* Netflix red for vibrancy */
    --accent-hover-color: #f40612;
    --text-color: #ffffff;
    --text-color-secondary: #b3b3b3; /* For less important text */
    --sidebar-width: 220px;
    --right-ads-width: 220px;
    --border-radius: 12px;
    --card-border-color: #2d2d2d;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--right-ads-width);
    gap: 20px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.sidebar, .right-ads {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.main-content {
    background: transparent;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-align: center;
}

.sidebar-header i {
    margin-right: 10px;
}

.week-menu ul {
    list-style: none;
}

.week-menu .month-title {
    font-weight: bold;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.week-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.week-btn:hover, .week-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-hover-color);
    transform: translateX(5px);
}

.ads-placeholder, .ads-vertical-placeholder {
    margin-top: auto; /* Pushes to the bottom */
    width: 100%;
    min-height: 150px;
    background: rgba(229,9,20,0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
    font-size: 1rem;
    font-weight: bold;
    border: 2px dashed var(--card-border-color);
}

.ads-vertical-placeholder {
    height: 600px;
}

/* Main Header */
.main-header {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.main-header p {
    color: var(--text-color-secondary);
    font-size: 1.1rem;
}

.main-header i {
    color: var(--accent-color);
}

/* Filters */
.header-content {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.language-filters, .platform-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.language-filters {
    margin-bottom: 1.5rem;
}

.lang-btn, .platform-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--card-border-color);
    border-radius: 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn:hover, .platform-btn:hover,
.lang-btn.active, .platform-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-hover-color);
    transform: scale(1.05);
}

/* Nav Grid for index.html */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nav-card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border-color);
}

.nav-card a {
    text-decoration: none;
    color: var(--text-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

.nav-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.nav-card:hover i {
    transform: scale(1.1);
}

.nav-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.nav-card p {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Movie Grid for ott-week.html */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.movie-card {
    perspective: 1000px;
    height: 375px; /* Increased height for better poster visibility */
    background-color: transparent;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.movie-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--secondary-color);
    border: 1px solid var(--card-border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-back .platform-info {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color-secondary);
}

.card-back .platform-info .platform-name {
    font-weight: bold;
    color: var(--text-color);
}


.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0));
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-align: left;
}

.platform-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use cover to fill the container */
}

.movie-info h3 {
    font-size: 1.1rem;
    margin: 0;
}

.release-date {
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

.card-back h3 {
    margin-bottom: 0.5rem;
}

.rating {
    color: gold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cast-list {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 1.5rem;
}

.watch-btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.watch-btn:hover {
    background-color: var(--accent-hover-color);
}
