/* ==========================================================================
   N2 TOYS & ACCESSORIES - PLAYSTATION CUP TOURNAMENT MANAGER
   Theme: Aesthetic Light Pink Gradient & Modern Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-pink: #FF4081;
    --primary-light-pink: #FF80AB;
    --primary-deep-pink: #E91E63;
    --primary-rose: #FF2E93;
    --accent-magenta: #D81B60;
    
    --bg-pink-100: #FFF0F5;
    --bg-pink-200: #FFE4EC;
    --bg-pink-300: #FFD1DF;
    --bg-pink-400: #FFB6CB;
    
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-border: rgba(255, 182, 193, 0.45);
    --card-border-glow: rgba(255, 64, 129, 0.3);
    --card-shadow: 0 12px 35px -8px rgba(255, 64, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    
    --ps-blue: #0070D1;
    --ps-gold: #FFB800;
    --ps-green: #00E676;
    --ps-red: #FF3D71;
    
    --text-primary: #2D1A29;
    --text-secondary: #70586B;
    --text-muted: #A38C9E;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

body {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE9F0 25%, #FFDCE6 60%, #FFCAD8 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Floating PS Icons Ambient Background */
.bg-ambient-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.18;
}

.ps-symbol {
    position: absolute;
    filter: drop-shadow(0 0 15px rgba(255, 64, 129, 0.4));
    animation: floatAnim 18s infinite ease-in-out;
}

