/* Mango Sports Public Frontend Styles */

:root {
    --mango-primary: #3B82F6;
    --mango-primary-hover: #2563EB;
    --mango-bg: #FFFFFF;
    --mango-card-bg: #F9FAFB;
    --mango-border: #E5E7EB;
    --mango-text: #1F2937;
    --mango-text-muted: #6B7280;
    --mango-radius: 8px;
    --mango-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mango-font: inherit; /* Will inherit from the WordPress theme by default */
}

.mango-public-wrapper {
    font-family: var(--mango-font);
    color: var(--mango-text);
    background: transparent;
    width: 100%;
}

/* Base Grid */
.mango-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Cards */
.mango-card {
    background: var(--mango-card-bg);
    border: 1px solid var(--mango-border);
    border-radius: var(--mango-radius);
    padding: 20px;
    box-shadow: var(--mango-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mango-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.mango-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mango-text);
}

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

/* Inputs & Buttons */
.mango-select {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1F2937;
    font-family: 'Canva Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.mango-select:focus, .mango-select:hover {
    border-color: #FFB72C;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 183, 44, 0.15);
}

/* Tables */
.mango-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mango-border);
    border-radius: var(--mango-radius);
    background: var(--mango-bg);
    margin-top: 16px;
}

.mango-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.mango-table th, .mango-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--mango-border);
}

.mango-table th {
    background-color: var(--mango-card-bg);
    font-weight: 600;
    color: var(--mango-text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.mango-table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.mango-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--mango-border);
    color: var(--mango-text);
}

/* Scheduling Specific */
.mango-match-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile Stacked Tables removed based on user preference for native horizontal scroll */
.mango-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--mango-card-bg);
    border: 1px solid var(--mango-border);
    border-radius: var(--mango-radius);
    padding: 16px;
}

.mango-match-teams {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
}

.mango-match-score {
    background: var(--mango-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--mango-radius);
    font-weight: bold;
}

.mango-match-vs {
    color: var(--mango-text-muted);
    font-size: 0.85rem;
}

.mango-match-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--mango-text-muted);
}

/* Tier Schedules Table */
.mango-tier-schedule-container {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.mango-tier-header {
    padding: 10px 16px;
    font-size: 1.5rem; /* Increased size slightly since Bebas Neue runs naturally smaller/taller */
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; /* Bebas Neue looks best at standard weight */
    color: #fff;
    background: #111827; /* Dark slate */
    border-left: 6px solid #FFB72C; /* Mango Yellow/Orange accent */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.mango-tier-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.mango-tier-table th {
    background: #f9fafb; /* Light contrasting header */
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding: 8px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Canva Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mango-tier-table td {
    padding: 8px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-family: 'Canva Sans', sans-serif;
    font-size: 0.9rem;
}

.mango-tier-table .no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    padding: 16px;
}
