/* public_html/css/splash.css */

/* Apply styles only when the body has the .splash-page class */
body.splash-page {
    background: linear-gradient(-45deg, #1a1a1a, #2c2c2c, #222222, #3a3a3a);
    background-size: 400% 400%;
    animation: gradientBG 25s ease infinite;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#splash-container {
    max-width: 1000px;
    padding: 40px;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid var(--container-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.splash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.splash-intro {
    text-align: left;
    animation: fadeInFromLeft 1s ease-out forwards;
}

@keyframes fadeInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.splash-intro h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.splash-intro h1 .highlight {
    color: var(--accent);
    display: block;
}

.splash-intro p.subtitle {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.features-list .feature-icon {
    font-size: 1.8em;
    margin-right: 15px;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.splash-login-box {
    background-color: var(--container-dark);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid var(--container-border);
    animation: fadeInFromRight 1s ease-out forwards;
}

@keyframes fadeInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.splash-login-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.5em;
}

#login-area {
    margin: 0;
}

#userEmail {
    border: 2px solid var(--input-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#userEmail:focus {
    border-color: var(--focus-border);
    box-shadow: 0 0 10px rgba(89, 224, 197, 0.3);
}

.card-showcase {
    display: flex;
    justify-content: center;
    gap: -40px; /* Overlap cards */
    margin-top: 30px;
    perspective: 1000px;
}

.showcase-card {
    width: 100px;
    height: 140px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
    opacity: 0;
    animation: cardEnter 0.8s ease-out forwards;
}

.showcase-card:hover {
    transform: translateY(-15px) rotate(0deg) !important;
    z-index: 10;
}

.showcase-card:nth-child(1) {
    background-image: url('../c/common-1.jpg');
    transform: rotate(-10deg);
    animation-delay: 0.5s;
}
.showcase-card:nth-child(2) {
    background-image: url('../c/uncommon-2.jpg');
    transform: rotate(-2deg);
    z-index: 2;
    animation-delay: 0.7s;
}
.showcase-card:nth-child(3) {
    background-image: url('../c/rare-3.jpg');
    transform: rotate(5deg);
    z-index: 3;
    animation-delay: 0.9s;
}
.showcase-card:nth-child(4) {
    background-image: url('../c/epic-4.jpg');
    transform: rotate(12deg);
    animation-delay: 1.1s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(50px) rotate(0deg);
    }
    to {
        opacity: 1;
    }
}


/* Responsive adjustments */
@media (max-width: 800px) {
    .splash-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .splash-intro {
        text-align: center;
    }

    .features-list li {
        justify-content: center;
    }

    .splash-intro h1 {
        font-size: 2.2em;
    }
    
    .card-showcase {
        gap: -30px;
    }
    .showcase-card {
        width: 80px;
        height: 112px;
    }
}

@media (max-width: 480px) {
    #splash-container {
        padding: 20px;
    }
    .splash-login-box {
        padding: 20px;
    }
}