.ps-symbol.triangle { top: 8%; left: 6%; font-size: 4rem; color: #FF4081; animation-delay: 0s; }
.ps-symbol.circle { top: 22%; right: 8%; font-size: 5rem; color: #E91E63; animation-delay: 3s; }
.ps-symbol.cross { bottom: 18%; left: 8%; font-size: 4.5rem; color: #FF80AB; animation-delay: 6s; }
.ps-symbol.square { bottom: 12%; right: 10%; font-size: 5.5rem; color: #FF2E93; animation-delay: 9s; }
.ps-symbol.star { top: 55%; left: 48%; font-size: 3rem; color: #FFB800; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.08); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    box-shadow: 0 16px 45px -10px rgba(255, 64, 129, 0.22), 0 6px 16px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 64, 129, 0.4);
}

.glass-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1.5px solid rgba(255, 182, 193, 0.55);
    box-shadow: 0 6px 25px rgba(255, 64, 129, 0.07);
}

/* Header Segmented Toolbar Pods */
.header-pod {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 182, 193, 0.55);
    border-radius: 1rem;
    box-shadow: 0 4px 15px -2px rgba(255, 64, 129, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.35rem;
    gap: 0.25rem;
    height: 42px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    height: 32px;
}

.header-btn:hover {
    transform: translateY(-1px);
}

.header-btn:active {
    transform: translateY(0);
}

/* Gradient Buttons */
.btn-pink-gradient {
    background: linear-gradient(135deg, #FF4081 0%, #E91E63 50%, #C2185B 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    box-shadow: 0 8px 20px -4px rgba(233, 30, 99, 0.45);
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-pink-gradient:hover {
    background: linear-gradient(135deg, #FF2E93 0%, #D81B60 50%, #AD1457 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px rgba(233, 30, 99, 0.6);
    color: #fff;
}

.btn-pink-gradient:active {
    transform: translateY(0);
}

.btn-pink-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-deep-pink);
    border: 1.5px solid var(--primary-pink);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pink-outline:hover {
    background: linear-gradient(135deg, #FFF0F5, #FFE4EC);
    border-color: var(--primary-deep-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 64, 129, 0.2);
}

/* Navigation Tabs Container - Light Blue Aesthetic Box */
.nav-box-light-blue {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.94) 0%, rgba(240, 249, 255, 0.96) 50%, rgba(219, 234, 254, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(186, 230, 253, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 35px -8px rgba(56, 189, 248, 0.22), 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-box-light-blue:hover {
    box-shadow: 0 16px 45px -8px rgba(56, 189, 248, 0.32), 0 6px 18px rgba(0, 0, 0, 0.05);
    border-color: rgba(125, 211, 252, 0.95);
}

/* Navigation Tabs */
.nav-tab-pink {
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.925rem;
    border-radius: var(--radius-md);
    color: #1E3A8A; /* Deep Blue text for crisp readability against light blue background */
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-tab-pink:hover {
    color: var(--primary-deep-pink);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(186, 230, 253, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.nav-tab-pink.active {
    color: #ffffff;
    background: linear-gradient(135deg, #FF4081 0%, #E91E63 100%);
    box-shadow: 0 8px 22px rgba(233, 30, 99, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

/* Picker Filter Buttons */
.picker-filter-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1E3A8A;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(186, 230, 253, 0.8);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.picker-filter-btn:hover {
    background: #E0F2FE;
    color: #0369A1;
    border-color: #38BDF8;
}

.picker-filter-btn.active {
    background: linear-gradient(135deg, #FF4081 0%, #E91E63 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

/* Light Blue Form Input Styling ("Box Biru Muda") */
.form-input, input.form-input, select.form-input, textarea.form-input {
    width: 100%;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid #BAE6FD;
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    display: block;
}

.form-input:hover, input.form-input:hover, select.form-input:hover {
    border-color: #38BDF8;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 30%, #F0F9FF 100%);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.18);
}

.form-input:focus, input.form-input:focus, select.form-input:focus, textarea.form-input:focus {
    background: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.28), 0 4px 14px rgba(2, 132, 199, 0.16);
    color: #0F172A;
}

.form-input::placeholder {
    color: #64748B;
    font-weight: 500;
}

.form-input-search {
    padding-left: 2.75rem !important;
}

/* Stat Metric Cards */
.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.9));
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px -6px rgba(255, 64, 129, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -8px rgba(255, 64, 129, 0.2);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-pink), var(--primary-deep-pink));
}

.metric-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFE4EC, #FFD1DF);
    color: var(--primary-deep-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(255, 64, 129, 0.15);
}

/* Live Badges */
.badge-live {
    background: #FF3D71;
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 0 12px rgba(255, 61, 113, 0.6);
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

.badge-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px #ffffff;
}

.badge-completed {
    background: linear-gradient(135deg, #00E676, #00C853);
    color: white;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
}

.badge-scheduled {
    background: #ECEFF1;
    color: #546E7A;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 228, 236, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF80AB, #FF4081);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E91E63;
}

/* Match Fixture Cards */
.match-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 182, 193, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.match-card:hover {
    border-color: var(--primary-pink);
    box-shadow: 0 10px 24px -6px rgba(255, 64, 129, 0.2);
    transform: translateY(-2px);
}

.match-card.is-live {
    border-color: #FF3D71;
    box-shadow: 0 0 20px rgba(255, 61, 113, 0.25);
}

.match-card.is-completed {
    border-left: 4px solid var(--ps-green);
}

/* Standings Table Styling */
.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.standings-table th {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    background: rgba(255, 240, 245, 0.7);
}

.standings-table td {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 182, 193, 0.3);
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
    font-size: 0.925rem;
    font-weight: 500;
}

.standings-table tr td:first-child {
    border-left: 1px solid rgba(255, 182, 193, 0.3);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.standings-table tr td:last-child {
    border-right: 1px solid rgba(255, 182, 193, 0.3);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.standings-table tr.qualified-row td {
    background: rgba(232, 245, 233, 0.9);
}

.standings-table tr.qualified-row td:first-child {
    border-left: 4px solid #00C853;
}

.standings-table tr.leader-row td {
    background: rgba(255, 248, 225, 0.95);
}

.standings-table tr.leader-row td:first-child {
    border-left: 4px solid #FFB800;
}

/* Form pills */
.form-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    margin-right: 3px;
}

.form-pill.W { background: #00C853; }
.form-pill.D { background: #FFB300; }
.form-pill.L { background: #E53935; }

/* Podium Celebration Box */
.podium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 235, 240, 0.9));
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 16px 40px -10px rgba(255, 184, 0, 0.3);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.podium-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

/* Modal overlay & container */
.modal-overlay {
    background: rgba(45, 26, 41, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content-glass {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 182, 193, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(233, 30, 99, 0.35);
}

/* PS Controller Logo Geometry */
.ps-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #1A1A2E, #282846);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ps-tag-ps4 {
    background: linear-gradient(135deg, #003791, #0070D1);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.ps-tag-ps3 {
    background: linear-gradient(135deg, #1F1F1F, #4A4A4A);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* Club Badge circle */
.club-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

/* Sound Effect / Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #FF4081, #E91E63);
}

input:checked + .slider:before {
    transform: translateX(20px);
}
