* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #0D1117;
    min-height: 100vh;
    color: #F0F6FC;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 32px;
    color: #F0F6FC;
}

header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

header p {
    font-size: 1rem;
    color: #8B949E;
    font-weight: 400;
}

.filter-container {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.region-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: #161B22;
    border-radius: 8px;
    border: 1px solid #21262D;
}

.suburb-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: #161B22;
    border-radius: 8px;
    border: 1px solid #21262D;
}

.region-label,
.suburb-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8B949E;
    white-space: nowrap;
}

.region-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.region-option {
    padding: 8px 16px;
    background: #21262D;
    color: #8B949E;
    border: 1px solid #30363D;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.region-option:hover {
    background: #30363D;
    border-color: #484F58;
    color: #F0F6FC;
}

.region-option.active {
    background: #2EA043;
    border-color: #2EA043;
    color: #FFFFFF;
}

.region-option.active:hover {
    background: #238636;
    border-color: #238636;
}

.suburb-multiselect {
    position: relative;
    min-width: 200px;
}

.multiselect-header {
    padding: 8px 12px;
    background: #21262D;
    color: #F0F6FC;
    border: 1px solid #30363D;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.multiselect-header:hover {
    background: #30363D;
    border-color: #484F58;
}

.multiselect-header.active {
    border-color: #2EA043;
    box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.3);
}

.dropdown-arrow {
    transition: transform 0.15s ease;
    font-size: 0.75rem;
}

.multiselect-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #21262D;
    border: 1px solid #30363D;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.multiselect-dropdown.show {
    display: block;
}

.multiselect-option {
    padding: 8px 12px;
    transition: background-color 0.15s ease;
}

.multiselect-option:hover {
    background: #30363D;
}

.multiselect-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #F0F6FC;
    user-select: none;
}

.multiselect-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #30363D;
    border-radius: 3px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.multiselect-option input[type="checkbox"]:checked + .checkmark {
    background: #2EA043;
    border-color: #2EA043;
}

.multiselect-option input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.calendar-container {
    background: #161B22;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #21262D;
}

.calendar-header {
    background: #21262D;
    color: #F0F6FC;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #30363D;
}

.calendar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #30363D;
}

.day-column {
    background: #161B22;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.day-header {
    background: #21262D;
    padding: 16px 12px;
    font-weight: 500;
    text-align: center;
    font-size: 0.875rem;
    color: #F0F6FC;
    border-bottom: 1px solid #30363D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pubs-container {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-card {
    background: #21262D;
    color: #F0F6FC;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid #30363D;
    position: relative;
    overflow: hidden;
}

.pub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2EA043;
}

.pub-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #F0F6FC;
    background: #30363D;
    transform: translateY(-1px);
    border-color: #484F58;
}

.pub-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
    color: #F0F6FC;
}

.pub-suburb {
    font-size: 0.75rem;
    color: #656D76;
    font-weight: 400;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.pub-time {
    font-size: 0.75rem;
    color: #8B949E;
    font-weight: 500;
}

.no-trivia {
    color: #656D76;
    font-style: italic;
    text-align: center;
    padding: 24px;
    background: #0D1117;
    border-radius: 8px;
    margin: 12px;
    font-size: 0.875rem;
    border: 1px dashed #30363D;
}

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

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .day-column {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .pub-card {
        padding: 12px;
    }
    
    .pub-name {
        font-size: 1rem;
    }
}