/*
Theme Name: Events Theme
Theme URI: https://example.com
Description: A custom WordPress theme for displaying events in a list format with filters
Version: 1.0
Author: Your Name
Author URI: https://example.com
Text Domain: events-theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

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

.site-branding {
    flex: 1;
}

.site-title {
    color: white;
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    color: rgba(255,255,255,0.9);
    font-size: 1em;
    margin: 0;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
    background: rgba(255,255,255,0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('images/hero-thessaloniki.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Filters Container - Side by Side Layout */
.filters-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

/* Event Type Filter Buttons */
.event-type-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    justify-content: center;
}

.type-filter-btn {
    padding: 6px 18px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.type-filter-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.type-filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Type-specific colors for filter buttons */
.type-filter-btn[data-type="omilia"].active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.type-filter-btn[data-type="ekdilosi"].active {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.type-filter-btn[data-type="akolouthia"].active {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* City Filter Dropdown */
.city-filter-wrapper {
    display: flex;
    align-items: center;
    margin: 0;
}

.city-dropdown {
    padding: 10px 16px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    min-width: 180px;
}

.city-dropdown:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.city-dropdown:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Period Filter - Dropdown */
.period-filter-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
}

.period-dropdown {
    padding: 10px 16px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    min-width: 160px;
}

.period-dropdown:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.period-dropdown:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.filter-toggle:hover {
    transform: translateY(-2px);
}

.filter-toggle::after {
    content: " ▼";
    float: right;
    transition: transform 0.3s ease;
}

.filter-toggle.active::after {
    transform: rotate(180deg);
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Events List Container */
.events-container {
    margin: 30px 0;
}

/* Month Header */
.month-header {
    text-align: center;
    margin: 40px 0 30px 0;
}

.month-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    padding: 20px 0;
    position: relative;
    display: inline-block;
}

.month-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 2px;
}

/* Day Section */
.day-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.day-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-title {
    font-size: 1.2em;
    font-weight: 700;
}

.day-date {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Event Item */
.event-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item:hover {
    background-color: #f8f9ff;
}

.event-time {
    /* background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6px 12px; */
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
    min-width: 65px;
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.event-details {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.event-title {
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* max-width: 350px; */
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.event-type,
.event-city,
.event-location {
    font-size: 0.8em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.event-type::before {
    content: "🏷️";
}

.event-city::before {
    content: "📍";
}

.event-location {
    color: #888;
    font-style: italic;
}

/* Type-specific colors for event type tags */
.event-type[data-type="omilia"] {
    color: #1e3a8a;
    font-weight: 700;
}

.event-type[data-type="ekdilosi"] {
    color: #0891b2;
    font-weight: 700;
}

.event-type[data-type="akolouthia"] {
    color: #7c3aed;
    font-weight: 700;
}

/* Event Type Colors */
/* .event-item[data-type="omilia"] .event-time {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.event-item[data-type="ekdilosi"] .event-time {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.event-item[data-type="akolouthia"] .event-time {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
} */

/* Single Event Page */
.single-event {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.single-event-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.single-event-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.single-event-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.1em;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item strong {
    color: #333;
}

.single-event-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.single-event-content p {
    margin-bottom: 15px;
}

.event-map {
    margin-top: 30px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.back-link:hover {
    transform: translateY(-2px);
}

/* No Events Message */
.no-events {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.no-events p {
    font-size: 1.3em;
    color: #666;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #666;
}

/* Submit Event Page */
.submit-event-page {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.submit-event-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.submit-event-header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.submit-event-header p {
    font-size: 1.1em;
    color: #666;
}

.submit-message {
    margin-bottom: 30px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1em;
}

.submit-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submit-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-message p {
    margin: 0;
}

.submit-event-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
}

.form-field .required {
    color: #e74c3c;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    /* Stack Filters Vertically on Mobile */
    .filters-container {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }

    /* Event Type Filter Buttons Mobile */
    .event-type-filters {
        gap: 8px;
        margin: 0;
        justify-content: center;
        width: 100%;
    }

    .type-filter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* City Filter Dropdown Mobile */
    .city-filter-wrapper {
        width: 100%;
        justify-content: center;
    }

    .city-dropdown {
        width: 100%;
        max-width: 300px;
        font-size: 0.9em;
    }

    /* Period Dropdown Mobile */
    .period-filter-wrapper {
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    .period-dropdown {
        width: 100%;
        max-width: 300px;
        font-size: 0.9em;
    }

    /* Mobile Header */
    .header-top {
        padding: 15px 0;
    }

    .hero-section {
        min-height: 250px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .header-content {
        position: relative;
    }

    .site-title {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    .site-description {
        font-size: 0.9em;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 58, 138, 0.98);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .main-navigation.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .nav-menu a {
        padding: 12px 15px;
    }

    /* Mobile Filters */
    .filter-toggle {
        display: block;
    }

    .filters-grid {
        display: none;
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 10px;
    }

    .filters-grid.active {
        display: grid;
    }

    .filter-group label {
        font-size: 0.85em;
    }

    .filter-button {
        margin-top: 10px;
    }

    /* Day Sections */
    /* Month Header Mobile */
    .month-header {
        margin: 30px 0 20px 0;
    }

    .month-title {
        font-size: 1.6em;
        padding: 15px 0;
    }

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

    .day-header {
        /* flex-direction: column; */
        align-items: flex-center;
        gap: 5px;
        padding: 15px 20px;
    }

    .day-title {
        font-size: 1.1em;
    }

    .day-date {
        font-size: 1em;
    }

    /* Event Items */
    .event-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .event-time {
        margin-right: 0;
        min-width: auto;
        padding: 8px 14px;
        font-size: 0.95em;
        flex-shrink: 0;
    }

    .event-details {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        justify-content: flex-start;
    }

    .event-title {
        font-size: 1em;
        max-width: 100%;
        white-space: normal;
    }

    .event-meta {
        font-size: 0.75em;
        gap: 8px;
        width: 100%;
    }

    /* Single Event */
    .single-event {
        padding: 20px;
    }

    .single-event-title {
        font-size: 1.8em;
    }

    .single-event-meta {
        flex-direction: column;
        gap: 12px;
        font-size: 1em;
    }

    .back-link {
        font-size: 0.9em;
    }

    /* Submit Event Form */
    .submit-event-page {
        padding: 20px;
    }

    .submit-event-header h1 {
        font-size: 1.8em;
    }

    .submit-event-header p {
        font-size: 1em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .submit-button {
        width: 100%;
        padding: 12px 30px;
    }
}
