/* Modern Event Page Styles */
* {
    box-sizing: border-box;
}

/* Hide the site header */
#site-header {
    display: none !important;
}

/* Legacy fallback styles for older template structure */
body .event-single {
    display: flex !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    gap: 30px;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    position: relative;
}

body .event-single .event-main-content {
    flex: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #f8f8f8;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body .event-single .event-sidebar {
    flex: 1 !important;
    background-color: #f8f9fa;
    padding: 0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 350px !important;
    position: sticky;
    top: 20px;
}

body .event-single .event-title {
    font-size: 2.4em;
    color: #d32f2f;
    margin: 0;
    padding: 20px;
    font-weight: 300;
    text-align: left;
    background-color: white;
}

body .event-single .event-content {
    padding: 30px;
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    background-color: white;
}

body .event-single .event-featured-image {
    margin: 0;
    overflow: hidden;
    background-color: white;
}

body .event-single .event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

body .event-single .event-details-box .widget-title {
    font-size: 1.2em;
    color: #23282d;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f2f2f2;
}

body .event-single .event-date {
    margin: 0;
    padding: 15px 20px 5px;
    font-weight: bold;
}

body .event-single .event-date-number {
    font-size: 1.8em;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

body .event-single .event-time {
    font-size: 1.1em;
    color: #555;
    display: block;
}

body .event-single .event-header-location {
    font-size: 1em;
    color: #555;
    margin: 0;
    padding: 5px 20px 15px;
    border-bottom: 1px solid #eee;
}

body .event-single .location-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

body .event-single .location-address {
    display: block;
}

body .event-single .event-location-map {
    width: 100%;
    height: 200px;
    border: none;
    margin: 0 0 20px 0;
    border-top: 1px solid #eee;
    position: relative;
}

body .event-single .event-location-map .gm-style-mtc,
body .event-single .event-location-map .gm-svpc {
    display: none !important;
}

body .event-single .map-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

body .event-single .event-registration {
    text-align: center;
    margin: 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
}

body .event-single .registration-button {
    display: block;
    width: 100%;
    background-color: #d32f2f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    border: none;
}

body .event-single .registration-button:hover {
    background-color: #b71c1c;
    color: #fff;
}

body .event-single .survey-confirmation-message {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    margin: 20px 0 0 0;
    color: #2e7d32;
    font-size: 16px;
    font-weight: 500;
}

body .event-single .survey-confirmation-message p {
    margin: 0;
}

.wpem-confirmation-container {
    box-shadow: none !important;
}

@media screen and (max-width: 882px) {
    body .event-single {
        flex-direction: column;
        align-items: stretch;
    }

    body .event-single .event-sidebar {
        margin-top: 20px;
        max-width: none;
    }
}

/* End of legacy fallback styles */

.modern-event-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, #f3e7f3 0%, #ffffff 50%, #e7f3ff 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-badge {
    display: inline-block;
    width: fit-content;
}

.event-badge span {
    background: rgba(139, 69, 19, 0.1);
    color: #8b4513;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0;
}

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

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

.meta-icon {
    width: 20px;
    height: 20px;
    color: #7c3aed;
}

.meta-text {
    font-weight: 500;
    color: #374151;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: #374151;
    padding: 12px 32px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-secondary:hover {
    border-color: #7c3aed;
    color: white;
    background: #7c3aed;
    text-decoration: none;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.25rem;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 1.375rem;
}

.btn-full {
    width: 100%;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 1/1;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: #9ca3af;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(40px);
}

.decoration-1 {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    bottom: -24px;
    right: -24px;
}

.decoration-2 {
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    top: -24px;
    left: -24px;
}

/* Survey Confirmation */
.survey-confirmation {
    padding: 32px 0;
}

.confirmation-card {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #166534;
    font-weight: 500;
}

.confirmation-icon {
    width: 24px;
    height: 24px;
    color: #22c55e;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #111827;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.card-content {
    padding: 32px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #111827;
}

.card-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #111827;
}

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

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

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

.details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #374151;
}

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

.detail-bullet {
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

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

/* Embedded Map in About Section */
.embedded-map-container {
    position: relative;
    margin-bottom: 20px;
}

.embedded-event-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.embedded-map-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.embedded-directions-btn {
    margin-top: 16px;
}

/* Footer */
.event-footer {
    border-top: 1px solid #e5e7eb;
    background: rgba(249, 250, 251, 0.5);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #7c3aed;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
}

@media (max-width: 767px) {
    .hero-container {
        padding: 40px 20px;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .content-grid {
        margin-bottom: 32px;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .event-meta-info {
        justify-content: center;
    }
    
    .hero-actions {
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .embedded-event-map {
        height: 200px;
    }
}

@media (max-width: 479px) {
    .container,
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 32px 16px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .event-meta-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .embedded-event-map {
        height: 180px;
    }
}

/* Registration Mode Adjustments */
.content-grid.registration-mode {
    grid-template-columns: 1fr;
}

.content-grid.registration-mode .content-card {
    max-width: none;
}

/* Hide WordPress Event Manager registration info block */
.wpem-registration-event-info {
    display: none !important;
}

/* Hide any event info blocks that might appear in registration mode */
.wpem-event-info,
.event-registration-info,
.wpem-event-registration-info {
    display: none !important;
}

/* Ensure registration form styling */
.content-grid.registration-mode .event-content form {
    margin: 0;
}

.content-grid.registration-mode .event-content .wpem-form-wrapper {
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Registration mode specific adjustments */
body:has(.registration-mode) .hero-section {
    min-height: auto;
}

body:has(.registration-mode) .hero-actions {
    display: none;
}

body:has(.registration-mode) .about-section {
    padding-top: 10px;
}

/* Remove box-shadow from registration form container */
.wpem-registration-form-container,
.wpem-registration-form,
.wpem-form-wrapper,
.wpem-form {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Fallback for browsers that don't support :has() */
.modern-event-page.registration-active .hero-section {
    min-height: auto;
}

.modern-event-page.registration-active .hero-actions {
    display: none;
}

.modern-event-page.registration-active .about-section {
    padding-top: 10px;
} 