﻿/* Full-screen start page with background image */
body.start-bg {
    margin: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.85)), url('/images/FootballField.jpg') center / cover no-repeat fixed;
}

/* Center everything */
.start-screen {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo wrapper */
.start-logo-wrap {
    position: relative;
    display: inline-block;
}

/* Logo fade in -> hold -> fade out */
.start-logo {
    width: min(92vw, 980px);
    height: auto;
    display: block;
    opacity: 0;
    animation: logoIntro 4.5s ease forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    65% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.01);
    }
}

/* Center panel that fades in AFTER the logo fades out */
.start-choice-panel {
    position: fixed;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: min(520px, 92vw);
    padding: 22px 22px 18px;
    border-radius: 16px;
    background: rgba(20, 16, 8, 0.92);
    border: 2px solid rgba(255, 153, 51, 0.55);
    box-shadow: 0 0 14px rgba(255, 153, 51, 0.45), 0 0 34px rgba(255, 153, 51, 0.25);
    text-align: center;
    opacity: 0;
    animation: choicePanelIn 1.1s ease forwards;
    animation-delay: 4.6s; /* after logo */
}

@keyframes choicePanelIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.start-choice-title {
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: #ffb35c;
    text-shadow: 0 0 10px rgba(255, 153, 51, 0.55), 0 0 22px rgba(255, 153, 51, 0.35);
}

/* THIS is why your Squares looked like a plain link:
   you weren't styling the <a> that lives in the panel.
   Style it directly here. */
.start-choice-btn {
    display: inline-block;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 22px;
    padding: 14px 36px;
    border-radius: 12px;
    border: 2px solid #2bbf6a;
    color: #eaffea !important;
    background: rgba(120, 255, 170, 0.20);
    box-shadow: 0 0 10px rgba(18, 140, 70, 0.55), 0 0 24px rgba(18, 140, 70, 0.40);
    transition: transform 120ms ease, box-shadow 180ms ease;
}

    .start-choice-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 0 14px rgba(18, 140, 70, 0.75), 0 0 34px rgba(18, 140, 70, 0.55);
    }

    .start-choice-btn:active {
        transform: translateY(0);
    }
.start-choice-panel.start-choice-panel--instant {
    opacity: 1;
    animation: none;
}

/* HomePage: ensure logo isn't shown if the markup still includes it somewhere */
.start-choice-panel--instant ~ .start-logo,
.start-choice-panel--instant .start-logo {
    display: none;
}
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .page-loader.hidden {
        display: none;
    }

.loader-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #00ff7f; /* green glow */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px #00ff7f;
}

.loader-text {
    margin-top: 16px;
    color: #eaffea;
    font-size: 18px;
    text-shadow: 0 0 10px #00ff7f;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.group-not-found-danger {
    color: #ff4d4f; /* or Bootstrap red */
}
.login-subtitle {
    color: #ffffff; /* white */
    font-size: 1rem; /* slightly smaller than title */
    margin-bottom: 18px;
    opacity: 0.9;
}
.sys-inline {
    margin-top: 10px;
    text-align: center;
    font-family: Consolas, monospace;
    font-size: 14px;
    letter-spacing: 2px;
    color: #5CFF5C;
    text-shadow: 0 0 6px rgba(0,255,102,.6), 0 0 12px rgba(0,255,102,.35);
    opacity: 0.9;
}
/* ==========================================
   Card Shop
   ========================================== */

.card-shop-grid {
    width: 100%;
    max-width: 3000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(480px, 560px));
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-sizing: border-box;
}

.shop-card-slot {
    width: 100%;
    aspect-ratio: 0.72;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 18px;
    box-shadow: 0 0 6px #19ff7a, 0 0 12px rgba(25, 255, 122, 0.55);
    transition: 0.25s ease;
}

    .shop-card-slot:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 10px #19ff7a, 0 0 20px rgba(25,255,122,.85);
    }
@media (max-width: 1250px) {
    .card-shop-grid {
        grid-template-columns: repeat(4, minmax(180px, 260px));
    }
}

@media (max-width: 1000px) {
    .card-shop-grid {
        grid-template-columns: repeat(3, minmax(180px, 260px));
    }
}

@media (max-width: 750px) {
    .card-shop-grid {
        grid-template-columns: repeat(2, minmax(160px, 240px));
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .card-shop-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        padding: 20px;
    }
}
.shop-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows the entire image */
    border-radius: 16px;
    display: block;
}
.card-shop-grid {
    width: 100%;
    max-width: 3000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(480px, 560px));
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-sizing: border-box;
}

.shop-card-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-card-slot {
    width: 100%;
    aspect-ratio: 0.72;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 18px;
    box-shadow: 0 0 6px #19ff7a, 0 0 12px rgba(25, 255, 122, 0.55);
    overflow: hidden;
}

.shop-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    display: block;
}

.shop-card-details {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 14px;
    color: #19ff7a;
    font-weight: 700;
    font-size: 20px;
    text-shadow: 0 0 4px #19ff7a, 0 0 8px rgba(25, 255, 122, 0.65);
    box-shadow: 0 0 6px #19ff7a, 0 0 12px rgba(25, 255, 122, 0.55);
}
.flip-card {
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

    .flip-card-front img,
    .flip-card-back img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
    }

@media (max-width: 1400px) {

    .card-shop-grid {
        grid-template-columns: repeat(2, minmax(320px, 480px));
    }
}

@media (max-width: 900px) {

    .card-shop-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        padding: 20px;
    }

    .shop-card-item {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .card-shop-grid {
        padding: 15px;
        gap: 20px;
    }

    .shop-card-slot {
        border-radius: 14px;
    }

    .shop-card-image {
        border-radius: 12px;
    }

    .shop-card-details {
        padding: 10px;
        font-size: 18px;
    }
}

@media (max-width: 420px) {

    .card-shop-grid {
        padding: 10px;
    }

    .shop-card-details {
        font-size: 16px;
    }
}



