/* 
 * Syrian Judo Federation - Landing Custom Styles
 * Modern, Premium, and Centralized Styles
 */

/* ==========================================================================
   1. Global Enhancements & Variables
   ========================================================================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(15, 48, 107, 0.1);
}

/* ==========================================================================
   2. Header & Navigation Components
   ========================================================================== */

/* CTA link in Navbar */
.nav-link.cta-link {
    color: var(--accent-orange) !important;
    font-weight: 800 !important;
    transition: var(--transition-fast);
}

.nav-link.cta-link:hover {
    color: var(--accent-orange-dark) !important;
    transform: translateY(-1px);
}

/* Nav Dropdown Logout Button */
.nav-dropdown__item-logout {
    color: #d43b2a !important;
    transition: var(--transition-fast);
}

.nav-dropdown__item-logout:hover {
    background: rgba(212, 59, 42, 0.05) !important;
}

/* Return to site item */
.nav-dropdown__item--return {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 4px;
    padding-bottom: 12px !important;
}

/* ==========================================================================
   3. Mobile Drawer Buttons
   ========================================================================== */
.drawer-login-btn, 
.drawer-logout-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 20px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    width: 100% !important;
    transition: var(--transition-fast) !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.drawer-login-btn {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 159, 0, 0.25) !important;
}

.drawer-login-btn:active {
    transform: scale(0.98);
}

.drawer-login-btn--outline {
    background: transparent !important;
    color: var(--accent-orange) !important;
    border: 2px solid var(--accent-orange) !important;
    box-shadow: none !important;
}

.drawer-login-btn--outline:hover {
    background: rgba(255, 159, 0, 0.05) !important;
}

.drawer-logout-btn {
    background: rgba(212, 59, 42, 0.08) !important;
    color: #d43b2a !important;
    border: 1.5px solid rgba(212, 59, 42, 0.15) !important;
}

.drawer-logout-btn:hover {
    background: rgba(212, 59, 42, 0.12) !important;
}

.drawer-ico--red {
    filter: invert(27%) sepia(91%) saturate(2352%) hue-rotate(346deg) brightness(85%) contrast(106%);
}

/* ==========================================================================
   4. UI Components (Back to Home, etc.)
   ========================================================================== */
@media (max-width: 500px) {
    .back-to-home {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin: 0 auto 24px auto !important;
        width: fit-content !important;
        background: #fff !important;
        box-shadow: var(--shadow-md) !important;
        padding: 12px 24px !important;
        border-radius: var(--radius-md) !important;
    }
}

/* ==========================================================================
   5. Flash Toasts
   ========================================================================== */
.flash-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.flash-toast--error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.95));
}

.flash-toast--success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.95));
}

.flash-toast--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.95));
}

@keyframes toastSlideIn {
    from { transform: translateY(100px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(100px) scale(0.9); opacity: 0; }
}
