/* Система объявлений - CSS стили */

/* Затемнение фона */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.announcement-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Контейнер объявления */
.announcement-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    animation: announcementSlideIn 0.4s ease-out;
}

.announcement-overlay.show .announcement-container {
    transform: scale(1) translateY(0);
}

/* Анимация появления */
@keyframes announcementSlideIn {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Заголовок объявления */
.announcement-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.announcement-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.announcement-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Кнопка закрытия */
.announcement-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

/* Содержимое объявления */
.announcement-content {
    padding: 2.5rem;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

.announcement-content h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.announcement-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.announcement-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.announcement-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Кнопки действий */
.announcement-actions {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.announcement-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.announcement-btn:active {
    transform: translateY(0);
}

.announcement-btn.secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.announcement-btn.secondary:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .announcement-container {
        width: 95%;
        margin: 1rem;
    }
    
    .announcement-header {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.5rem;
    }
    
    .announcement-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .announcement-actions {
        padding: 0 1.5rem 2rem;
        flex-direction: column;
    }
    
    .announcement-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .announcement-header {
        padding: 1rem;
    }
    
    .announcement-title {
        font-size: 1.3rem;
        padding-right: 3rem;
    }
    
    .announcement-content {
        padding: 1.5rem 1rem;
    }
    
    .announcement-actions {
        padding: 0 1rem 1.5rem;
    }
}

/* Скрытие скроллбара для контейнера */
.announcement-container::-webkit-scrollbar {
    width: 6px;
}

.announcement-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.announcement-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.announcement-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
