/**
 * Mobile Calendar Styles
 * Responsive calendar view that automatically switches to mobile-friendly layout on small screens
 */

/* Mobile Calendar Container - Hidden on desktop, shown on mobile */
.mobile-calendar-view {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop table view on mobile */
    .matches-table {
        display: none !important;
    }
    
    /* Show mobile calendar view */
    .mobile-calendar-view {
        display: block;
        padding: 0;
        margin: 0;
    }
    
    /* Day Header Section */
    .mobile-day-header {
        position: sticky;
        top: 60px;
        z-index: 50;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        padding: 15px;
        border-left: 5px solid #FFD700;
        border-bottom: 2px solid rgba(255, 215, 0, 0.2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .mobile-day-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-day-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8em;
        font-weight: 900;
        color: #1a1a1a;
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    }
    
    .mobile-day-info {
        flex: 1;
    }
    
    .mobile-day-date {
        font-size: 1.1em;
        font-weight: 700;
        color: #FFD700;
        margin-bottom: 3px;
    }
    
    .mobile-day-count {
        font-size: 0.85em;
        color: #999;
    }
    
    /* Matches Grid */
    .mobile-matches-grid {
        padding: 10px;
        display: grid;
        gap: 12px;
    }
    
    .mobile-match-card {
        position: relative;
        background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        padding: 12px;
        transition: all 0.2s ease;
        overflow: hidden;
        cursor: pointer;
    }
    
    .mobile-match-card.has-tickets {
        border-right: 4px solid #FFD700;
        padding-right: 8px;
    }
    
    .mobile-match-card:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
        border-color: #FFD700;
    }
    
    .mobile-match-main {
        position: relative;
    }
    
    .mobile-match-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    }
    
    .mobile-match-meta {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .mobile-match-date-time {
        font-size: 0.9em;
        color: #FFD700;
        font-weight: 600;
    }
    
    .mobile-match-badges {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    
    .mobile-phase-badge {
        background: rgba(184, 134, 11, 0.2);
        color: #FFD700;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.75em;
        font-weight: 700;
        border: 1px solid rgba(184, 134, 11, 0.3);
    }
    
    .mobile-match-code {
        background: rgba(26, 26, 26, 0.6);
        color: #999;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.75em;
        font-weight: 600;
    }
    
    .mobile-match-teams {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .mobile-team {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-team.home {
        justify-content: flex-start;
    }
    
    .mobile-team.away {
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    .mobile-team-flag {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 215, 0, 0.3);
    }
    
    .mobile-team-name {
        font-size: 0.95em;
        font-weight: 600;
        color: #fff;
        flex: 1;
    }
    
    .mobile-team.away .mobile-team-name {
        text-align: right;
    }
    
    .mobile-team-name.placeholder {
        color: #999;
        font-style: italic;
    }
    
    .mobile-team-name.predicted {
        color: #FFD700;
    }
    
    .mobile-vs {
        font-size: 0.8em;
        color: #666;
        font-weight: 700;
        padding: 4px 8px;
    }
    
    .mobile-match-venue {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85em;
        color: #999;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .mobile-match-select {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }
    
    /* Pricing Panel */
    .mobile-pricing-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        border-top: 3px solid #FFD700;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .mobile-pricing-panel.active {
        transform: translateY(0);
    }
    
    .mobile-pricing-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-pricing-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-pricing-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
    
    .mobile-pricing-title {
        font-size: 1.1em;
        font-weight: 700;
        color: #FFD700;
    }
    
    .mobile-pricing-close {
        width: 32px;
        height: 32px;
        border: none;
        background: rgba(255, 215, 0, 0.1);
        color: #FFD700;
        border-radius: 50%;
        font-size: 1.2em;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .mobile-pricing-close:active {
        background: rgba(255, 215, 0, 0.2);
        transform: scale(0.95);
    }
    
    .mobile-pricing-content {
        padding: 15px;
    }
    
    .mobile-pricing-match-info {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .mobile-pricing-match-teams {
        font-size: 1.05em;
        font-weight: 600;
        color: #fff;
        margin-bottom: 8px;
    }
    
    .mobile-pricing-match-details {
        font-size: 0.9em;
        color: #999;
    }
    
    .mobile-pricing-categories {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-pricing-category {
        background: rgba(42, 42, 42, 0.6);
        border: 2px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-pricing-category.selected {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(184, 134, 11, 0.15) 100%);
        border-color: #FFD700;
        box-shadow: 0 0 0 1px #FFD700;
    }
    
    .mobile-pricing-category:active {
        transform: scale(0.98);
    }
    
    .mobile-category-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .mobile-category-name {
        font-size: 0.95em;
        font-weight: 700;
        color: #FFD700;
    }
    
    .mobile-category-availability {
        font-size: 0.8em;
        color: #4ade80;
        font-weight: 600;
    }
    
    .mobile-category-price {
        font-size: 1.3em;
        font-weight: 900;
        color: #fff;
    }
    
    /* Placeholder styles */
    .mobile-team-placeholder {
        color: #999 !important;
        font-style: italic;
    }
    
    .mobile-team-predicted {
        color: #FFD700 !important;
    }
    
    .prediction-indicator {
        color: #FFD700;
        margin-left: 2px;
    }
}

/* Ensure desktop view is always shown on large screens */
@media (min-width: 769px) {
    .mobile-calendar-view {
        display: none !important;
    }
    
    .matches-table {
        display: table !important;
    }
}
