/* Fixed Announcements - Ana Sayfa Sabit Duyurular */
.announcements-fixed {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.announcements-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-fixed {
    margin-bottom: 1rem;
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: slideInDown 0.6s ease-out;
}

.announcement-fixed:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-fixed::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.announcement-fixed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.announcement-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite, rotate 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes rotate {
    0% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)) hue-rotate(0deg);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.8)) hue-rotate(360deg);
    }
}

.announcement-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.announcement-title {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: glow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
    to {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor, 0 0 50px currentColor;
    }
}

.announcement-message {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
}

.announcement-effects {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.announcement-effects .effect {
    animation: sparkle 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

.announcement-effects .effect:nth-child(1) {
    animation-delay: 0s;
}

.announcement-effects .effect:nth-child(2) {
    animation-delay: 0.5s;
}

.announcement-effects .effect:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Modal Announcement */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.announcement-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10001;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: modalPulse 2s ease-in-out infinite;
}

@keyframes modalPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1) rotate(90deg);
}

.modal-body {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: modalBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.8));
}

@keyframes modalBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: modalGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 15px currentColor, 0 0 25px currentColor, 0 0 35px currentColor;
}

@keyframes modalGlow {
    from {
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor, 0 0 35px currentColor;
    }
    to {
        text-shadow: 0 0 25px currentColor, 0 0 35px currentColor, 0 0 45px currentColor, 0 0 55px currentColor;
    }
}

.modal-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.modal-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.modal-sparkles .sparkle {
    position: absolute;
    font-size: 2rem;
    animation: floatSparkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.modal-sparkles .sparkle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.modal-sparkles .sparkle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.modal-sparkles .sparkle:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.modal-sparkles .sparkle:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatSparkle {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) rotate(0deg) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) rotate(180deg) scale(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-fixed {
        padding: 1rem 0;
    }

    .announcement-fixed {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .announcement-content {
        flex-wrap: wrap;
        text-align: center;
        gap: 0.75rem;
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    .announcement-message {
        font-size: 0.95rem;
    }
    
    .announcement-icon {
        font-size: 2rem;
    }

    .announcement-effects {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .announcement-fixed {
        padding: 0.75rem;
    }
    
    .announcement-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .announcement-message {
        font-size: 0.85rem;
    }
    
    .announcement-icon {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .modal-icon {
        font-size: 2.5rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-message {
        font-size: 0.95rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}
