/*
Theme Name: Tennis Club
Theme URI: https://tennisbariclub.netsons.org
Description: Tema WordPress professionale con design Neumorphic Light identico all'app Flutter Multi-Platform.
Version: 1.2.0
Author: Tennis Bari Club
Text Domain: tennis-club
*/

/* ========================================
   DESIGN SYSTEM 2.0 (MODERN FLUTTER)
======================================== */
:root {
    --bg-color: #F0F2F5;
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --white: #ffffff;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;

    /* Akzentfarben (Neon Glow) */
    --neon-blue: #00e5ff;
    --neon-green: #39FF14;
    --accent-purple: #9333ea;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-orange: #fb923c;
    --gold: #FFD700;

    /* Pro Neumorphic Shadows */
    --nm-shadow-out: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --nm-shadow-in: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --nm-convex: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);

    /* Neon Glow Effects */
    --neon-glow: 0 0 15px rgba(0, 229, 255, 0.4);
    --neon-glow-purple: 0 0 20px rgba(147, 51, 234, 0.3);

    /* Layout */
    --safe-padding: 16px;
    --bottom-nav-height: 80px;
}

/* ========================================
   BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-weight: 900;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:active {
    opacity: 0.7;
}

/* ========================================
   FLUTTER UI COMPONENTS
======================================== */

.nm-card {
    background: var(--bg-color);
    border-radius: 24px;
    box-shadow: var(--nm-shadow-out);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.nm-btn {
    background: var(--bg-color);
    box-shadow: var(--nm-shadow-out);
    border-radius: 16px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nm-btn:active {
    box-shadow: var(--nm-shadow-in);
    transform: scale(0.96);
}

.nm-btn-primary {
    background: var(--accent-cyan);
    color: white;
    box-shadow: 4px 4px 15px rgba(6, 182, 212, 0.4), -4px -4px 15px white;
}

.nm-btn-neon {
    background: var(--accent-purple);
    color: white;
    box-shadow: 4px 4px 15px rgba(147, 51, 234, 0.4), -4px -4px 15px white;
}

.nm-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: var(--nm-convex);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: none;
}

/* ========================================
   HEADER (APP BAR)
======================================== */
.app-header {
    background: var(--bg-color);
    padding: 20px 16px 10px;
}

.header-title-main {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.header-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-greeting {
    font-size: 18px;
    font-weight: 900;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-counter {
    background: var(--bg-color);
    box-shadow: var(--nm-convex);
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

/* ========================================
   DASHBOARD GRID (FLUTTER REPLICA)
======================================== */
.container {
    padding: 0 16px;
}

.section-label {
    font-size: 13px;
    font-weight: 800;
    color: rgba(107, 114, 128, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 25px 0 15px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-card {
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card .label {
    font-size: 10px;
    font-weight: 900;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.hero-card.orange .label {
    color: var(--accent-orange);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.menu-item {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.menu-item i {
    font-size: 24px;
    color: var(--text-primary);
}

.menu-item span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

/* ========================================
   BOTTOM NAV BAR (FLUTTER TAB BAR)
======================================== */
/* ========================================
   BOTTOM NAV BAR (FLUTTER REPLICA)
======================================== */
.bottom-nav-wrapper {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Allow clicks through to the items */
}

.bottom-nav-svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    filter: drop-shadow(0 -5px 15px rgba(0, 229, 255, 0.3));
    pointer-events: none;
    /* VERY IMPORTANT: DO NOT BLOCK CLICKS */
}

.bottom-nav-svg path {
    fill: white;
    stroke: rgba(0, 229, 255, 0.8);
    stroke-width: 2;
}

.bottom-nav-menu {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 80px;
    align-self: flex-end;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px 10px;
    pointer-events: auto;
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    transition: all 0.3s;
    width: 65px;
    text-align: center;
}

.nav-item i {
    width: 24px;
    height: 24px;
    transition: all 0.3s;
}

.nav-item span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.nav-item.active {
    color: var(--neon-blue);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

.nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

.nav-item.active.tennis-ball i {
    color: #DAFF00 !important;
    filter: drop-shadow(0 0 10px #DAFF00);
}

/* Central SOCI Button */
.nav-center-item {
    width: 70px;
    height: 70px;
    position: relative;
    top: -25px;
    /* Floats in the hump */
}

.nav-soci-btn {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3), var(--nm-shadow-out);
    border: 2px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-soci-btn.active {
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(0, 229, 255, 0.2);
    transform: scale(1.05);
}

.nav-soci-btn i {
    color: var(--text-secondary);
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
}

.nav-soci-btn.active i {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.nav-soci-btn span {
    font-size: 8px;
    font-weight: 900;
    color: var(--text-secondary);
}

.nav-soci-btn.active span {
    color: var(--neon-blue);
}

/* Badge Notifiche */
.unread-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    border: 2px solid white;
}

/* ========================================
   RANKING/MATCHES LISTS
======================================== */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 18px;
    margin-bottom: 12px;
}

.user-avatar-nm {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--nm-convex);
    border: 2px solid white;
}

/* ========================================
   ADMIN THEME PANEL (IFRAME/COMPONENT FEEL)
======================================== */
.admin-badge {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--accent-purple);
    color: white;
    padding: 10px;
    border-radius: 20px 0 0 20px;
    font-weight: 900;
    font-size: 10px;
    cursor: pointer;
    box-shadow: var(--neon-glow-purple);
    z-index: 10000;
}

/* ========================================
   DESKTOP OPTIMIZATION
======================================== */
@media (min-width: 900px) {

    .site-main,
    .app-header {
        max-width: 1100px;
        margin: 0 auto;
    }

    .hero-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav-wrapper {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
    }

    .bottom-nav-svg {
        max-width: 500px;
    }
}