/**
 * Frontend Styles for Eywa Event Manager
 */

/* Event Calendar Styles */
.eywa-event-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-navigation button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.calendar-navigation button:hover {
    background: #005a87;
}

.calendar-navigation .current-period {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.calendar-views {
    display: flex;
    gap: 5px;
}

.view-btn {
    background: transparent;
    border: 1px solid #007cba;
    color: #007cba;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
    background: #007cba;
    color: white;
}

.calendar-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.calendar-container {
    position: relative;
    min-height: 400px;
}

.calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Month View */
.calendar-month-view {
    padding: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.day-header {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
}

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

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #e3f2fd;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.has-events .day-number {
    font-weight: bold;
    color: #007cba;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.day-events {
    font-size: 11px;
}

.event-item {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    margin-bottom: 2px;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item:hover {
    background: #005a87;
}

.more-events {
    color: #666;
    font-style: italic;
    cursor: pointer;
}

/* Week View */
.calendar-week-view {
    padding: 20px;
}

.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.day-column {
    background: white;
    border: 1px solid #dee2e6;
    min-height: 400px;
}

.day-column.today {
    background: #e3f2fd;
}

.day-column .day-header {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.day-name {
    font-weight: 600;
    color: #495057;
}

.day-number {
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
}

.day-column .day-events {
    padding: 10px;
}

.day-column .event-item {
    background: #007cba;
    color: white;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.day-column .event-item:hover {
    background: #005a87;
}

.event-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.event-time {
    font-size: 12px;
    opacity: 0.9;
}

.event-location {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* List View */
.calendar-list-view {
    padding: 20px;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

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

.events-list .event-item {
    display: flex;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.events-list .event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    flex: 1;
    padding: 20px;
}

.event-content .event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.event-content .event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.event-content .event-title a:hover {
    color: #007cba;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.event-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta .dashicons {
    font-size: 16px;
}

.event-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-actions .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.event-actions .btn:hover {
    background: #005a87;
}

.event-price.free {
    color: #28a745;
    font-weight: 600;
}

/* Event Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header .event-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Event Registration Form */
.eywa-event-registration {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #007cba;
}

.eywa-event-registration h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
}

.registration-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.registration-info > div {
    margin-bottom: 10px;
}

.registration-info > div:last-child {
    margin-bottom: 0;
}

.event-price.free {
    color: #28a745;
}

.registration-status.registered {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    text-align: center;
    margin-bottom: 20px;
}

.registration-status .dashicons {
    margin-right: 5px;
}

.registration-form {
    background: white;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn.btn-secondary {
    background: #6c757d;
}

.btn.btn-secondary:hover {
    background: #545b62;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.registration-messages {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.event-registration-closed,
.event-registration-full {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    text-align: center;
    margin: 20px 0;
}

/* Event Lists */
.eywa-events-list {
    margin: 20px 0;
}

.eywa-events-list.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.eywa-events-list.layout-card .eywa-event-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.eywa-events-list.layout-card .eywa-event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eywa-event-item {
    margin-bottom: 30px;
}

.eywa-event-item .event-image {
    margin-bottom: 15px;
}

.eywa-event-item .event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.eywa-event-item .event-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.eywa-event-item .event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.eywa-event-item .event-title a:hover {
    color: #007cba;
}

/* Upcoming Events Widget */
.eywa-upcoming-events {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.eywa-upcoming-events h3 {
    margin-top: 0;
    color: #2c3e50;
}

.upcoming-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-event-item {
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.upcoming-event-item .event-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.upcoming-event-item .event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.upcoming-event-item .event-title a:hover {
    color: #007cba;
}

.upcoming-event-item .event-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

/* Countdown Timer */
.eywa-countdown {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-unit {
    text-align: center;
}

.time-unit .number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
}

.time-unit .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eywa-countdown.expired {
    background: #f8d7da;
    color: #721c24;
    font-size: 18px;
    font-weight: 600;
}

/* Blog-Style Event Item Styles */
.eywa-event-item {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.eywa-event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.eywa-event-item .event-image-container {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 300px !important;
    min-height: 300px !important;
}

.eywa-event-item .event-image {
    position: relative;
    overflow: hidden;
    height: 300px !important;
    min-height: 300px !important;
    background: #f8fafc;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    transition: background-size 0.3s ease;
    width: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
}

.eywa-event-item:hover .event-image {
    background-size: 110% !important;
}

/* Remove date badge for blog-style layout */

.event-content {
    padding: 20px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-category {
    margin-bottom: 12px;
}

.category-tag {
    display: inline-block;
    background: transparent;
    color: #64748b;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0;
    transition: color 0.3s ease;
}

.category-tag:hover {
    color: #4f46e5;
    background: transparent;
    transform: none;
}

.event-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.event-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #4f46e5;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 12px 0;
    padding: 0;
    border: none;
}

.event-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.meta-icon {
    flex-shrink: 0;
    color: #64748b;
    width: 14px;
    height: 14px;
}

.event-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin: 12px 0 16px 0;
    font-size: 14px;
    font-weight: 400;
    flex: 1;
}

.event-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 0;
    border-top: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-icon {
    display: none;
}

.register-btn,
.view-details-btn {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.register-btn:hover,
.view-details-btn:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.event-price .free {
    color: #28a745;
    font-weight: 600;
}

.event-price .price-amount {
    color: #007cba;
    font-weight: 600;
}

/* Full-width Hero Image */
.event-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.event-hero-image .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modern Single Event Template Styles */
.eywa-single-event-wrapper {
    padding: 0;
    margin-top: 80px;
}

.eywa-single-event-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eywa-single-event-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Event Header */
.event-header {
    padding: 40px 32px 32px 32px;
    border-bottom: 1px solid #f1f5f9;
}

.event-header-content .event-category {
    margin-bottom: 16px;
}

.event-header-content .category-tag {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-header-content .event-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.event-meta-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.event-meta-summary .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
}

.event-meta-summary .meta-icon {
    color: #4f46e5;
    flex-shrink: 0;
}

/* Single Column Main Content Layout */
.event-main-content {
    padding: 40px 32px;
}

.event-content-section {
    width: 100%;
    max-width: none;
}

.event-description {
    margin-bottom: 40px;
}

.event-description h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.event-description h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #4f46e5;
}

.event-content-text {
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 32px;
}

.event-content-text p {
    margin-bottom: 20px;
    color: #4a5568;
    line-height: 1.8;
}

.event-content-text p:last-child {
    margin-bottom: 0;
}

.event-content-text h1,
.event-content-text h2,
.event-content-text h3,
.event-content-text h4,
.event-content-text h5,
.event-content-text h6 {
    color: #1e293b;
    font-weight: 700;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.event-content-text h1 { font-size: 28px; }
.event-content-text h2 { font-size: 24px; }
.event-content-text h3 { font-size: 20px; }
.event-content-text h4 { font-size: 18px; }
.event-content-text h5 { font-size: 16px; }
.event-content-text h6 { font-size: 14px; }

.event-content-text ul,
.event-content-text ol {
    margin: 20px 0;
    padding-left: 24px;
}

.event-content-text li {
    margin-bottom: 8px;
    color: #4a5568;
    line-height: 1.7;
}

.event-content-text blockquote {
    border-left: 4px solid #4f46e5;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #64748b;
}

.event-content-text a {
    color: #4f46e5;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.event-content-text a:hover {
    color: #3730a3;
}

.event-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-content-text code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e11d48;
}

.event-content-text pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.event-content-text pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Event Details Section */
.event-details-section {
    margin: 50px 0;
}

.event-details-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.event-details-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #4f46e5;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Action Buttons Section */
.event-actions-section {
    margin: 50px 0;
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.event-actions-section .event-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    border: none;
}

/* Countdown Section */
.event-countdown-section {
    margin: 50px 0;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Registration Section */
.event-registration-section {
    margin: 50px 0;
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Event Sidebar */
.event-sidebar {
    min-width: 0;
}

.event-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-details-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.event-details-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4f46e5;
}

.detail-item {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}

.detail-value .date-time {
    display: block;
    margin-bottom: 4px;
}

.detail-value .time {
    color: #4f46e5;
    font-weight: 500;
    margin-left: 8px;
}

.detail-value .all-day {
    color: #059669;
    font-weight: 500;
    margin-left: 8px;
}

.detail-value .end-date {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.detail-value .virtual-location,
.detail-value .physical-location {
    line-height: 1.6;
}

.detail-value .location-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-value .location-address {
    font-size: 14px;
    color: #64748b;
}

.detail-value .virtual-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #4f46e5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.detail-value .virtual-link:hover {
    background: #3730a3;
}

.detail-value .price-free {
    color: #059669;
    font-weight: 700;
}

.detail-value .price-amount {
    color: #4f46e5;
    font-weight: 700;
}

.detail-value .registration-spots {
    margin-bottom: 8px;
}

.detail-value .registration-progress {
    margin: 12px 0;
}

.detail-value .progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.detail-value .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
}

.detail-value .registration-count {
    color: #4f46e5;
    font-weight: 600;
}

.detail-value .registration-deadline {
    font-size: 14px;
    color: #dc2626;
    margin-top: 8px;
    font-weight: 500;
}

.detail-value .organizer-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-value .organizer-contact {
    margin-bottom: 4px;
}

.detail-value .organizer-contact a {
    color: #4f46e5;
    text-decoration: none;
    font-size: 14px;
}

.detail-value .organizer-contact a:hover {
    text-decoration: underline;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.event-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    min-width: 140px;
}

.event-actions .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.event-actions .btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.event-actions .btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-actions .btn-secondary:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.event-countdown-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-countdown-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.eywa-event-hero {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 40px 40px;
}

.hero-content {
    color: white;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.event-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.hero-meta-item .meta-icon {
    width: 20px;
    height: 20px;
}

.event-hero-no-image {
    background: linear-gradient(135deg, #007cba, #005a87);
    padding: 60px 40px;
    text-align: center;
}

.event-hero-no-image .hero-content {
    color: white;
}

.eywa-event-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.eywa-event-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.event-description h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.event-content-text {
    line-height: 1.7;
    color: #555;
}

.eywa-event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-details-card,
.event-countdown-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.event-details-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0 0 24px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.event-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    gap: 16px;
}

.detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007cba, #005a87);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-value {
    color: #2c3e50;
    font-weight: 500;
}

.date-time {
    font-size: 16px;
    font-weight: 600;
}

.time,
.all-day {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-top: 4px;
}

.end-date {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.virtual-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.virtual-link:hover {
    background: #005a87;
}

.location-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.location-address {
    font-size: 14px;
    color: #666;
}

.price-free {
    color: #28a745;
    font-weight: 600;
    font-size: 16px;
}

.price-amount {
    color: #007cba;
    font-weight: 600;
    font-size: 16px;
}

.registration-spots {
    font-weight: 600;
    margin-bottom: 8px;
}

.registration-progress {
    margin: 8px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007cba, #005a87);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.registration-deadline {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.organizer-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.organizer-contact {
    font-size: 14px;
    margin-bottom: 4px;
}

.organizer-contact a {
    color: #007cba;
    text-decoration: none;
}

.organizer-contact a:hover {
    text-decoration: underline;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-primary {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

/* Flex-Based Elementor Widget Styles */
.elementor-widget-eywa-events-grid .eywa-events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0;
    align-items: stretch;
}

/* Ensure proper height in Elementor context */
.elementor-widget-eywa-events-grid .eywa-event-item .event-image-container,
.elementor-widget-eywa-events-grid .eywa-event-item .event-image {
    height: 300px !important;
    min-height: 300px !important;
}

.elementor-widget-eywa-events-grid .eywa-events-grid.columns-1 {
    justify-content: center;
}

.elementor-widget-eywa-events-grid .eywa-events-grid.columns-1 .eywa-event-item {
    flex: 0 0 100%;
    max-width: 800px;
}

.elementor-widget-eywa-events-grid .eywa-events-grid.columns-2 .eywa-event-item {
    flex: 0 0 calc(50% - 15px);
}

.elementor-widget-eywa-events-grid .eywa-events-grid.columns-3 .eywa-event-item {
    flex: 0 0 calc(33.333% - 20px);
}

.elementor-widget-eywa-events-grid .eywa-events-grid.columns-4 .eywa-event-item {
    flex: 0 0 calc(25% - 22.5px);
}

/* Blog-Style Container Styling */
.elementor-widget-eywa-events-grid {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
}

.elementor-widget-eywa-events-grid .eywa-events-grid {
    position: relative;
    z-index: 1;
}

/* Blog-Style No Events Found Styling */
.no-events-found {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
}

.no-events-found::before {
    content: '📅';
    display: block;
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.elementor-widget-eywa-events-calendar .eywa-event-calendar {
    margin: 0;
}

.elementor-widget-eywa-upcoming-events .eywa-upcoming-events {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.elementor-widget-eywa-event-countdown .eywa-countdown {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.elementor-widget-eywa-event-countdown .countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.elementor-widget-eywa-event-countdown .time-unit {
    text-align: center;
}

.elementor-widget-eywa-event-countdown .time-unit .number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
}

.elementor-widget-eywa-event-countdown .time-unit .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Elementor Editor Styles */
.elementor-editor-active .eywa-events-grid .eywa-event-item,
.elementor-editor-active .eywa-upcoming-events,
.elementor-editor-active .eywa-countdown {
    pointer-events: none;
}

.elementor-alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
}

.elementor-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-navigation {
        justify-content: space-between;
    }
    
    .calendar-views,
    .calendar-filters {
        justify-content: center;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .day-header {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .week-header {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .day-column {
        min-height: 200px;
    }
    
    .events-list .event-item {
        flex-direction: column;
    }
    
    .event-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-unit .number {
        font-size: 2em;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .eywa-events-list.layout-grid {
        grid-template-columns: 1fr;
    }
    
    /* Flex-Based Responsive Styles */
    .elementor-widget-eywa-events-grid .eywa-events-grid {
        gap: 24px;
    }
    
    .elementor-widget-eywa-events-grid .eywa-events-grid.columns-2 .eywa-event-item,
    .elementor-widget-eywa-events-grid .eywa-events-grid.columns-3 .eywa-event-item,
    .elementor-widget-eywa-events-grid .eywa-events-grid.columns-4 .eywa-event-item {
        flex: 0 0 100%;
    }
    
    .elementor-widget-eywa-events-grid {
        padding: 0;
        margin: 0;
    }
    
    .eywa-event-item .event-content {
        padding: 16px;
    }
    
    .eywa-event-item .event-title {
        font-size: 16px;
    }
    
    .eywa-event-item .event-image,
    .eywa-event-item .event-image-container,
    .elementor-widget-eywa-events-grid .eywa-event-item .event-image,
    .elementor-widget-eywa-events-grid .eywa-event-item .event-image-container {
        height: 250px !important;
        min-height: 250px !important;
    }
    
    .eywa-event-item .event-meta > div {
        font-size: 11px;
        margin: 10px 0;
    }
    
    .eywa-event-item .event-excerpt {
        font-size: 13px;
        margin: 10px 0 12px 0;
    }
    
    .eywa-event-item .event-footer {
        gap: 8px;
    }
    
    .eywa-event-item .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .no-events-found {
        padding: 40px 20px;
    }
    
    /* Single Event Template Responsive */
    .event-hero-image {
        height: 250px;
    }
    
    .eywa-single-event-wrapper {
        margin-top: 50px;
    }
    
    .eywa-single-event-wrapper .container {
        padding: 0 15px;
    }
    
    .event-header {
        padding: 30px 24px 24px 24px;
    }
    
    .event-header-content .event-title {
        font-size: 24px;
    }
    
    .event-description h2 {
        font-size: 22px;
    }
    
    .event-content-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .event-content-text h1 { font-size: 24px; }
    .event-content-text h2 { font-size: 20px; }
    .event-content-text h3 { font-size: 18px; }
    .event-content-text h4 { font-size: 16px; }
    
    .event-meta-summary {
        gap: 16px;
    }
    
    .event-meta-summary .meta-item {
        font-size: 14px;
    }
    
    .event-main-content {
        padding: 30px 20px;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-actions-section,
    .event-countdown-section,
    .event-registration-section {
        margin: 30px 0;
        padding: 24px;
    }
    
    .event-actions-section .event-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-registration-section {
        padding: 24px;
        margin-top: 30px;
    }
    
    .event-details-card {
        padding: 20px;
    }
    
    .event-details-card h3 {
        font-size: 18px;
    }
    
    .detail-item {
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .detail-icon {
        width: 40px;
        height: 40px;
    }
    
    .detail-value {
        font-size: 15px;
    }
    
    .event-actions .btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .event-countdown-card {
        padding: 20px;
    }
    
    .event-countdown-card h3 {
        font-size: 16px;
    }
    
    .elementor-widget-eywa-event-countdown .countdown-timer {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .elementor-widget-eywa-event-countdown .time-unit .number {
        font-size: 2em;
    }
    
    /* Single Event Template Responsive */
    .eywa-event-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .eywa-event-sidebar {
        order: -1;
    }
    
    .eywa-event-content {
        padding: 30px 20px;
    }
    
    .event-details-card,
    .event-countdown-card {
        padding: 20px;
    }
    
    .hero-overlay {
        padding: 40px 20px 30px;
    }
    
    .event-hero-title {
        font-size: 2rem;
    }
    
    .event-hero-meta {
        gap: 16px;
    }
    
    .hero-meta-item {
        font-size: 14px;
    }
    
    .event-hero-no-image {
        padding: 40px 20px;
    }
    
    .detail-item {
        gap: 12px;
    }
    
    .detail-icon {
        width: 36px;
        height: 36px;
    }
    
    .detail-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .calendar-navigation .current-period {
        font-size: 16px;
    }
    
    .calendar-navigation button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .time-unit .number {
        font-size: 1.8em;
    }
}
