/* ===== OAUTH2 BUTTONS STYLES ===== */

/* Контейнер за OAuth бутони */
.oauth-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* Разделител между традиционен login и OAuth */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    position: relative;
}

.oauth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.oauth-divider-text {
    padding: 0 16px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Основни стилове за OAuth бутони */
.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.oauth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.oauth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Икона в OAuth бутоните */
.oauth-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Google Button - Бял фон с черен текст */
.oauth-btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.oauth-btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.oauth-btn-google:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Facebook Button - Син фон с бял текст */
.oauth-btn-facebook {
    background-color: #1877F2;
    color: #ffffff;
    border-color: #1877F2;
}

.oauth-btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.oauth-btn-facebook:focus {
    outline: 2px solid #1877F2;
    outline-offset: 2px;
}

.oauth-btn-facebook .oauth-icon {
    filter: brightness(0) invert(1);
}

/* Анимация при hover */
.oauth-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.oauth-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive стилове */
@media (max-width: 576px) {
    .oauth-buttons-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .oauth-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .oauth-icon {
        width: 14px;
        height: 14px;
    }
    
    .oauth-divider-text {
        font-size: 0.75rem;
        padding: 0 10px;
    }
}

/* Стилове специфични за модала */
#loginModal .modal-footer .oauth-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 0 !important;
    width: 100% !important;
}

#loginModal .modal-footer .oauth-btn {
    flex: 1 !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    gap: 8px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

#loginModal .modal-footer .oauth-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

#loginModal .modal-footer .oauth-divider {
    margin: 16px 0 !important;
}

/* Стилове специфични за login страницата */
form.mx-auto .oauth-buttons-container {
    margin-top: 0;
}

form.mx-auto .oauth-divider {
    margin: 20px 0;
}

/* Loading state (ако е необходимо в бъдеще) */
.oauth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.oauth-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

