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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode (Default) */
body.theme-dark {
    background-color: #0a0a0a;
    color: #fff;
}

body.theme-dark header {
    background-color: #000;
    border-bottom: 1px solid #D4AF37;
}

body.theme-dark .header-title {
    color: #D4AF37;
}

body.theme-dark .day-header {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
    color: white;
    border-left: 3px solid #D4AF37;
}

body.theme-dark .day-name {
    color: #D4AF37;
}

body.theme-dark .day-date {
    color: #f5f5f5;
}

body.theme-dark .event-card:hover {
    background-color: rgba(212, 175, 55, 0.08);
}

body.theme-dark .event-time {
    color: #D4AF37;
}

body.theme-dark .event-title {
    color: #fff;
}

body.theme-dark .event-subtitle,
body.theme-dark .event-location {
    color: #c0c0c0;
}

body.theme-dark .error {
    color: #ff6b6b;
    background-color: #2d1f1f;
}

body.theme-dark .empty-state {
    color: #c0c0c0;
}

/* Light Mode */
body.theme-light {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

body.theme-light header {
    background-color: #fff;
    border-bottom: 1px solid #D4AF37;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.theme-light .header-title {
    color: var(--primary-color, #D4AF37);
}

body.theme-light .day-header {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    color: #1a1a1a;
    border-left: 3px solid #D4AF37;
}

body.theme-light .day-name {
    color: #C5A028;
}

body.theme-light .day-date {
    color: #333;
}

body.theme-light .event-card {
    background: transparent;
}

body.theme-light .event-card:hover {
    background-color: rgba(212, 175, 55, 0.08);
}

body.theme-light .event-time {
    color: #C5A028;
}

body.theme-light .event-title {
    color: #1a1a1a;
}

body.theme-light .event-subtitle,
body.theme-light .event-location {
    color: #666;
}

body.theme-light .loading {
    color: #333;
}

body.theme-light .error {
    color: #c62828;
    background-color: #ffebee;
}

body.theme-light .empty-state {
    color: #999;
}

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

header {
    padding: 15px 0;
    margin-bottom: 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.header-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
    font-style: italic;
    text-transform: none;
}

.loading,
.error {
    text-align: center;
    padding: 30px 20px;
    font-size: 16px;
}

.error {
    border-radius: 6px;
    margin: 15px 0;
}

.day-section {
    margin-bottom: 30px;
}

.day-header {
    padding: 8px 12px;
    margin-bottom: 8px;
}

.day-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.day-date {
    font-size: 13px;
    font-weight: 400;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-card {
    padding: 8px 12px;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
}

.event-image {
    width: 85px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.event-time {
    font-weight: 600;
    font-size: 13px;
    width: 65px;
    flex-shrink: 0;
    text-align: left;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.event-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-subtitle {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location {
    font-size: 12px;
    width: 180px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location::before {
    content: "📍 ";
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .event-location {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header-title {
        font-size: 16px;
    }

    .logo {
        height: 40px;
    }

    .event-card {
        padding: 6px 8px;
        gap: 10px;
    }

    .event-image {
        width: 72px;
        height: 40px;
    }

    .event-time {
        width: 55px;
        font-size: 12px;
    }

    .event-title {
        font-size: 13px;
    }

    .event-subtitle {
        font-size: 11px;
    }

    .event-location {
        display: none;
    }

    .day-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-title {
        font-size: 14px;
    }

    .logo {
        height: 35px;
    }

    .event-card {
        gap: 8px;
    }

    .event-image {
        width: 64px;
        height: 36px;
    }

    .event-time {
        width: 50px;
        font-size: 11px;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

