/* Notice Bar Styles */

#noticeBar {
    background: var(--white);
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-radius: 15px;
    display: none;
}

#noticeBar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notice-header h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-header h3 i {
    color: var(--primary-color);
}

.notice-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(45, 134, 89, 0.1);
    font-weight: 600;
}

.notice-more:hover {
    background: rgba(45, 134, 89, 0.2);
    transform: translateX(3px);
}

#noticeList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border: 2px solid var(--border-color);
}

.notice-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.notice-item.notice-urgent {
    border-left-color: #dc3545;
}

.notice-item.notice-event {
    border-left-color: #ffc107;
}

.notice-item.notice-maintenance {
    border-left-color: #6c757d;
}

.notice-item.notice-normal {
    border-left-color: var(--primary-color);
}

.notice-category {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-urgent .notice-category {
    background: #fee;
    color: #dc3545;
}

.notice-event .notice-category {
    background: #fff8e1;
    color: #f57c00;
}

.notice-maintenance .notice-category {
    background: #f5f5f5;
    color: #6c757d;
}

.notice-normal .notice-category {
    background: #e8f5e9;
    color: var(--primary-color);
}

.important-badge {
    flex-shrink: 0;
    background: #dc3545;
    color: var(--white);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.notice-title {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Notice Content Styles */
.notice-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notice-detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.notice-detail-content a:hover {
    color: var(--primary-dark);
}

.notice-detail-content p {
    margin-bottom: 15px;
}

.notice-detail-content h1,
.notice-detail-content h2,
.notice-detail-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.notice-detail-content ul,
.notice-detail-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.notice-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 15px 0;
    color: var(--text-light);
    font-style: italic;
}

.notice-detail-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.notice-detail-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.notice-detail-content iframe,
.notice-detail-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #noticeBar {
        padding: 12px 0;
    }

    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-item {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 8px;
    }

    .notice-title {
        flex-basis: 100%;
        order: 3;
        white-space: normal;
    }

    .notice-date {
        order: 4;
        margin-left: auto;
    }

    .notice-detail-content img {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .notice-category {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .important-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .notice-title {
        font-size: 0.9rem;
    }

    .notice-date {
        font-size: 0.75rem;
    }
}
