/* Import Clash Display Font from Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: #060606;
    border: 1px solid #ffffff;
    border-radius: 20px;
    padding: 50px 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.popup-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.popup-title {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.popup-description {
    font-family: 'Clash Display', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1em;
    color: #ffffff;
    width: 500px;
    max-width: 100%;
    margin: 0;
}

.popup-btn {
    width: 100%;
    padding: 16px 117px;
    background: #FF5C05;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 92, 5, 0.3);
}

/* Cookie Popup Specific Styles */
.cookie-popup {
    padding: 40px 20px;
}

.cookie-buttons {
    display: flex;
    width: 100%;
    gap: 10px;
}

.cookie-btn-decline {
    flex: 1;
    padding: 10px 24px;
    background: transparent;
    color: #FF5C05;
    border: 1px solid #FF5C05;
    border-radius: 10px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-decline:hover {
    background: #FF5C05;
    color: #ffffff;
}

.cookie-btn-accept {
    width: 289px;
    padding: 10px 24px;
    background: #FF5C05;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 92, 5, 0.3);
}

/* Mobile Popup Styles */
@media (max-width: 480px) {
    .mobile-popup .popup-container {
        width: 340px;
        padding: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .mobile-popup .popup-content {
        gap: 40px;
    }
    
    .mobile-popup .popup-title {
        font-size: 24px;
    }
    
    .mobile-popup .popup-description {
        width: 100%;
        font-size: 14px;
    }
    
    .mobile-popup .popup-btn {
        width: 100%;          /* Полная ширина на мобильном */
        max-width: 280px;     /* Максимальная ширина */
        padding: 12px 24px;
        font-size: 14px;
        margin: 0 auto;       /* Центрируем кнопку */
    }
    
    .mobile-popup .cookie-btn-decline,
    .mobile-popup .cookie-btn-accept {
        font-size: 14px;
        padding: 10px 16px;   /* Увеличиваем отступы для лучшего тача */
        min-height: 44px;     /* Минимальная высота для удобного нажатия */
        flex: 1;              /* Равномерное распределение */
        text-align: center;
    }
    
    .mobile-popup .cookie-btn-accept {
        width: auto;
        flex: 1;
    }
}

/* Animation for popup entrance */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-overlay.active .popup-container {
    animation: popupFadeIn 0.3s ease forwards;
}

/* Close button (if needed) */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.popup-close:hover {
    opacity: 0.7;
}