/* notice.css */
/* Advanced Notice Section Design - No Button Needed */

/* Homepage Notice Section */
.notice-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 1px solid #e8f5e8;
    margin-bottom: 30px;
    overflow: hidden;
}

.notice-header {
    background: linear-gradient(135deg, #2c5c1c 0%, #1e3f14 100%);
    color: white;
    padding: 18px 25px;
    margin-bottom: 0;
    border-bottom: 3px solid #ffd700;
    position: relative;
}

.notice-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #2c5c1c, #ffd700);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.notice-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-header h2::before {
    content: '📢';
    font-size: 28px;
}

.notice-content {
    max-height: 450px;
    overflow-y: auto;
    padding: 20px 25px;
    background: linear-gradient(to bottom, #ffffff, #f8fdf8);
}

.notice-content::-webkit-scrollbar {
    width: 10px;
}

.notice-content::-webkit-scrollbar-track {
    background: #f1f8f1;
    border-radius: 8px;
    margin: 5px 0;
}

.notice-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2c5c1c 0%, #4a7519 100%);
    border-radius: 8px;
    border: 2px solid #f1f8f1;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4a7519 0%, #2c5c1c 100%);
}

/* Notice Items - Enhanced Design */
.notice-item {
    background: white;
    border: 1px solid #e1f5e1;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 5px solid #2c5c1c;
    position: relative;
    overflow: hidden;
}

.notice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 92, 28, 0.05), transparent);
    transition: left 0.6s ease;
}

.notice-item:hover::before {
    left: 100%;
}

.notice-item:hover {
    background: linear-gradient(135deg, #f8fff8 0%, #f0faf0 100%);
    box-shadow: 0 8px 25px rgba(44, 92, 28, 0.15);
    transform: translateY(-3px) translateX(8px);
    border-left-color: #ffd700;
    border-color: #c8e6c9;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item.new-notice {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #fff8f8 0%, #fff0f0 100%);
}

.notice-item.new-notice::after {
    content: 'NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.notice-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c5c1c;
    margin-bottom: 10px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-title::before {
    content: '•';
    color: #4a7519;
    font-size: 24px;
    line-height: 1;
}

.notice-title a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s ease;
}

.notice-title a:hover {
    color: #1e3f14;
    text-decoration: underline;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.notice-date {
    color: #2c5c1c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-date::before {
    content: '📅';
    font-size: 12px;
}

.notice-category {
    background: linear-gradient(135deg, #2c5c1c 0%, #4a7519 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-priority {
    background: #ffd700;
    color: #2c5c1c;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* Notice List Page - Enhanced */
.notice-list-container {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e8f5e8;
    overflow: hidden;
}

.notice-list-header {
    background: linear-gradient(135deg, #2c5c1c 0%, #1e3f14 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: 3px solid #ffd700;
}

.notice-list-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-list-header h1::before {
    content: '📋';
    font-size: 32px;
}

.notice-list-content {
    padding: 25px 30px;
    background: linear-gradient(to bottom, #ffffff, #f8fdf8);
}

/* Notice Detail Page - Enhanced */
.notice-detail {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e8f5e8;
    overflow: hidden;
    margin-bottom: 30px;
}

.notice-detail-header {
    background: linear-gradient(135deg, #2c5c1c 0%, #1e3f14 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: 3px solid #ffd700;
}

.notice-detail-title {
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 28px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.notice-detail-meta {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.notice-detail-content {
    padding: 35px 30px;
    background: linear-gradient(to bottom, #ffffff, #f8fdf8);
    line-height: 1.8;
    font-size: 16px;
}

.notice-detail-content p {
    margin-bottom: 15px;
}

.notice-detail-footer {
    background: #f8fdf8;
    padding: 20px 30px;
    border-top: 1px solid #e8f5e8;
    text-align: center;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2c5c1c 0%, #1e3f14 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-to-list:hover {
    background: linear-gradient(135deg, #4a7519 0%, #2c5c1c 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 92, 28, 0.3);
    border-color: #ffd700;
}

/* Empty State */
.notice-empty {
    text-align: center;
    padding: 50px 30px;
    color: #666;
}

.notice-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.notice-empty h3 {
    color: #2c5c1c;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notice-section,
    .notice-list-container,
    .notice-detail {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    
    .notice-header,
    .notice-list-header,
    .notice-detail-header {
        padding: 15px 20px;
    }
    
    .notice-header h2,
    .notice-list-header h1,
    .notice-detail-title {
        font-size: 20px;
    }
    
    .notice-content,
    .notice-list-content,
    .notice-detail-content {
        padding: 15px 20px;
    }
    
    .notice-item {
        padding: 15px;
    }
    
    .notice-title {
        font-size: 15px;
    }
    
    .notice-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .notice-detail-meta {
        gap: 10px;
        font-size: 13px;
    }
    
    .back-to-list {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .notice-header h2::before,
    .notice-list-header h1::before {
        display: none;
    }
    
    .notice-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .notice-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}