/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ─── 기본 리셋 ─── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}

/* ─── 전체 레이아웃 ─── */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── 네비게이션 바 ─── */
.navbar {
    background: #1f2937;
    flex: 0 0 auto;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    height: 4rem;
}
.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}
.navbar ul {
    list-style: none;
    display: flex;
    margin-left: 2rem;
}
.navbar li {
    margin-left: 1.5rem;
}
.navbar a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
}
.navbar a:hover {
    color: #fff;
}

/* ─── 히어로(배경이미지 + 검색) ─── */
.hero {
    position: relative;
    /* 내비(4rem) + 푸터(2.5rem) 제외한 높이 */
    height: calc(100vh - 6.5rem);
    background: url("/~s120210365/Game/media/allgame.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.hero-content .subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.hero-content .timestamp {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}
.hero-search {
    display: flex;
    justify-content: center;
}
.hero-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.hero-search button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    background: #4c6ef5;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search button:hover {
    background: #3b5bdb;
}

/* ─── 본문 컨테이너 ─── */
.container {
    flex: 1 0 auto;
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* ─── 리뷰 카드 그리드 ─── */
.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* ─── 리뷰 카드 썸네일 ─── */
.thumb-wrapper {
    width: 100%;
    height: 160px;           /* 썸네일 높이 */
    overflow: hidden;
}
.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── 리뷰 카드 ─── */
.review-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;         /* 썸네일 라운드 유지 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.review-card h3 {
    margin: 15px 0 10px;
    font-size: 1.2em;
}
.review-card .meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}
.review-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}
.review-card a {
    align-self: flex-end;
    background: #4c6ef5;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
}
.review-card a:hover {
    background: #3b5bdb;
}

/* ─── 폼 공통 스타일 ─── */
form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1em;
}
form input[type="file"] {
    margin-bottom: 15px;
}
form button {
    background: #4c6ef5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
form button:hover {
    background: #3b5bdb;
}

/* ─── 푸터 ─── */
.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 1rem 0;
    flex: 0 0 auto;
    font-size: 0.875rem;
}
