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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #e8f5f5 0%, #fef9f2 100%);
    color: #333;
    direction: rtl;
}

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

/* Header Styles */
.festival-header {
    background: linear-gradient(135deg, #20B2AA 0%, #17a89e 100%);
    color: white;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.poster-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.sunburst-decoration {
    display: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.poster-accent {
    flex-shrink: 0;
}

.poster-image {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 192, 7, 0.6);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.poster-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.header-text {
    text-align: center;
}

.festival-header h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #FFC107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.festival-header p {
    font-size: 1.2rem;
    margin: 5px 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Campaign Banner */
.campaign-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 15px 40px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.campaign-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-decoration: none;
}

.campaign-logo {
    height: 55px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.campaign-logo:hover {
    transform: scale(1.05);
}

.campaign-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.campaign-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1565c0;
}

.campaign-subtitle {
    font-size: 0.95rem;
    color: #666;
}

.campaign-button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
    font-family: inherit;
}

.campaign-button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.campaign-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.3);
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e0e0e0;
}

.filter-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #FF6347;
    max-width: 1400px;
    margin: 0 auto 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-btn {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    background: #fff5e6;
    border-color: #FF9800;
}

.filter-btn.active {
    background: linear-gradient(135deg, #FF6347 0%, #FF7F50 100%);
    color: white;
    border-color: #FF6347;
}

/* Calendar Section */
.events-section {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.day-calendar {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.day-header {
    background: linear-gradient(135deg, #FF6347 0%, #FF9800 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    pointer-events: none;
}

.day-header h3 {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.day-name {
    font-size: 1rem;
    opacity: 0.95;
}

.timeline-container {
    position: relative;
    padding: 10px 0;
}

.time-slot {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
    position: relative;
}

.time-label {
    width: 70px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #666;
    border-left: 1px solid #f0f0f0;
    flex-shrink: 0;
    text-align: center;
}

.events-column {
    flex: 1;
    position: relative;
    padding: 4px 8px;
}

.calendar-event {
    background: #FF6347;
    color: white;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 4px solid rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendar-event:hover {
    transform: translateX(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.event-time-range {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 3px;
}

.event-title-cal {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 3px;
}

.event-venue-cal {
    font-size: 0.75rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Colors - Inspired by poster palette */
.calendar-event[data-category="music"] {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF1493 100%);
}

.calendar-event[data-category="tour"] {
    background: linear-gradient(135deg, #20B2AA 0%, #17a89e 100%);
}

.calendar-event[data-category="workshop"] {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
}

.calendar-event[data-category="theatre"] {
    background: linear-gradient(135deg, #FF6347 0%, #FF7F50 100%);
}

.calendar-event[data-category="lecture"] {
    background: linear-gradient(135deg, #20B2AA 0%, #4ECDC4 100%);
}

.calendar-event[data-category="wellness"] {
    background: linear-gradient(135deg, #7FDBFF 0%, #20B2AA 100%);
}

.calendar-event[data-category="kids_family"] {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

.calendar-event[data-category="dj"] {
    background: linear-gradient(135deg, #FF1493 0%, #C71585 100%);
}

.calendar-event[data-category="sports"] {
    background: linear-gradient(135deg, #20B2AA 0%, #5FD3CF 100%);
}

.calendar-event[data-category="open_houses"] {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
}

.calendar-event[data-category="street_art"] {
    background: linear-gradient(135deg, #FFC0CB 0%, #FFE4E1 100%);
    color: #333;
}

.calendar-event[data-category="community"] {
    background: linear-gradient(135deg, #48D1CC 0%, #40E0D0 100%);
}

.calendar-event[data-category="museum_tour"] {
    background: linear-gradient(135deg, #FF6347 0%, #FF4500 100%);
}

.calendar-event[data-category="street_show"] {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #333;
}

.calendar-event[data-category="exhibition"] {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
}

.calendar-event[data-category="parade_music"] {
    background: linear-gradient(135deg, #FF9800 0%, #FF6347 100%);
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-events h3 {
    font-size: 1.5rem;
    color: #FF6347;
    margin-bottom: 10px;
}

.no-events p {
    font-size: 1rem;
    color: #666;
}

/* Tooltip on hover */
.calendar-event::after {
    content: '📅 לחץ להוספה ליומן';
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 5px;
}

.calendar-event:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calendar-container {
        flex-direction: column;
    }
    
    .day-calendar {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .festival-header h1 {
        font-size: 1.8rem;
    }

    .festival-header p {
        font-size: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .poster-image {
        width: 150px;
    }

    .filter-section {
        padding: 15px 20px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .events-section {
        padding: 10px;
    }

    body {
        padding: 0;
    }

    .campaign-banner {
        padding: 12px 20px;
    }

    .campaign-link {
        flex-direction: column;
        gap: 12px;
    }

    .campaign-logo {
        height: 50px;
    }

    .campaign-text {
        text-align: center;
    }

    .campaign-title {
        font-size: 1.05rem;
    }

    .campaign-subtitle {
        font-size: 0.85rem;
    }

    .campaign-button {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-calendar {
    animation: fadeIn 0.4s ease-out;
}
