/* ===== 기본 스타일 ===== */
body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f1f8e9;
    text-align:center;
    padding-top:90px;
}

/* ===== 헤더 ===== */
header{
    position:fixed;
    top:0;
    width:100%;
    background:#1b5e20;
    color:white;
    padding:15px 40px;
    box-shadow:0 3px 8px rgba(0,0,0,0.3);
    z-index:1000;
}

.top-bar{
    display:flex;
    align-items:center;
    gap:40px;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo{
    width:60px;
    border-radius:8px;
}

/* ===== 메뉴 ===== */
.menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.menu-item{
    position:relative;
    padding:10px 20px;
    cursor:pointer;
    font-weight:bold;
}

.menu-item:hover{
    background:#2e7d32;
}

.dropdown{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    min-width:150px;
    border-radius:8px;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
}

.menu-item:hover .dropdown{
    display:block;
}

.dropdown li{
    padding:10px;
}

.dropdown li:hover{
    background:#c8e6c9;
}

.dropdown a{
    text-decoration:none;
    color:black;
}

/* ===== Hero ===== */
.hero{
    width: 100%;
    aspect-ratio: 3 / 1; /* 가로 3:세로 1 비율 */
    max-width: 1200px;
    margin: 90px auto 0 auto; /* 헤더 아래로 시작 */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("stadium.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 25px; /* 모서리 둥글게 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeIn 1.5s ease; /* 투명도만 */
}

@keyframes fadeIn{
    from {opacity:0;}
    to {opacity:1;}
}

/* ===== 섹션 공통 ===== */
section{
    background:white;
    margin:30px auto;
    padding:25px;
    width:85%;
    max-width:900px;
    border-radius:12px;
}

/* ===== 뉴스 첫 섹션 헤더 아래로 내리기 ===== */
body#news-page section:first-of-type {
    margin-top: 120px; /* 헤더 높이 + 여유 */
}

/* ===== 포지션별 섹션 ===== */
.position-section {
    margin:30px auto;
    padding:20px;
    width:85%;
    max-width:900px;
    border-radius:15px;
    animation:fadeInUp 0.8s ease;
}

.fw-section { background:#ffe0b2; }
.mf-section { background:#c8e6c9; }
.cb-section { background:#bbdefb; }
.gk-section { background:#f8bbd0; }

@keyframes fadeInUp{
    from { opacity:0; transform:translateY(20px);}
    to { opacity:1; transform:translateY(0);}
}

/* ===== 선수 카드 ===== */
.players{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}

.player-card{
    width:160px;
    padding:15px;
    border-radius:15px;
    background:white;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    cursor:pointer;
    transition:transform 0.3s, box-shadow 0.3s;
    opacity:0;
    transform:translateY(20px);
    animation:fadeInCard 0.5s forwards;
    animation-delay:0.1s;
}

.player-card:hover{
    transform:scale(1.05);
    box-shadow:0 8px 20px rgba(0,0,0,0.3);
}

@keyframes fadeInCard{
    from { opacity:0; transform:translateY(20px);}
    to { opacity:1; transform:translateY(0);}
}

.player-card img{
    width:100px;
    height:100px;
    border-radius:50%;
}

/* ===== 매니저 ===== */
.manager-card{
    width:180px;
    margin:auto;
    padding:20px;
    border-radius:15px;
    background:#c8e6c9;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.manager-card img{
    width:100px;
    height:100px;
    border-radius:50%;
}

/* ===== 소식 게시물 ===== */
.post-card{
    max-width:500px;
    margin:30px auto;
    background:white;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
    overflow:hidden;
    animation:fadeIn 0.5s ease;
}

.post-header{
    display:flex;
    justify-content:space-between;
    padding:10px 15px;
    font-size:14px;
}

.post-img{
    width:100%;
    height:auto;
}

.post-body{
    padding:15px;
    text-align:left;
}

.like-btn{
    border:none;
    background:none;
    font-size:16px;
    cursor:pointer;
}

.delete-btn{
    background:red;
    color:white;
    border:none;
    padding:5px 8px;
    border-radius:6px;
    cursor:pointer;
}

.comment{
    font-size:14px;
    margin:5px 0;
}

/* ===== 모바일 ===== */
@media (max-width:600px){
    body{
        padding-top:80px;
    }

    .top-bar{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .players {
        flex-direction:column;
        align-items:center;
    }

    .player-card {
        width:80%;
        margin-bottom:15px;
    }

    .post-card{
        margin:20px 10px;
    }

    .hero {
        margin-top: 80px; /* 모바일에서도 헤더 아래 */
    }
}