/* User Type Selection Modal */
.user-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.user-type-modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #cfb45c 0%, #c27c50 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
    position: relative;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-logo img {
    width: 50px;
    height: 50px;
}

.modal-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 300;
}

.user-type-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-type-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.user-type-card:hover {
    transform: translateY(-5px);
}

.user-type-options-other .user-type-card {
    flex: 1;
    min-width: 0;
}

.cyber-careers-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    padding: 10px;
    background: white;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.student-card {
    border-top: 4px solid #4CAF50;
    border: 2px solid #4CAF50;
    background-image: url('/assets/images/homepageStudentButton.png');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    padding: 1rem 1rem 10rem 1rem;    
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 1),
                 0px 0px 20px rgba(255, 255, 255, 1),
                 0px 0px 30px rgba(255, 255, 255, 1),
                 0px 0px 40px rgba(255, 255, 255, 1);
}

.student-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}
.student-card:hover::before {
    left: 100%;
}

.student-card:hover .cyber-careers-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    border-color: #45a049;
}

.user-type-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.user-type-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Enhanced styles for student card text to be readable against background image */
.student-card .user-type-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    -webkit-text-stroke: 1px #fff;
    margin: 0;
}

.student-card .user-type-description {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
    -webkit-text-stroke: 1px #fff;
    line-height: 1.4;
}

.user-type-options-other {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.educator-card,
.parent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.user-type-card.disabled .user-type-title,
.user-type-card.disabled .user-type-description {
    /* Specific overrides for user-type-card text elements */
    color: #6c757d !important;
    -webkit-text-stroke: none !important;
    text-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design - iPad Landscape and smaller tablets */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 700px;
        padding: 35px 25px;
    }

    .user-type-options-other {
        gap: 15px;
    }
}

/* Tablet and Mobile responsiveness */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .user-type-card {
        max-width: none;
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-subtitle {
        font-size: 1rem;
    }

    .user-type-options-other {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 25px 15px;
    }
    
    .user-type-icon {
        font-size: 3rem;
    }
    
    .cyber-careers-icon {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .user-type-title {
        font-size: 1.2rem;
    }
    
    .user-type-description {
        font-size: 0.9rem;
    }
}
