/* css/style.css */

/* 1. 기본 스타일 리셋 및 폰트 설정 */
body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #1a1a1a; /* 배경색: 어두운 짙은 회색 */
    color: #e0e0e0; /* 텍스트색: 밝은 회색 */
}

/* 2. 헤더 및 제목 스타일링 */
h1, h2 {
    color: #ff4757; /* 제목색: 강렬한 빨간색 액센트 */
    text-align: center;
    padding: 20px 0 10px;
}

/* 3. 링크 기본 스타일 제거 */
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    color: #ff4757; /* 링크 호버 시 강조색 */
}

/* --- 메인 페이지 (index.html) 카드 레이아웃 --- */

.review-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 40px 20px;
}

/* 개별 카드 스타일 */
.card {
    background-color: #2b2b2b; /* 카드 배경: 더 어두운 회색 */
    border-radius: 12px; 
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* 어두운 배경에 더 진한 그림자 */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 카드 호버(마우스 오버) 효과 */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

/* 이미지 호버 효과 */
.card:hover .card-image {
    filter: brightness(0.8);
}

/* 카드 이미지 스타일 (포스터) */
.card-image {
    width: 100%;
    height: 420px; /* 포스터처럼 길쭉하게 높이 증가 (CGV 스타일) */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #444; /* 구분선 색상도 어둡게 */
    transition: filter 0.3s;
}

/* 카드 내용 스타일 (제목 및 정보) */
.card-content {
    padding: 15px;
    text-align: left;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #e0e0e0; /* 제목 색상 밝게 */
    line-height: 1.3;
}

/* CGV 스타일 추가 - 추가 정보 섹션 */
.movie-meta {
    font-size: 0.9em;
    color: #a0a0a0; /* 메타 정보 텍스트 연하게 */
    margin-top: 5px;
}

.movie-meta p {
    margin: 3px 0;
}

.movie-meta strong {
    color: #ff4757; /* 메타 정보 라벨 강조 */
}

.rating {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
    color: #ffc312; /* 별점 색상: 밝은 노란색 */
    border-top: 1px solid #444;
    padding-top: 8px;
    width: 100%;
}

.summary {
    display: none;
}


/* --- 개별 리뷰 페이지 (review_*.html) 스타일 --- */

/* 리뷰 본문 영역 중앙 정렬 및 가독성 확보 */
.review-container {
    background-color: #2b2b2b; /* 카드와 동일한 어두운 배경 */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 영화 정보 헤더 */
.movie-info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #3a3a3a; /* 정보 섹션 배경색 */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.main-movie-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.movie-info-header .info-text {
    flex-grow: 1;
}

.movie-info-header .info-text p {
    margin: 5px 0;
    font-size: 1.1em;
}

.movie-info-header .info-text strong {
    color: #ff4757;
}

/* 유튜브 영상 반응형 처리 */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px auto;
    max-width: 100%;
    background-color: #000;
    border-radius: 8px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 리뷰 텍스트 스타일 */
.review-container p {
    font-size: 1.1em;
    text-align: justify;
}

/* 캐릭터 쇼케이스 */
.character-showcase {
    margin-top: 40px;
    padding: 20px;
    background-color: #3a3a3a; /* 캐릭터 섹션 배경색 */
    border-radius: 10px;
    text-align: center;
}

.character-showcase h3 {
    color: #ff4757;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.character-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.character-card {
    width: 150px;
    text-align: center;
    background-color: #2b2b2b; /* 카드 배경 어둡게 */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    padding: 10px;
}

.character-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff4757; /* 테두리 강조색 */
    margin-bottom: 10px;
}

.character-card p {
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
}

/* 미디어 플레이어 중앙 정렬 */
video, audio {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

/* 푸터 및 브레드크럼 */
.breadcrumb {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.9em;
    color: #a0a0a0;
}
.breadcrumb a {
    color: #ff4757;
}
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    background-color: #2b2b2b; /* 푸터 배경색 어둡게 */
}
footer hr {
    border: 0;
    height: 1px;
    background-color: #444;
    margin: 30px 0;
}
footer a {
    color: #ff4757; /* 푸터 링크 강조색 */
    font-weight: bold;
}

/* --- (선택 사항) 반응형 디자인 추가 --- */
@media (max-width: 768px) {
    .movie-info-header {
        flex-direction: column;
        text-align: center;
    }
    .main-movie-image {
        width: 80%;
    }
    .video-responsive {
        padding-bottom: 75%;
    }
    .character-card {
        width: 120px;
    }
    .character-card img {
        width: 80px;
        height: 80px;
    }
    /* 메뉴 리스트 스타일 */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* 이것이 메뉴 항목을 가로로 정렬하는 핵심 코드입니다. */
}

.nav-links li {
    margin-left: 30px; /* 항목 간 간격 설정 */
}
.main-trailer-small {
    padding: 20px;
    text-align: center; /* 제목을 중앙에 정렬 */
}

.main-trailer-small h2 {
    /* 기존 h2 스타일과 다르게 (주로 검은 배경에 흰색 텍스트로 보일 수 있도록) */
    color: #e0e0e0; 
    text-align: center;
    margin-bottom: 10px;
    padding: 0;
}

.main-trailer-small .video-responsive {
    /* 비디오의 최대 크기를 400px로 제한하여 '조그맣게' 보이도록 함 */
    max-width: 400px; 
    margin: 20px auto; /* 중앙 정렬 */
}
}