/**
 * Single Event Template Styles
 * 
 * Supports single, multi-day, and recurring events
 * 
 * @package Hello Elementor Child
 */

/* Reset and Base */
.gm_event-single {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f6f3;
}

.gm_event-single * {
    box-sizing: border-box;
}

/* Back Link */
.gm_event-back {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gm_event-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a6c7d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gm_event-back a:hover {
    color: #d4869c;
}

/* Hero Section */
.gm_event-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}

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

.gm_event-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.gm_event-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Badges Container */
.gm_event-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.gm_event-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8b4b8, #d4869c);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Event Type Badge */
.gm_event-type-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gm_event-type-badge.recurring {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gm_event-type-badge.multi-day {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.gm_event-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.gm_event-hero-excerpt {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0;
}

/* Main Container */
.gm_event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Content Area */
.gm_event-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.gm_event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.gm_event-tag {
    background: #f0f4f8;
    color: #5a6c7d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.gm_event-tag:hover {
    background: #e8b4b8;
    color: white;
}

/* Description Styles */
.gm_event-description {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.gm_event-description h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

.gm_event-description h2:first-child {
    margin-top: 0;
}

.gm_event-description h3 {
    font-size: 22px;
    color: #2c3e50;
    margin: 25px 0 12px 0;
    line-height: 1.3;
}

.gm_event-description p {
    margin-bottom: 16px;
}

.gm_event-description ul {
    margin: 15px 0 20px 25px;
    padding: 0;
}

.gm_event-description li {
    margin-bottom: 8px;
}

.gm_event-description strong {
    color: #2c3e50;
}

.gm_event-description em {
    color: #5a6c7d;
    display: block;
    margin-top: 30px;
    padding: 20px;
    background: #f8f6f3;
    border-radius: 12px;
    border-left: 4px solid #e8b4b8;
    font-style: normal;
}

.gm_event-description em a {
    color: #d4869c;
    text-decoration: none;
}

.gm_event-description em a:hover {
    text-decoration: underline;
}

/* Sidebar */
.gm_event-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Info Card */
.gm_event-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.gm_event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f4f8;
}

.gm_event-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gm_event-info-item:first-child {
    padding-top: 0;
}

/* Next Occurrence Highlight */
.gm_event-info-item.gm_event-next-occurrence {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    margin: 0 -30px;
    padding: 16px 30px;
    border-bottom: none;
}

.gm_event-info-item.gm_event-next-occurrence .gm_event-info-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gm_event-info-value.highlight {
    color: #667eea !important;
}

.gm_event-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fff5f5, #ffefef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.gm_event-info-details {
    flex: 1;
}

.gm_event-info-label {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.gm_event-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.gm_event-info-value a {
    color: #d4869c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gm_event-info-value a:hover {
    color: #c46884;
    text-decoration: underline;
}

/* Spots Card */
.gm_event-spots-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    text-align: center;
}

.gm_event-spots-title {
    font-size: 16px;
    color: #5a6c7d;
    margin-bottom: 20px;
}

.gm_event-spots-number {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.gm_event-spots-label {
    font-size: 16px;
    color: #7f8c8d;
    margin-top: 5px;
}

.gm_event-spots-bar {
    width: 100%;
    height: 10px;
    background: #f0f4f8;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.gm_event-spots-filled {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.gm_event-spots-filled.limited {
    background: linear-gradient(90deg, #ff9800, #ffa726);
}

.gm_event-spots-text {
    font-size: 14px;
    color: #7f8c8d;
}

.gm_event-spots-text strong {
    color: #4CAF50;
}

.gm_event-spots-text.limited strong {
    color: #ff9800;
}

/* Book Button */
.gm_event-book-btn {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #e8b4b8, #d4869c) !important;
    color: white !important;
    border: none !important;
    padding: 18px 36px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 134, 156, 0.3) !important;
    text-decoration: none !important;
    text-align: center !important;
    margin-bottom: 24px !important;
}

.gm_event-book-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 134, 156, 0.5) !important;
    background: linear-gradient(135deg, #d4869c, #c46884) !important;
    color: white !important;
}

.gm_event-book-btn:focus,
.gm_event-book-btn:active {
    outline: none !important;
    color: white !important;
}

/* Disabled Button for Past Events */
.gm_event-book-btn.disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.gm_event-book-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #bdc3c7 !important;
}

/* Organizer Card */
.gm_event-organizer-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gm_event-organizer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.gm_event-organizer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm_event-organizer-info {
    flex: 1;
}

.gm_event-organizer-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm_event-organizer-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* Share Card */
.gm_event-share-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.gm_event-share-title {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.gm_event-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gm_event-share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e8b4b8;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    color: #5a6c7d;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.gm_event-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #e8b4b8;
    border-color: #e8b4b8;
    color: white;
}

