/* Weekly Bulletin Page Styles */

/* Navigation Logo */
.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Navigation Social Icons */
.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social a {
    color: var(--text-dark);
    font-size: 1.2rem;
    /* transition: color 0.3s; (애니몀8이션 제거됨) */
}

.nav-social a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-weekly {
    background: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.hero-weekly .hero-content h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-weekly .hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
}

/* Weekly Section */
.weekly-section {
    padding: 60px 0 30px;
    background: var(--white);
    min-height: 60vh;
}

/* Admin Controls */
.admin-controls {
    text-align: right;
    margin-bottom: 30px;
}

.btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    /* transition: all 0.3s; (애니몀8이션 제거됨) */
    box-shadow: 0 4px 15px rgba(92, 143, 220, 0.3);
}

.btn-write:hover {
    background: #4a7ac4;
    /* transform: translateY(-2px); (애니몀8이션 제거됨) */
    box-shadow: 0 6px 20px rgba(92, 143, 220, 0.4);
}

/* Weekly Table */
.weekly-table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    background: var(--bg-light);
    padding: 15px 20px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 2px solid #ddd;
}

.table-col {
    text-align: center;
}

.col-title {
    text-align: left;
}

.table-body {
    min-height: 400px;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    /* transition: all 0.2s; (애니몀8이션 제거됨) */
    align-items: center;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
}

.row-no {
    text-align: center;
    font-weight: 400;
    color: var(--text-light);
}

.row-title {
    text-align: left;
    font-weight: 400;
    color: var(--text-dark);
    padding: 0 15px;
}

.row-date {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Skeleton Loading for Weekly Bulletin Table */
.skeleton-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    /* animation: skeleton-pulse 1.5s ease-in-out infinite; (애니몀8이션 제거됨) */
}

.skeleton-no {
    width: 40px;
    height: 20px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
    margin: 0 auto;
    /* animation: skeleton-shimmer 1.5s ease-in-out infinite; (애니몀8이션 제거됨) */
}

.skeleton-title {
    width: 100%;
    height: 20px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
    /* animation: skeleton-shimmer 1.5s ease-in-out infinite; (애니몀8이션 제거됨) */
}

.skeleton-title:nth-child(2n) {
    width: 85%;
}

.skeleton-date {
    width: 100px;
    height: 18px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
    margin: 0 auto;
    /* animation: skeleton-shimmer 1.5s ease-in-out infinite; (애니몀8이션 제거됨) */
}

/* @keyframes skeleton-shimmer (애니몀8이션 제거됨) */

/* @keyframes skeleton-pulse (애니몀8이션 제거됨) */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    /* transition: all 0.3s; (애니몀8이션 제거됨) */
    font-size: 0.95rem;
    font-weight: 400;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-info {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-logo {
        height: 40px;
        margin-right: 10px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 15px;
        padding: 10px 0;
        order: 3;
        font-size: 0.9rem;
    }
    
    .nav-social {
        order: 2;
    }
    
    .hero-weekly .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-weekly .hero-content p {
        font-size: 1rem;
    }

    .table-header {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 15px;
    }

    .row-no,
    .row-date {
        text-align: left;
    }

    .row-no::before {
        content: 'No. ';
        font-weight: 500;
    }

    .row-date::before {
        content: '작성: ';
        font-weight: 500;
        color: var(--text-dark);
    }

    .row-title {
        padding: 0;
        order: -1;
        font-weight: 500;
        font-size: 1.05rem;
    }

    .admin-controls {
        text-align: center;
    }
    
    .weekly-info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .weekly-info-label {
        flex: 1;
        font-weight: 400;
    }
}

@media (max-width: 480px) {
    .hero-weekly {
        padding: 100px 0 60px;
    }

    .hero-weekly .hero-content h1 {
        font-size: 1.8rem;
    }

    .weekly-section {
        padding: 40px 0 60px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Footer - style.css 사용 */
