:root {
    --pz-blue: #29b6f6;
    --pz-dark-blue: #0288d1;
    --pz-yellow: #ffd700;
    --pz-bg: #f8f9fa;
    --pz-white: #ffffff;
    --pz-text-dark: #212529;
    --pz-cta-gradient: linear-gradient(45deg, #29b6f6, #0288d1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--pz-bg);
    color: var(--pz-text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, .btn, .nav-link, .badge {
    font-family: 'Montserrat', sans-serif;
}

/* === NAVBAR === */
.navbar {
    background-color: var(--pz-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 45px;
}

.navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 2rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: #495057;
}

.navbar-user-btn:hover, .navbar-user-btn.show {
    border-color: var(--pz-blue);
    background: #f8f9fa;
}

.navbar-user-btn::after {
    font-size: 0.6rem;
    vertical-align: middle;
}

.navbar-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29b6f6, #0288d1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.navbar-user-name {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.btn-create-tournament {
    background-color: #111;
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-create-tournament:hover {
    background-color: var(--pz-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* === CONTENT AREA === */
.content-area {
    flex: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .page-header .stats {
        display: flex;
        gap: 1.5rem;
    }

        .page-header .stats .stat-item {
            text-align: center;
        }

        .page-header .stats .stat-number {
            font-size: 1.75rem;
            font-weight: 800;
            color: var(--pz-dark-blue);
            line-height: 1;
        }

        .page-header .stats .stat-label {
            font-size: 0.75rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

/* === BREADCRUMB === */
.breadcrumb-wrapper {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--pz-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.card-pz {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .card-pz:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    }

.card-pz-header {
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-pz-header-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: contain;
}

.card-pz-header-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-pz-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .card-pz-body h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: #212529;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .card-pz-body .info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #6c757d;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

        .card-pz-body .info i {
            color: var(--pz-blue);
        }

    .card-pz-body .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
        background: #e3f2fd;
        color: var(--pz-dark-blue);
        border-radius: 2rem;
        font-size: 0.75rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .card-pz-body .stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

        .card-pz-body .stats .stats-item {
            text-align: center;
        }

        .card-pz-body .stats .status-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: #212529;
            line-height: 1;
        }

        .card-pz-body .stats .stats-label {
            font-size: 0.7rem;
            color: #6c757d;
            text-transform: uppercase;
        }

.card-pz-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    border: 2px dashed #dee2e6;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #adb5bd;
}

.empty-state h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* === BUTTONS === */
.btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
}

.btn-flex {
    flex: 1;
}

.btn-pz-primary {
    background: linear-gradient(45deg, #29b6f6, #0288d1);
    color: white;
}

    .btn-pz-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(2, 136, 209, 0.35);
        color: white;
    }

.btn-pz-secondary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
}

    .btn-pz-secondary:hover {
        background: #e9ecef;
        color: #212529;
    }

.btn-pz-danger {
    background: #fff5f5;
    border: 2px solid #feb2b2;
    color: #c53030;
}

    .btn-pz-danger:hover {
        background: #c53030;
        color: white;
    }

/* === FORM CONTROLS === */
.form-label-pz {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control-pz, .form-select-pz {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .form-control-pz:focus, .form-select-pz:focus {
        border-color: var(--pz-blue);
        box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.15);
    }

/* === ALERTS === */
.alert-pz {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-pz-success {
    background: #d4edda;
    color: #155724;
}

.alert-pz-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-pz-info {
    background: #e3f2fd;
    color: #0277bd;
}

/* === FOOTER === */
footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

/* === MOBILE === */
@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .torneos-stats {
        justify-content: space-around;
    }
}
