/* style.css - CineArchive Shared Stylesheet */
/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    font-size: 17px;
    background: #000;
    min-height: 100vh;
    position: relative;
}

/* FULL-PAGE FIXED BACKGROUND */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/cinemabgnew.jpg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: cover;
    z-index: -1;
}

/* MAIN LAYOUT - FIXED WIDTH FOR DESKTOP */
.layout {
    width: 1024px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
    position: relative;
    min-height: 100vh;
}

/* HEADER SECTION */
.header {
    height: 110px;
    margin-bottom: 20px;
    position: relative;
}

.header-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* TWO-COLUMN LAYOUT */
.content-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* LEFT MENU - Sticky with smooth slide */
.left-menu {
    width: 240px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    color: #000;
    font-family: Georgia, serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
/*  dit bleek onhandig bij kleinere schermen: onderkant van menu was niet te bereiken.  
	position: sticky;
    top: 20px;
    transition: top 0.3s ease-out;
    will-change: top; */
}

/* Smooth scroll behavior for the whole page */
html {
    scroll-behavior: smooth;
}

.menu-title {
    font-size: 24px;
    color: #000;
    border-bottom: 2px solid #8B7355;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-link {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    padding: 4px 6px;
    background: rgba(139, 115, 85, 0.1);
    border-left: 3px solid #8B7355;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s;
}

.menu-link:hover {
    background: rgba(139, 115, 85, 0.2);
    padding-left: 18px;
}

.search-box {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #8B7355;
    border-radius: 6px;
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.search-box:focus {
    outline: none;
    border-color: #5C4A37;
    background: #fff;
}

.search-box::placeholder {
    color: #666;
}

.search-btn {
    width: 100%;
    padding: 8px;
    background: #8B7355;
    border: 1px solid #5C4A37;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #5C4A37;
}

.random-btn {
    width: 100%;
    padding: 12px;
    background: rgba(139, 115, 85, 0.15);
    border: 1px solid #8B7355;
    border-radius: 8px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.random-btn:hover {
    background: rgba(139, 115, 85, 0.25);
}

/* MAIN CONTENT AREA */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* MOVIE HEADER (film.php) */
.movie-header {
    border-bottom: 2px solid #8B7355;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-title {
    font-size: 36px;
    color: #000;
    font-weight: bold;
    text-shadow: 1px 1px 2px #ccc;
}

.movie-score {
    background: #F5F0E8;
    border: 1px solid #8B7355;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 24px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    color: #8B7355;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.article-badge {
    background: #F5F0E8;
    border: 1px solid #8B7355;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 24px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    color: #8B7355;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* REVIEW CONTENT WITH POSTER */
.review-content {
    font-size: 16px;
    line-height: 1.7;
    color: #000;
}

.poster-right {
    float: right;
    margin: 0 0 20px 25px;
    max-width: 250px;
    border: 3px solid #8B7355;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.poster-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.review-text {
    text-align: justify;
    color: #000;
    text-shadow: 1px 1px 2px #ccc;
}

.review-text p {
    margin-bottom: 1.2em;
}

/* Alle links in de review-tekst geel maken */
.film-link,
.review-text a {
    color: #FFD700;
    text-decoration: none;
    border-bottom: 1px solid #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.2s;
}

.film-link:hover,
.review-text a:hover {
    color: #FFA500;
    border-bottom-color: #FFA500;
}


.meta-description {
    font-style: italic;
    color: #333;
    margin-bottom: 25px;
    font-size: 18px;
    border-left: 3px solid #8B7355;
    padding-left: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #000;
    text-decoration: none;
    border: 1px solid #8B7355;
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
}

.back-link:hover {
    background: #8B7355;
    color: #fff;
}

.error-container {
    text-align: center;
    padding: 50px;
    color: #000;
}

.error-container h2 {
    color: #8B7355;
    font-size: 32px;
    margin-bottom: 20px;
}

.menu-stats {
    margin-top: 30px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border-top: 1px solid #8B7355;
    padding-top: 15px;
}

/* FILM META INFO */
.film-meta {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.8;
}

.film-meta span {
    display: inline-block;
    margin-right: 24px;
}

.film-cast {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #8B7355;
    font-size: 15px;
    color: #333;
    clear: both;
}

.film-trailer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #8B7355;
}

.film-trailer iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* BANNER SECTION (index.php) */
.banner-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-box {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #8B7355;
    border-radius: 8px;
    padding: 15px;
}

.info-box h2 {
    color: #000;
    font-size: 1.3rem;
    border-bottom: 1px solid #8B7355;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.movie-list {
    list-style: none;
}

.movie-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(139, 115, 85, 0.3);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
    text-shadow: 1px 1px 2px #ccc;
}

.movie-list li:hover {
    background: rgba(139, 115, 85, 0.1);
    padding-left: 8px;
    border-radius: 4px;
}

.movie-score-small {
    background: #F5F0E8;
    color: #8B7355;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* CONTROLS SECTION (index.php) */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-btn {
    background: rgba(139, 115, 85, 0.15);
    color: #000;
    border: 1px solid #8B7355;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sort-btn:hover {
    background: rgba(139, 115, 85, 0.3);
}

.sort-btn.active {
    background: #8B7355;
    color: #fff;
}

/* ALPHABET NAVIGATION (index.php) */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.letter-btn {
    background: rgba(139, 115, 85, 0.15);
    color: #000;
    border: 1px solid #8B7355;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.letter-btn:hover {
    background: rgba(139, 115, 85, 0.3);
    transform: scale(1.05);
}

.letter-btn.active {
    background: #8B7355;
    color: #fff;
}

/* MOVIES LIST (index.php) */
.movies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.movie-item {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    color: #000;
    text-shadow: 1px 1px 2px #ccc;
}

.movie-item:hover {
    background: rgba(139, 115, 85, 0.2);
    transform: translateX(5px);
    border-color: #8B7355;
}

.movie-item .movie-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.movie-description {
    color: #333;
    font-size: 0.9rem;
    margin-top: 4px;
}

.movie-item .movie-score {
    background: #F5F0E8;
    color: #8B7355;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    margin-left: 15px;
}

/* LETTER HEADERS (index.php) */
.letter-section {
    margin-bottom: 20px;
}

.letter-header {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #8B7355;
    font-weight: bold;
    text-shadow: 1px 1px 2px #ccc;
}

/* PAGINATION (index.php) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.3);
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(139, 115, 85, 0.15);
    color: #000;
    border: 1px solid #8B7355;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.page-btn:hover:not(:disabled) {
    background: rgba(139, 115, 85, 0.3);
}

.page-btn.active {
    background: #8B7355;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.page-info {
    color: #000;
    margin: 0 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #000;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

/* ENHANCED RANDOM BUTTON STYLES */
.random-btn-enhanced {
    width: 100%;
    padding: 12px;
    background: rgba(139, 115, 85, 0.15);
    border: 1px solid #8B7355;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: left;
}

.random-btn-enhanced:hover {
    background: rgba(139, 115, 85, 0.25);
    transform: translateY(-2px);
}

.random-title {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.random-quote {
    font-size: 12px;
    font-style: italic;
    display: block;
    line-height: 1.4;
    color: #333;
}

/* CHANGELOG NOTICE */
.changelog-note {
    position: fixed;
    bottom: 5px;
    right: 5px;
    color: rgba(0, 0, 0, 0.2);
    font-size: 10px;
    z-index: 1000;
}

.changelog-note:hover {
    color: rgba(0, 0, 0, 0.6);
}
