/* Bulletins Archive Page Styles */

.bulletins-archive {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
    min-height: 60vh;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-header h1 {
    font-size: 2.5rem;
    color: #2E1065;
    margin-bottom: 15px;
    font-weight: 700;
}

.archive-header h1 .gradient-text {
    background: linear-gradient(135deg, #2E1065 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.year-filter {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.year-filter-btn {
    padding: 10px 24px;
    border: 2px solid transparent;
    background: white;
    color: #666;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.year-filter-btn:hover {
    border-color: #7C3AED;
    color: #7C3AED;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(67, 56, 202, 0.1) 100%);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.year-filter-btn.active {
    background: linear-gradient(135deg, #7C3AED 0%, #4338CA 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.year-section {
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-header {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2E1065 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #7C3AED 0%, #4338CA 50%, transparent 100%) 1;
    display: inline-block;
    font-weight: 700;
}

.bulletins-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.bulletin-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f5f3ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.bulletin-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, transparent 0%, #7C3AED 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bulletin-item:last-child {
    border-bottom: none;
}

.bulletin-item:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.05) 0%, rgba(67, 56, 202, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(4px);
}

.bulletin-item:hover::before {
    opacity: 1;
}

.bulletin-info {
    flex: 1;
    min-width: 0;
}

.bulletin-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Period Badges with Different Colors */
.bulletin-period-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    color: #4338CA;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.15);
    transition: all 0.3s ease;
}

/* Quarter-specific colors */
.bulletin-item:nth-child(4n+1) .bulletin-period-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    box-shadow: 0 2px 6px rgba(55, 48, 163, 0.15);
}

.bulletin-item:nth-child(4n+2) .bulletin-period-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.15);
}

.bulletin-item:nth-child(4n+3) .bulletin-period-badge {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #374151;
    box-shadow: 0 2px 6px rgba(55, 65, 81, 0.15);
}

.bulletin-item:nth-child(4n+4) .bulletin-period-badge {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    color: #0c4a6e;
    box-shadow: 0 2px 6px rgba(12, 74, 110, 0.15);
}

.bulletin-title {
    font-size: 1.05rem;
    color: #2E1065;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.bulletin-item:hover .bulletin-title {
    color: #7C3AED;
}

.bulletin-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7C3AED 0%, #4338CA 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #3730A3 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    color: white;
}

.download-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
}

.download-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: scale(1.1);
}

.no-bulletins {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.no-bulletins i {
    font-size: 4rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.no-bulletins h3 {
    color: #555;
    margin-bottom: 10px;
    font-weight: 600;
}

.no-bulletins p {
    color: #888;
}

/* Responsive Design */

@media (max-width: 992px) {
    .bulletins-archive {
        padding: 60px 0;
    }

    .bulletin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 18px;
    }

    .bulletin-item:hover {
        transform: translateX(0);
    }

    .bulletin-actions {
        width: 100%;
        justify-content: space-between;
    }

    .download-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bulletins-archive {
        padding: 50px 0;
    }

    .archive-header h1 {
        font-size: 2rem;
    }

    .archive-header p {
        font-size: 1rem;
    }

    .year-filter {
        gap: 8px;
        margin-top: 20px;
    }

    .year-filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .year-header {
        font-size: 1.5rem;
    }

    .bulletin-item {
        padding: 12px 16px;
    }

    .bulletin-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bulletin-title {
        font-size: 0.95rem;
    }

    .download-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
