﻿/* Welcome Modal Styles - PC & Mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.welcome-modal {
    background: white;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .welcome-modal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(90deg, #3454d1, #17c666);
    }

.welcome-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .welcome-logo img {
        max-height: 80px;
        width: auto;
    }

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #3454d1, #17c666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.welcome-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.welcome-btn {
    padding: 1rem;
    border-radius: 16px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

    .welcome-btn i {
        font-size: 1.2rem;
    }

.welcome-btn-register {
    background: linear-gradient(135deg, #3454d1, #4a6cf7);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 84, 209, 0.3);
}

    .welcome-btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(52, 84, 209, 0.4);
    }

.welcome-btn-login {
    background: white;
    color: #3454d1;
    border: 2px solid #e2e8f0;
}

    .welcome-btn-login:hover {
        border-color: #3454d1;
        background: #f8fafc;
        transform: translateY(-2px);
    }

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.feature-item {
    text-align: center;
}

    .feature-item i {
        font-size: 1.5rem;
        color: #3454d1;
        margin-bottom: 0.5rem;
    }

    .feature-item span {
        font-size: 0.85rem;
        color: #64748b;
        display: block;
    }

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .close-modal:hover {
        background: #f1f5f9;
        color: #1e293b;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DESKTOP VIEW - REDUCED BY 25% (except logo and title) ===== */
@media (min-width: 769px) {
    .welcome-subtitle {
        font-size: 0.75rem; /* 1rem * 0.75 = 0.75rem */
        margin-bottom: 1.5rem; /* 2rem * 0.75 = 1.5rem */
    }

    .welcome-options {
        gap: 0.75rem; /* 1rem * 0.75 = 0.75rem */
        margin-bottom: 1.5rem; /* 2rem * 0.75 = 1.5rem */
    }

    .welcome-btn {
        padding: 0.75rem; /* 1rem * 0.75 = 0.75rem */
        font-size: 0.825rem; /* 1.1rem * 0.75 = 0.825rem */
        border-radius: 12px; /* 16px * 0.75 = 12px */
        gap: 7.5px; /* 10px * 0.75 = 7.5px */
    }

        .welcome-btn i {
            font-size: 0.9rem; /* 1.2rem * 0.75 = 0.9rem */
        }

    .welcome-features {
        gap: 0.75rem; /* 1rem * 0.75 = 0.75rem */
        margin-top: 1.125rem; /* 1.5rem * 0.75 = 1.125rem */
        padding-top: 1.125rem; /* 1.5rem * 0.75 = 1.125rem */
    }

    .feature-item i {
        font-size: 1.125rem; /* 1.5rem * 0.75 = 1.125rem */
        margin-bottom: 0.375rem; /* 0.5rem * 0.75 = 0.375rem */
    }

    .feature-item span {
        font-size: 0.6375rem; /* 0.85rem * 0.75 = 0.6375rem */
    }

    .close-modal {
        font-size: 0.9rem; /* 1.2rem * 0.75 = 0.9rem */
        width: 24px; /* 32px * 0.75 = 24px */
        height: 24px;
    }

    .text-center.mt-3.small.text-muted {
        font-size: 0.675rem; /* 0.9rem * 0.75 = 0.675rem */
        margin-top: 0.75rem !important; /* Adjust as needed */
    }
}

