.announcement-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.announcement-popup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.announcement-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-popup.show .announcement-popup-overlay {
    opacity: 1;
}

.announcement-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: auto;
    max-height: calc(100vh - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
}

/* Genişlik sınıfları */
.announcement-popup-content.small {
    max-width: 400px;
}

.announcement-popup-content.medium {
    max-width: 600px;
}

.announcement-popup-content.large {
    max-width: 800px;
}

.announcement-popup.show .announcement-popup-content {
    opacity: 1;
    transform: translateY(0);
}

/* Kapatma düğmesi */
.announcement-popup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.announcement-popup-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* Görsel alanı */
.announcement-popup-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 60vh;
}

/* Sadece görsel modu */
.announcement-popup.image-only .announcement-popup-content {
    background: transparent;
    box-shadow: none;
    width: auto;
    overflow: visible;
    max-height: none;
}

.announcement-popup.image-only .announcement-popup-image {
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
}

.announcement-popup.image-only .announcement-popup-image img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* İçerik alanı */
.announcement-popup-body {
    padding: 30px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.announcement-popup-title {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
    line-height: 1.3;
}

.announcement-popup-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buton stilleri */
.announcement-popup-buttons {
    margin-top: 25px;
}

.announcement-popup-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color, #007bff);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.announcement-popup-button:hover {
    background: var(--primary-color-dark, #0056b3);
    transform: translateY(-2px);
}

/* Footer alanı */
.announcement-popup-footer {
    padding: 15px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.announcement-popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.announcement-popup-checkbox input {
    margin: 0;
}

.announcement-popup-checkbox span {
    font-size: 14px;
    color: #666;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .announcement-popup {
        padding: 10px;
    }

    .announcement-popup-content {
        max-height: calc(100vh - 20px);
    }

    .announcement-popup-image {
        max-height: 40vh;
    }

    .announcement-popup-image img {
        max-height: 40vh;
    }

    .announcement-popup-title {
        font-size: 20px;
    }

    .announcement-popup-description {
        font-size: 14px;
    }

    .announcement-popup-body {
        padding: 20px;
    }

    .announcement-popup-footer {
        padding: 12px 20px;
    }

    .announcement-popup.image-only .announcement-popup-image {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
} 