/* ============================================
   ANNOUNCEMENTS SYSTEM STYLING
   ============================================ */

/* Announcements Manager (Admin Panel) */
.announcements-manager {
    max-width: 1200px;
    margin: 0 auto;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.announcements-header h2 {
    color: #D4AF37;
    font-size: 2rem;
    margin: 0;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-state {
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 1.1rem;
}

.announcement-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.announcement-card.active {
    border-color: #D4AF37;
}

.announcement-card.inactive {
    opacity: 0.6;
}

.announcement-card .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.announcement-card h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}

.announcement-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #666;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #D4AF37;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.announcement-content p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.announcement-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.announcement-type.info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.announcement-type.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.announcement-type.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.announcement-type.danger {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.announcement-date {
    color: #888;
    font-size: 0.85rem;
}

/* Announcements Banner (Public Site) */
.announcements-banner {
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.announcement-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-item.announcement-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196F3;
}

.announcement-item.announcement-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #FF9800;
}

.announcement-item.announcement-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
}

.announcement-item.announcement-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
}

.announcement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
}

.announcement-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.announcement-text p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-card .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .announcement-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .announcement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}