/* =================================================================
   ANNOUNCEMENT POPUP - Duyuru Sistemi
   ================================================================= */

/* Popup container - başlangıçta gizli */
.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Popup görünür olduğunda */
.announcement-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Arka plan overlay - hafif blur */
.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

/* Popup içerik kutusu */
.announcement-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Popup içerik aktif olduğunda yumuşak yüzme */
.announcement-popup.active .announcement-content {
    animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
               gentleFloat 3s ease-in-out infinite;
}

/* Duyuru resmi */
.announcement-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Kapat butonu */
.announcement-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.announcement-close:hover {
    background: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.announcement-close:active {
    transform: scale(0.95);
}

.announcement-close svg {
    color: #333;
}

/* =================================================================
   ANIMASYONLAR
   ================================================================= */

/* Fade in animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Float in animasyonu - yukarıdan yumuşak geliş */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Yumuşak yüzme animasyonu */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .announcement-content {
        max-width: 95%;
        max-height: 85vh;
        border-radius: 15px;
    }
    
    .announcement-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .announcement-image {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .announcement-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .announcement-overlay {
        backdrop-filter: blur(5px);
    }
}
