﻿/* Components/Layout/WebsiteLayout.razor.css (복사할 내용) */

.home-container {
    width: 100%;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    /* 배경색은 굳이 필요 없으면 지우는 게 나음 */
    background-color: transparent;
}

.home-header {
    background-image: url('/uploads/home-nav-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    height: 80px;
    border-bottom: 2px solid #a97142;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.home-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
}

.nav-logo {
    height: 50px; 
    width: 180px;
    object-fit: contain; 
    margin-right: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

    .nav-left a,
    .nav-right a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        margin: 0 15px;
        text-transform: uppercase;
        font-size: 14px;
        transition: color 0.3s;
    }

        .nav-left a:hover {
            color: #ffd700;
        }

.play-now-btn {
    background-color: #e53935;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .play-now-btn:hover {
        background-color: #f44336;
    }

.home-footer {
    background-color: #111;
    color: #777;
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links,
.footer-social {
    margin-bottom: 20px;
}

.footer-links a,
.footer-social a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

/* 로그인 페이지 전용 스타일 */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .login-box h3 {
        text-align: center;
        margin-bottom: 25px;
    }

.form-group {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
}

/* ===================== 관리자 레이아웃 스타일 ===================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.admin-sidebar {
    width: 260px;
    background-color: #121212;
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-sidebar__link {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    gap: 4px;
}

    .admin-sidebar__link.active,
    .admin-sidebar__link:hover {
        background-color: rgba(169, 113, 66, 0.25);
        border-color: #a97142;
    }

    .admin-sidebar__link span {
        font-weight: 600;
    }

    .admin-sidebar__link small {
        color: #c9c9c9;
        font-size: 0.85rem;
    }

.admin-content {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    border-left: 1px solid #eee;
}

.admin-dashboard {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    .admin-dashboard ul {
        padding-left: 20px;
        margin-bottom: 25px;
    }

.admin-dashboard__card {
    border: 1px dashed #a97142;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff7ef;
}

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-sidebar__link {
        flex: 1 1 calc(50% - 10px);
    }
}

.admin-userlist-card {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admin-userlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-userlist-subtitle {
    margin: 4px 0 0;
    color: #6c6c6c;
}

.admin-userlist-count {
    font-weight: 700;
    color: #a97142;
}

.admin-user-table {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

    .admin-user-table thead th {
        background-color: #121212;
        color: #fff;
        border-color: #1f1f1f;
    }

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.pagination-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #a97142;
    background-color: transparent;
    color: #a97142;
    font-weight: 700;
}

    .pagination-arrow:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.pagination-status {
    font-weight: 600;
}

.admin-post-row {
    cursor: pointer;
}

    .admin-post-row:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }


.admin-editor-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.admin-back-link {
    font-weight: 600;
    text-decoration: none;
}

    .admin-back-link:hover {
        text-decoration: underline;
    }


.account-button-wrapper {
    margin-right: 16px;
}

.account-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #a97142;
    background-color: transparent;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .account-icon.logged-in {
        background-color: #a97142;
    }

.account-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    color: #fff;
    padding: 30px;
    transition: right 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .account-panel.open {
        right: 0;
    }

.account-panel-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1099;
}

.account-panel__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
}

.account-panel__label {
    display: block;
    color: #bbb;
    font-size: 0.85rem;
}

.account-panel__body {
    flex: 1;
    font-size: 0.95rem;
    color: #ccc;
}


.admin-tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-tab-bar {
    display: inline-flex;
    gap: 12px;
}

.admin-tab-button {
    border: 1px solid #a97142;
    background-color: transparent;
    color: #a97142;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .admin-tab-button.active,
    .admin-tab-button:hover {
        background-color: #a97142;
        color: #fff;
    }

/* ============================================
   게시글 상세페이지 이미지 크기 고정
   ============================================ */

.news-detail-content img {
    display: block;
    max-width: 420px; /* 원하는 크기: 340~480px 추천 */
    width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
