/*
 * Welcome Page Styles
 * Used only by Views/Welcome/Index.cshtml
 *
 * Visual language matches the Etiverse_Web design system: Poppins
 * typography, a white page canvas with the red brand navbar on top
 * (same red as the ApplyForTuition header), and flat, no-gradient
 * buttons/shadows in place of the old gold gradient + shimmer treatment.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body.welcome-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Decorative background shapes - kept subtle so the hero reads as flat, not gradient-heavy */
body.welcome-page::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(176, 0, 13, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.welcome-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(147, 147, 207, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Welcome container - fills the remaining space below the navbar and centers the hero content */
.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333333;
    padding: 50px 40px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Re-enable interaction only on the actual controls, so the transparent
   parts of .welcome-container don't block hover on the particles behind it */
.welcome-container h1,
.welcome-subtitle,
.button-container,
.welcome-button,
.application-period-closed-warning {
    pointer-events: auto;
}

.welcome-container h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Subtitle for welcome page */
.welcome-subtitle {
    font-size: 1.15rem;
    color: #6b7280;
    margin-bottom: 50px;
    font-weight: 500;
}

/* Welcome button container */
.button-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

/* Welcome buttons */
.welcome-button {
    background: #b0000d;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 4px 4px 12px rgba(147, 147, 207, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.welcome-button:hover {
    background: #8b0009;
    text-decoration: none;
}

.welcome-button:active {
    background: #720007;
}

/* Application-period-closed notice (shown instead of the Apply for Tuition button) */
.application-period-closed-warning {
    background: #fef3c7;
    color: #b45309;
    padding: 18px 28px;
    border-radius: 14px;
    border-left: 4px solid #fde68a;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    max-width: 320px;
    box-shadow: 4px 4px 12px rgba(147, 147, 207, 0.3);
}

/* Button icons */
.welcome-button .btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.welcome-button:hover .btn-icon {
    transform: scale(1.1);
}

/* ============================================
   FLOATING PRODUCT PARTICLES
   ============================================ */

.product-particles {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle-container {
    position: absolute;
    width: clamp(3.75rem, 7vw, 7rem);
    height: auto;
    animation: welcomeParticleFloat 12s infinite ease-in-out;
    pointer-events: auto;
    cursor: pointer;
}

.particle-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 5px 15px rgba(147, 147, 207, 0.5));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.particle-container:hover {
    animation-play-state: paused;
    z-index: 2;
}

.particle-container:hover .particle-img {
    transform: scale(1.3) rotate(360deg);
}

@keyframes welcomeParticleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(6deg);
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .product-particles {
        top: 60px;
    }

    .welcome-container h1 {
        font-size: 2rem;
    }

    .welcome-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 20px;
    }

    .welcome-container h1 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .button-container {
        gap: 15px;
    }

    .welcome-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
