/**
 * Authentication Buttons - Giriş Yap & Kayıt Ol
 * Header ve Mobil Menü için buton stilleri
 */

/* Desktop Auth Buttons */
.header-actions .btn-modern {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.header-actions .btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.header-actions .btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.header-actions .btn-primary-modern {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header-actions .btn-primary-modern:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.header-actions .btn-secondary-modern {
    background: rgba(249, 250, 251, 0.8);
    color: #1F2937;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.header-actions .btn-secondary-modern:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366F1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Mobile Auth Buttons */
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 1rem;
}

.btn-mobile-full {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .header-actions .btn-modern {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    /* Hide desktop auth buttons on mobile */
    .header-actions > .btn-modern {
        display: none;
    }
    
    /* Show mobile auth buttons */
    .mobile-auth-buttons {
        display: flex;
    }
}

@media (min-width: 769px) {
    /* Hide mobile auth buttons on desktop */
    .mobile-auth-buttons {
        display: none;
    }
}

/* Button Loading State */
.btn-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-modern.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Focus State */
.btn-modern:focus {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
}

.btn-modern:focus:not(:focus-visible) {
    outline: none;
}

/* Button Active State */
.btn-modern:active {
    transform: translateY(0);
}

/* Button Disabled State */
.btn-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icon Support */
.btn-modern svg {
    width: 18px;
    height: 18px;
}

/* Button Group Spacing */
.header-actions .btn-modern + .btn-modern {
    margin-left: 0.75rem;
}

/* Mobile Menu Button Animations */
.mobile-auth-buttons .btn-modern {
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
}

.mobile-auth-buttons .btn-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-auth-buttons .btn-modern:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support (Future) */
@media (prefers-color-scheme: dark) {
    .btn-secondary-modern {
        background: rgba(31, 41, 55, 0.8);
        color: #F9FAFB;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .btn-secondary-modern:hover {
        background: rgba(31, 41, 55, 1);
        border-color: rgba(99, 102, 241, 0.5);
    }
}