/* ===== MOBILE FULL-SCREEN MODE ===== */
@media (max-width: 768px) {
    .welcome-modal-overlay {
        background: white;
        backdrop-filter: none;
        padding: 0;
        align-items: stretch;
    }

    .welcome-modal {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 2rem 1.5rem;
        animation: fadeIn 0.3s ease;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        overflow-y: auto;
    }

        .welcome-modal::before {
            height: 4px;
        }

    /* Close button removed on mobile */
    .close-modal {
        display: none;
    }

    /* Logo - Increased by 25% */
    .welcome-logo img {
        max-height: 100px; /* 80px * 1.25 = 100px */
    }

    /* Welcome Title - No changes (as requested) */
    .welcome-title {
        font-size: 2rem; /* Kept the same */
    }

    /* Welcome Subtitle - Reduced by 30% */
    .welcome-subtitle {
        font-size: 0.7rem; /* 1rem * 0.7 = 0.7rem */
        margin-bottom: 1.4rem; /* 2rem * 0.7 = 1.4rem */
    }

    /* Welcome Options Container - Reduced by 30% */
    .welcome-options {
        gap: 0.7rem; /* 1rem * 0.7 = 0.7rem */
        margin-bottom: 1.4rem; /* 2rem * 0.7 = 1.4rem */
    }

    /* Buttons - Reduced by 30% */
    .welcome-btn {
        padding: 0.7rem; /* 1rem * 0.7 = 0.7rem */
        font-size: 0.77rem; /* 1.1rem * 0.7 = 0.77rem */
        border-radius: 11px; /* 16px * 0.7 ≈ 11px */
        gap: 7px; /* 10px * 0.7 = 7px */
    }

        .welcome-btn i {
            font-size: 0.84rem; /* 1.2rem * 0.7 = 0.84rem */
        }

    /* Features Grid - Reduced by 30% */
    .welcome-features {
        gap: 0.7rem; /* 1rem * 0.7 = 0.7rem */
        margin-top: 1.05rem; /* 1.5rem * 0.7 = 1.05rem */
        padding-top: 1.05rem; /* 1.5rem * 0.7 = 1.05rem */
    }

    .feature-item i {
        font-size: 1.05rem; /* 1.5rem * 0.7 = 1.05rem */
        margin-bottom: 0.35rem; /* 0.5rem * 0.7 = 0.35rem */
    }

    .feature-item span {
        font-size: 0.595rem; /* 0.85rem * 0.7 ≈ 0.595rem */
    }

    /* Footer Text - Reduced by 30% */
    .text-center.mt-3.small.text-muted {
        font-size: 0.63rem; /* 0.9rem * 0.7 = 0.63rem */
        margin-top: 1.4rem !important; /* 2rem * 0.7 = 1.4rem */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .welcome-modal {
        padding: 1.5rem 1.25rem;
    }

    /* Keep proportional scaling for smaller devices */
    .welcome-logo img {
        max-height: 100px; /* Maintain 25% increase */
    }

    .welcome-btn {
        padding: 0.7rem;
        font-size: 0.77rem;
    }

    .feature-item i {
        font-size: 1.05rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .welcome-modal {
        padding: 1.25rem 1rem;
    }

    .welcome-logo img {
        max-height: 100px; /* Maintain 25% increase */
    }
}

/* Tablet Specific - Keep modal style but apply mobile scaling */
@media (min-width: 481px) and (max-width: 768px) {
    .welcome-modal {
        max-width: 450px;
        width: 90%;
        height: auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        justify-content: flex-start;
        margin: auto;
    }

    .welcome-modal-overlay {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        align-items: center;
        justify-content: center;
    }

    /* Close button hidden on tablets too (since they're in mobile range) */
    .close-modal {
        display: none;
    }

    /* Apply mobile scaling to tablets */
    .welcome-logo img {
        max-height: 100px;
    }

    .welcome-subtitle {
        font-size: 0.7rem;
        margin-bottom: 1.4rem;
    }

    .welcome-options {
        gap: 0.7rem;
        margin-bottom: 1.4rem;
    }

    .welcome-btn {
        padding: 0.7rem;
        font-size: 0.77rem;
        border-radius: 11px;
        gap: 7px;
    }

        .welcome-btn i {
            font-size: 0.84rem;
        }

    .welcome-features {
        gap: 0.7rem;
        margin-top: 1.05rem;
        padding-top: 1.05rem;
    }

    .feature-item i {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .feature-item span {
        font-size: 0.595rem;
    }
}
