:root {
    --primary-bg: #f8fafc;
    --accent-color: #f97316;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 1rem 0;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg.png') no-repeat center center/cover;
    z-index: -1;
    filter: brightness(1) contrast(1);
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-bg) 100%);
}

.container {
    width: 100%;
    max-width: 950px;
    padding: 1rem;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    text-align: left;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right {
    text-align: right;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.psa-logo,
.jssl-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 4px;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.team-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.lineup-section {
    margin-bottom: 2rem;
}

.lineup-header {
    margin-bottom: 2rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.lineup-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: var(--transition);
}

.player-item:active {
    transform: scale(0.98);
    background: #f1f5f9;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.year {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.status-icon {
    font-size: 1.3rem;
}

.player-item.pending {
    border-left: 4px solid var(--accent-color);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 950px) {
    .lineup-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .header-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-right {
        text-align: center;
    }

    .lineup-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .lineup-list {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Global transition for all links and buttons */
a,
button {
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

/* Portal Card Active State */
.portal-card:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* Floating Home Button */
.floating-home {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.4);
    text-decoration: none;
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-home.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-home:active {
    transform: scale(0.9);
}

@media (max-width: 600px) {
    .floating-home {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}