/* ======================================================
   registration.css - Стили модального окна
   Для клановой системы "Листопад"
   ====================================================== */

/* Оверлей */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

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

/* Контейнер модального окна */
.modal-container {
    background: linear-gradient(145deg, #1e2a2a 0%, #0f1515 100%);
    border: 2px solid #13873a;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 440px;
    width: 90%;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

/* Шапка модалки */
.modal-container .modal-header {
    border-bottom: 1px solid #13873a;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Заголовок */
.modal-container .modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #13873a, #13873a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin: 0;
}

.modal-container .modal-title i {
    color: #13873a;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    margin-right: 10px;
}

/* Кнопка закрытия — большой крестик */
.modal-container .modal-close {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #13873a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: #13873a;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-container .modal-close:hover {
    background: #13873a;
    color: #0f1515;
    transform: rotate(90deg);
    border-color: #13873a;
}

.modal-container .modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Блок с кнопками соцсетей */
.modal-container .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px 24px;
}

/* Базовая кнопка соцсети */
.modal-container .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #2a3a3a;
    position: relative;
    overflow: hidden;
}

/* Эффект волны при наведении */
.modal-container .social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-container .social-btn:hover::before {
    left: 100%;
}

/* Иконки в кнопках */
.modal-container .social-btn i {
    font-size: 1.6rem;
    width: 32px;
    transition: transform 0.2s ease;
}

.modal-container .social-btn:hover i {
    transform: scale(1.1);
}

/* Стрелка справа */
.modal-container .social-btn i:last-child {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: auto;
    width: auto;
}

/* Google */
.modal-container .social-btn.google {
    background: linear-gradient(135deg, #1a1f2a, #0f1515);
    border-color: #DB4437;
}

.modal-container .social-btn.google:hover {
    background: linear-gradient(135deg, #DB4437, #b83c31);
    border-color: #ff6b5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(219, 68, 55, 0.3);
}

.modal-container .social-btn.google i:first-child {
    color: #DB4437;
}

.modal-container .social-btn.google:hover i:first-child {
    color: white;
}

/* Telegram */
.modal-container .social-btn.telegram {
    background: linear-gradient(135deg, #1a1f2a, #0f1515);
    border-color: #26A5E4;
}

.modal-container .social-btn.telegram:hover {
    background: linear-gradient(135deg, #26A5E4, #1f8fca);
    border-color: #5bc4ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 165, 228, 0.3);
}

.modal-container .social-btn.telegram i:first-child {
    color: #26A5E4;
}

.modal-container .social-btn.telegram:hover i:first-child {
    color: white;
}

/* Discord */
.modal-container .social-btn.discord {
    background: linear-gradient(135deg, #1a1f2a, #0f1515);
    border-color: #5865F2;
}

.modal-container .social-btn.discord:hover {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border-color: #7c8aff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.modal-container .social-btn.discord i:first-child {
    color: #5865F2;
}

.modal-container .social-btn.discord:hover i:first-child {
    color: white;
}

/* Текст кнопки */
.modal-container .social-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-container .social-btn:hover span {
    color: white;
}

/* Декоративный футер */
.modal-container .modal-footer-decoration {
    padding: 12px 24px 20px;
    text-align: center;
    border-top: 1px dashed #13873a;
    font-size: 0.75rem;
    color: #13873a;
}

.modal-container .modal-footer-decoration i {
    margin: 0 4px;
}

/* Анимация пульсации для кнопок */
@keyframes clashPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.modal-container .social-btn {
    animation: clashPulse 2s infinite;
    animation-play-state: paused;
}

.modal-container .social-btn:hover {
    animation-play-state: running;
}

/* Адаптивность */
@media (max-width: 480px) {
    .modal-container {
        width: 92%;
        border-radius: 16px;
    }
    
    .modal-container .social-buttons {
        padding: 20px;
        gap: 12px;
    }
    
    .modal-container .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-container .modal-header {
        padding: 16px 20px;
    }
    
    .modal-container .social-btn {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .modal-container .social-btn i {
        font-size: 1.3rem;
        width: 28px;
    }
    
    .modal-container .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .modal-container .modal-footer-decoration {
        padding: 10px 20px 16px;
        font-size: 0.7rem;
    }
}