.gm_event-share-btn.facebook { font-weight: bold; }
.gm_event-share-btn.twitter { font-weight: bold; font-size: 18px; }
.gm_event-share-btn.linkedin { font-weight: bold; font-size: 16px; }
.gm_event-share-btn.email { font-size: 22px; }

/* Related Events Section */
.gm_event-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.gm_event-related-header {
    text-align: center;
    margin-bottom: 40px;
}

.gm_event-related-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.gm_event-related-subtitle {
    font-size: 18px;
    color: #5a6c7d;
    margin: 0;
}

.gm_event-related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.gm_event-related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 360px;
    flex: 0 1 360px;
    position: relative;
}

.gm_event-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

/* Related Card Badge */
.gm_event-related-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.gm_event-related-card-badge.recurring {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gm_event-related-card-badge.multi-day {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.gm_event-related-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gm_event-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gm_event-related-card:hover .gm_event-related-card-image img {
    transform: scale(1.05);
}

.gm_event-related-card-body {
    padding: 24px;
}

.gm_event-related-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #e8b4b8, #d4869c);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.gm_event-related-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.gm_event-related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gm_event-related-card-title a:hover {
    color: #d4869c;
}

.gm_event-related-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.gm_event-related-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm_event-related-card-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: #f0f4f8;
    color: #5a6c7d;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gm_event-related-card-btn:hover {
    background: linear-gradient(135deg, #e8b4b8, #d4869c);
    color: white;
}

/* Modal Popup */
.gm_event-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gm_event-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.gm_event-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gm_event-modal-overlay.active .gm_event-modal {
    transform: scale(1);
}

.gm_event-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f4f8;
    text-align: center;
}

.gm_event-modal-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
}

.gm_event-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm_event-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.gm_event-modal-event-name {
    font-size: 16px;
    color: #d4869c;
    font-weight: 600;
    margin: 0;
}

/* Modal Next Date for Recurring Events */
.gm_event-modal-next-date {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
    margin: 8px 0 0 0;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.gm_event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f4f8;
    border-radius: 50%;
    font-size: 24px;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gm_event-modal-close:hover {
    background: #e8b4b8;
    color: white;
}

.gm_event-modal-body {
    padding: 30px;
}

.gm_event-modal-form {
    /* WPForms container */
}

/* WPForms Styling in Modal */
.gm_event-modal-form .wpforms-container {
    margin: 0 !important;
}

.gm_event-modal-form .wpforms-field {
    margin-bottom: 20px !important;
}

.gm_event-modal-form .wpforms-field-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 8px !important;
}

.gm_event-modal-form .wpforms-field input,
.gm_event-modal-form .wpforms-field select,
.gm_event-modal-form .wpforms-field textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #f0f4f8 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
}

.gm_event-modal-form .wpforms-field input:focus,
.gm_event-modal-form .wpforms-field select:focus,
.gm_event-modal-form .wpforms-field textarea:focus {
    outline: none !important;
    border-color: #e8b4b8 !important;
}

.gm_event-modal-form .wpforms-submit-container {
    margin-top: 10px !important;
}

.gm_event-modal-form .wpforms-submit {
    background: linear-gradient(135deg, #e8b4b8, #d4869c) !important;
    color: white !important;
    border: none !important;
    padding: 16px 36px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 134, 156, 0.3) !important;
    width: 100% !important;
}

.gm_event-modal-form .wpforms-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 134, 156, 0.4) !important;
    background: linear-gradient(135deg, #d4869c, #c46884) !important;
}

.gm_event-modal-footer {
    padding: 0 30px 30px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.gm_event-modal-footer a {
    color: #d4869c;
    text-decoration: none;
}

.gm_event-modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .gm_event-container {
        grid-template-columns: 1fr;
    }
    
    .gm_event-sidebar {
        position: static;
    }
    
    .gm_event-hero {
        height: 350px;
    }
    
    .gm_event-hero-title {
        font-size: 36px;
    }
    
    .gm_event-hero-content {
        padding: 24px;
    }
    
    .gm_event-info-item.gm_event-next-occurrence {
        margin: 0 -20px;
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .gm_event-hero {
        height: 300px;
    }
    
    .gm_event-hero-title {
        font-size: 28px;
    }
    
    .gm_event-hero-excerpt {
        font-size: 16px;
    }
    
    .gm_event-hero-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gm_event-content {
        padding: 24px;
    }
    
    .gm_event-info-card,
    .gm_event-spots-card,
    .gm_event-share-card,
    .gm_event-organizer-card {
        padding: 20px;
    }
    
    .gm_event-related-title {
        font-size: 28px;
    }
    
    .gm_event-modal-header,
    .gm_event-modal-body {
        padding: 20px;
    }
    
    .gm_event-modal-footer {
        padding: 0 20px 20px;
    }
    
    .gm_event-related-card-badge {
        top: 12px;
        right: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }
}
