/* 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);
    /* 아래 속성들은 이미 위에서 정의되었거나, 인라인 HTML에서 설정될 수 있으므로 생략 */
    /* font-family, line-height, color 등은 body에서 상속 */
}

/* 영화 정보 헤더 */
.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 {
        /* 모바일에서 4:3 비율이 더 보기 편할 수 있음 */
        padding-bottom: 75%; 
    }
    .character-card {
        width: 120px;
    }
    .character-card img {
        width: 80px;
        height: 80px;
    }
}
/* --- 5. 리뷰 작성 폼 스타일 (추가됨) --- */

/* 폼 전체 컨테이너 스타일 */
.review-form-container {
    background-color: #3a3a3a; /* 영화 정보 헤더와 동일한 배경색 */
    border: 1px solid #444; /* 어두운 테마에 맞는 은은한 테두리 */
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* 라벨 스타일 */
.review-form-container label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #e0e0e0; /* 밝은 텍스트 색상 */
    font-size: 1.1em;
}

/* 닉네임 입력 필드 및 텍스트 영역 공통 스타일 */
.review-form-container input[type="text"], 
.review-form-container textarea {
    width: 98%; /* 컨테이너 폭에 가깝게 조정 */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #555; /* 어두운 배경에 맞는 테두리 */
    border-radius: 5px;
    background-color: #4b4b4b; /* 입력창 배경도 어둡게 */
    color: #e0e0e0; /* 입력된 텍스트 색상 */
    box-sizing: border-box; /* 패딩이 너비에 포함되도록 */
}

/* 텍스트 영역 높이 및 크기 조절 설정 */
.review-form-container textarea {
    resize: vertical; /* 수직 크기 조절만 허용 */
    min-height: 120px;
}

/* 플레이스홀더 텍스트 색상 */
.review-form-container input::placeholder, 
.review-form-container textarea::placeholder {
    color: #a0a0a0; /* 메타 정보와 동일한 연한 색상 */
}

/* 제출 버튼 스타일 */
.review-form-container button {
    padding: 12px 25px;
    margin-top: 20px;
    background-color: #ff4757; /* 강조색(#ff4757) 사용 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 버튼 호버 효과 */
.review-form-container button:hover {
    background-color: #e63946; /* 호버 시 약간 어둡게 */
    transform: translateY(-1px);
}


/* --- (선택 사항) 반응형 디자인: 모바일에서 폼 너비 조정 --- */
@media (max-width: 768px) {
    .review-form-container input[type="text"], 
    .review-form-container textarea {
        width: 100%; /* 모바일에서 너비 100% 사용 */
    }
}
/* CGV 예매 버튼 스타일 (강조 버전) */
.cgv-button {
    display: block; /* 블록 요소로 만들어 너비를 모두 차지하게 변경 (더 크게 보임) */
    width: 90%; /* 너비를 90%로 설정 */
    max-width: 450px; /* 최대 너비 설정 */
    margin: 15px auto; /* 중앙 정렬 및 위아래 여백 */
    
    padding: 15px 30px; /* 패딩을 늘려 버튼 크기 확대 */
    background-color: #FF0015; /* 더 밝고 강렬한 레드 색상 */
    color: #FFFFFF;
    font-weight: 800; /* 글자 두께 강조 */
    text-align: center;
    border-radius: 10px; /* 모서리 둥글게 */
    text-decoration: none;
    font-size: 1.3em; /* 글자 크기 확대 */
    
    /* 그림자 강조 */
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4); 
    
    /* 전환 효과 */
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;

    /* (선택 사항) 약간의 움직이는 효과 */
    animation: pulse 2s infinite; 
}

/* 버튼 호버 효과 */
.cgv-button:hover {
    background-color: #C00011; /* 호버 시 진한 빨강 */
    transform: scale(1.03); /* 클릭 유도를 위해 살짝 커지게 */
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
    animation: none; /* 호버 시 애니메이션 중지 */
}

/* 링크 섹션 (버튼 컨테이너) */
.booking-link-section {
    text-align: center;
    padding: 10px 0;
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #222; /* 배경색을 어둡게 유지 */
    border-radius: 10px;
}

/* ⭐️ (선택 사항) 시선 집중을 위한 애니메이션 정의 ⭐️ */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}
/* 안내 페이지 스타일 추가 */
.how-to-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
}
.how-to-container h2 {
    color: #ff4500; /* 오렌지색 강조 */
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.how-to-container h3 {
    color: #ffb74d;
    margin-top: 25px;
}
.step-list {
    list-style: none;
    padding: 0;
}
.step-list li {
    background: #2a2a2a;
    margin-bottom: 15px;
    padding: 15px;
    border-left: 5px solid #ff4500;
    border-radius: 5px;
    line-height: 1.6;
}
.step-list strong {
    color: #ffffff;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}
.important-note {
    background-color: #331f1f;
    border: 1px solid #ff4500;
    padding: 15px;
    margin-top: 30px;
    border-radius: 5px;
}
.important-note p {
    margin: 0;
    color: #f7a599;
}
/* ======================================= */
/* 💡 방문 상태에 따른 '소개/사용법' 링크 스타일 */
/* ======================================= */

/* 1. 아직 방문하지 않은 경우 (기본 색상과 다르게 눈에 띄게) */
.nav-links a.guide-link:link {
    color: #ffd700; /* 밝은 노란색 (방문 유도) */
    font-weight: bold;
    border-bottom: 2px solid #ffd700;
}

/* 2. 이미 방문한 경우 */
/* 브라우저 보안 정책상 :visited는 색상(color)과 그림자(shadow) 등 일부 속성만 제한적으로 변경 가능합니다. */
.nav-links a.guide-link:visited {
    color: #ff8c00; /* 오렌지색 (방문했음을 알림) */
    font-weight: normal; /* 강조 해제 */
    border-bottom: none; /* 밑줄 제거 */
}

/* 3. 호버 시 색상은 기존 스타일을 따르거나 아래처럼 지정 가능 */
.nav-links a.guide-link:hover {
    color: #ffffff; /* 마우스 오버 시 흰색으로 변경 */
    opacity: 0.8;
}