/* ============================================
   TOURNAMENT VIEW CSS - TERMINAL STYLE
   Extends team-stats-modern.css and league-view.css
   ============================================ */

/* Tournament Dashboard Container */
.tournament-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* Tournament Header */
.tournament-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.tournament-header::before,
.tournament-header::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
}

.tournament-header::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-header::after {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.tournament-identity {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.tournament-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 0;
}

.tournament-info h1 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tournament-details {
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breadcrumb Navigation */
.tournament-breadcrumb {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.tournament-breadcrumb::before,
.tournament-breadcrumb::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
}

.tournament-breadcrumb::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-breadcrumb::after {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.1s;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Tournament Sub-Navigation Tabs */
.tournament-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: flex;
}

.tournament-tabs::before,
.tournament-tabs::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
}

.tournament-tabs::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-tabs::after {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.tournament-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.1s;
    border-right: 1px solid var(--border);
    position: relative;
}

.tournament-tab:last-child {
    border-right: none;
}

.tournament-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.tournament-tab.active {
    background: var(--bg-elevated);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Tournament Cards */
.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    position: relative;
    transition: border-color 0.1s;
}

.tournament-card::before,
.tournament-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.1s;
}

.tournament-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.tournament-card:hover {
    border-color: var(--primary);
}

.tournament-card:hover::before,
.tournament-card:hover::after {
    border-color: var(--primary);
}

/* Dual Panel Layout */
.tournament-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 1200px) {
    .tournament-panels {
        grid-template-columns: 1fr;
    }
}

.tournament-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    position: relative;
}

.tournament-panel::before,
.tournament-panel::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--border);
}

.tournament-panel::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-panel::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Team Cards */
.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
}

.team-card::before,
.team-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
}

.team-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.team-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.team-card:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.team-card:hover::before,
.team-card:hover::after {
    border-color: var(--primary);
}

.team-name {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.team-stats {
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Pitcher Cards */
.pitcher-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.pitcher-card::before,
.pitcher-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
}

.pitcher-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.pitcher-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.pitcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.pitcher-name {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pitcher-strength {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Progress Bars */
.progress-bar {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
    height: 8px;
    margin: var(--spacing-sm) 0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Game Plan Cards */
.game-card {
    background: var(--bg-card);
    border-left: 4px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    position: relative;
    transition: all 0.1s;
}

.game-card.priority-must-win {
    border-left-color: #dc2626;
}

.game-card.priority-important {
    border-left-color: #f59e0b;
}

.game-card.priority-manageable {
    border-left-color: #10b981;
}

.game-card::before,
.game-card::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
}

.game-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.game-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.game-card:hover {
    border-color: var(--primary);
}

.game-card:hover::before,
.game-card:hover::after {
    border-color: var(--primary);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.game-opponent {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-priority {
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    border-radius: 0;
}

.game-priority.must-win {
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.game-priority.important {
    color: #f59e0b;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.game-priority.manageable {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Search Input */
.tournament-search {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-mono);
    width: 100%;
    margin-bottom: var(--spacing-md);
    transition: all 0.1s;
}

.tournament-search:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

.tournament-search::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.tournament-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
}

.tournament-btn::before,
.tournament-btn::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--border);
}

.tournament-btn::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-btn::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.tournament-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.tournament-btn:hover::before,
.tournament-btn:hover::after {
    border-color: var(--primary);
}

.tournament-btn.primary {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
}

.tournament-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #000000;
}

.tournament-btn.danger {
    border-color: #dc2626;
    color: #dc2626;
}

.tournament-btn.danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #dc2626;
}

/* Modal Dialogs */
.tournament-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tournament-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
}

.modal-content::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.modal-content::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.1s;
}

.modal-close:hover {
    color: var(--primary);
}

/* Form Elements */
.tournament-form-group {
    margin-bottom: var(--spacing-md);
}

.tournament-label {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.tournament-input,
.tournament-select,
.tournament-textarea {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-mono);
    width: 100%;
    transition: all 0.1s;
}

.tournament-input:focus,
.tournament-select:focus,
.tournament-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

.tournament-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Notifications */
.tournament-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s;
    position: relative;
}

.tournament-notification::before,
.tournament-notification::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
}

.tournament-notification::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.tournament-notification::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.tournament-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.tournament-notification.success {
    border-color: #10b981;
    color: #10b981;
}

