/* ======================================
   ANNOUNCEMENTS - TIMELINE DESIGN
   Compact version with max-width
   ====================================== */

/* Constrain width */
.announcements .container {
    max-width: 700px;
}

/* Timeline Layout */
.announcements-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1.75rem;
}

.announcements-grid::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #8b5cf6 0%, #06b6d4 100%);
    border-radius: 2px;
}

/* Announcement Card - Timeline Item */
.announcement-card {
    position: relative;
    padding: 0.875rem 1rem;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.announcement-card::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1rem;
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    border: 2px solid #030308;
}

.announcement-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateX(4px);
}

/* Badge */
.announcement-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.announcement-badge.update,
.announcement-badge.güncelleme {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.announcement-badge.event,
.announcement-badge.etkinlik {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.announcement-badge.important,
.announcement-badge.önemli {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.announcement-badge.info,
.announcement-badge.duyuru {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* Title */
.announcement-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

/* Description */
.announcement-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* Date */
.announcement-date {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

/* Image Support */
.announcement-card img,
.announcement-card .announcement-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-card.has-image {
    padding-bottom: 0.75rem;
}

/* Skeleton Loading */
.announcement-skeleton {
    padding: 1rem;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    height: 80px;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .announcements .container {
        max-width: 100%;
    }

    .announcements-grid {
        padding-left: 1.5rem;
    }

    .announcements-grid::before {
        left: 5px;
    }

    .announcement-card {
        padding: 0.75rem;
    }

    .announcement-card::before {
        left: -1.5rem;
        width: 8px;
        height: 8px;
    }

    .announcement-card h4 {
        font-size: 0.85rem;
    }

    .announcement-card p {
        font-size: 0.75rem;
    }
}