/**
 * Single Notice Page Styles
 */

.single-notice-page {
    padding: var(--spacing-xl) 0 var(--spacing-xxl);
    background: #f8fafb;
}

/* ============================================
   Back Navigation
   ============================================ */

.notice-back-nav {
    margin-bottom: var(--spacing-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7b89;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #154D8C;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

/* ============================================
   Notice Header
   ============================================ */

.notice-header {
    background: transparent;
    border-radius: 0;
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xl);
    box-shadow: none;
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
    position: relative;
}

.notice-header-main {
    flex: 1;
}

.notice-categories {
    margin-bottom: var(--spacing-md);
}

.category-badge {
    display: inline-block;
    background: #E8F4F8;
    color: #154D8C;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.notice-title {
    font-size: 36px;
    font-weight: 700;
    padding-right: 15rem;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 var(--spacing-lg) 0;
}

.notice-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7b89;
    font-size: 14px;
}

.meta-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.notice-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #154D8C;
    color: #fff;
}

.btn-primary:hover {
    background: #0f3a6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 77, 140, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151 !important;
    border-color: #d1d5db;
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Date Badge */
.notice-date-badge {
    background: #154D8C1A;
    color: #154D8C;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #154D8C33;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-day {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.date-year {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   Content Layout
   ============================================ */

.notice-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
}

/* ============================================
   Main Content
   ============================================ */

.notice-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.notice-section {
    background: #fff;
    border-radius: 12px;
    padding: var(--spacing-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #DFE6EB;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 var(--spacing-md) 0;
}

.section-content {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: var(--spacing-md);
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Attachments Grid */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.attachment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.attachment-card:hover {
    background: #fff;
    border-color: #154D8C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.attachment-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #154D8C1A;
    border-radius: 6px;
    color: #154D8C;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 12px;
    color: #6b7b89;
}

.attachment-download-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #154D8C;
    background: #fff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.attachment-card:hover .attachment-download-icon {
    background: #154D8C;
    color: #fff;
}

/* ============================================
   Sidebar
   ============================================ */

.notice-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #DFE6EB;
}

.sidebar-card-downloads {
    background: #154D8C0D;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #DFE6EB;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid #f3f4f6;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7b89;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

.detail-value a {
    color: #154D8C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-value a:hover {
    color: #0f3a6b;
    text-decoration: underline;
}

/* ============================================
   Download Options
   ============================================ */

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #154D8C0D;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.download-action-btn:hover {
    background: #154D8C1A;
    border-color: #d1d5db;
}

.download-action-btn svg {
    color: #154D8C;
    flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .notice-content-layout {
        grid-template-columns: 1fr 320px;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 992px) {
    .notice-header {
        flex-direction: column;
    }
    
    .notice-date-badge {
        align-self: flex-start;
    }
    
    .notice-content-layout {
        grid-template-columns: 1fr;
    }

    .notice-title {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .notice-header {
        padding: var(--spacing-lg) 0;
    }
    
    .notice-title {
        font-size: 28px;
    }
    
    .notice-section {
        padding: var(--spacing-lg);
    }
    
    .sidebar-card,
    .sidebar-card-downloads {
        padding: var(--spacing-md);
    }
    
    .attachments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .notice-title {
        font-size: 24px;
    }
    
    .notice-actions {
        width: 100%;
    }
    
    .notice-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .section-title {
        font-size: 20px;
    }
}