.tournament-notification.error {
    border-color: #dc2626;
    color: #dc2626;
}

/* Grid Layouts */
.tournament-grid {
    display: grid;
    gap: var(--spacing-md);
}

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

.tournament-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 1200px) {
    .tournament-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .tournament-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournament-grid-4,
    .tournament-grid-3,
    .tournament-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Empty States */
.tournament-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading States */
.tournament-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PITCHER AVAILABILITY ENHANCEMENTS
   ============================================ */

/* Pitcher Group Sections */
.pitcher-group {
    margin-bottom: var(--spacing-lg);
}

.pitcher-group-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    position: relative;
}

.pitcher-group-header::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: -1px;
    left: -1px;
    border: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
}

.group-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: 2px solid currentColor;
    flex-shrink: 0;
}

/* Group Header Colors */
.pitcher-group-available .pitcher-group-header {
    color: #28a745;
    border-left: 4px solid #28a745;
}

.pitcher-group-available-soon .pitcher-group-header {
    color: #ffc107;
    border-left: 4px solid #ffc107;
}

.pitcher-group-unavailable .pitcher-group-header {
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.pitcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

/* Status Banner on Pitcher Cards */
.pitcher-status-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    z-index: 1;
}

.pitcher-status-banner.available {
    background: #28a745;
    color: #ffffff;
}

.pitcher-status-banner.available-soon {
    background: #ffc107;
    color: #1a1a1a;
}

.pitcher-status-banner.unavailable {
    background: #dc3545;
    color: #ffffff;
}

/* Adjust pitcher card padding to accommodate banner */
.pitcher-card {
    padding-top: calc(var(--spacing-md) + 28px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pitcher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Strength Visualization Bar */
.strength-bar-container {
    margin: var(--spacing-sm) 0;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 0;
}

.strength-bar {
    height: 8px;
    border-radius: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Strength bar colors - set dynamically via JavaScript */
.strength-bar.strength-high {
    background: #10b981;
}

.strength-bar.strength-medium {
    background: #fbbf24;
}

.strength-bar.strength-low {
    background: #dc2626;
}

/* Enhanced Pitch Usage Progress Bars */
.pitch-usage-fill {
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Pitch usage colors - set dynamically based on usage percentage */
.pitch-usage-fill.usage-low {
    background: linear-gradient(90deg, #10b981, #059669);
}

.pitch-usage-fill.usage-medium {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.pitch-usage-fill.usage-high {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

/* Inline Pitch Count Editing */
.pitch-count-display {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.pitch-count-display:hover {
    background: var(--bg-elevated);
}

.pitch-count-edit {
    width: 60px;
    padding: 2px 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 0;
}

.pitch-count-edit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pitch-count-edit-controls {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.pitch-count-save-btn,
.pitch-count-cancel-btn {
    padding: 2px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pitch-count-save-btn {
    background: var(--primary);
    color: #1a1a1a;
}

.pitch-count-save-btn:hover {
    background: #059669;
}

.pitch-count-cancel-btn {
    background: transparent;
    color: var(--text-secondary);
}

.pitch-count-cancel-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pitcher-grid {
        grid-template-columns: 1fr;
    }

    .pitcher-group-header {
        font-size: 14px;
    }
}

/* ============================================
   PITCH COUNT RULES TABLE
   ============================================ */

.pitch-rules-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.pitch-rules-table thead {
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--primary);
}

.pitch-rules-table th {
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    border: 1px solid var(--border);
}

.pitch-rules-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.pitch-rules-table td:first-child {
    background: var(--bg-elevated);
    font-weight: 700;
    color: var(--primary);
}

.pitch-rules-table input[type="number"],
.pitch-rules-table input[type="text"] {
    width: 100%;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: 0;
}

.pitch-rules-table input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pitch-rules-table input.readonly-field {
    background: var(--bg-card);
    border: 1px solid transparent;
    cursor: default;
}

/* Responsive table */
@media (max-width: 768px) {
    .pitch-rules-table {
        font-size: 12px;
    }

    .pitch-rules-table th {
        padding: 8px 4px;
        font-size: 9px;
    }

    .pitch-rules-table td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .pitch-rules-table input {
        padding: 6px 4px;
        font-size: 12px;
    }
}
