/* GC Events Showcase - Single Event Styles
   Ported 1:1 from BS Event Display
   Updated: Mobile Layout Fix (Main Content First)
*/

.gc-event-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.gc-event-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c24 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.gc-event-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.gc-event-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; position: relative; z-index: 1; }
.gc-event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.gc-event-title { font-size: 2.5rem; margin-bottom: 15px; font-weight: 700; position: relative; z-index: 1; }
.gc-event-subtitle { font-size: 1.2rem; opacity: 0.95; max-width: 700px; position: relative; z-index: 1; margin: 0; }

/* Content Grid */
.gc-event-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 40px; }
.gc-event-main { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.gc-event-image { width: 100%; height: auto; object-fit: contain; border-radius: 8px; margin-bottom: 30px; display: block; }

.gc-event-section { margin-bottom: 35px; }
.gc-section-title { font-size: 1.5rem; color: #2d5016; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e8f5e2; font-weight: 600; }
.gc-section-content { color: #555; line-height: 1.8; }
.gc-section-content p { margin-bottom: 15px; }

/* Info Grid */
.gc-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.gc-info-item { display: flex; flex-direction: column; gap: 5px; }
.gc-info-label { font-weight: 600; color: #333; font-size: 0.9rem; }
.gc-info-value { color: #666; font-size: 0.95rem; }

/* Map */
.gc-map-container { width: 100%; height: 350px; background: #e0e0e0; border-radius: 8px; margin-top: 15px; }

/* Sidebar */
.gc-event-sidebar { position: sticky; top: 20px; height: fit-content; }
.gc-sidebar-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 20px; }
.gc-sidebar-card h3 { font-size: 1.3rem; color: #2d5016; margin: 0 0 20px 0; font-weight: 600; }

/* Partner */
.gc-partner-logo { margin-bottom: 15px; text-align: center; }
.gc-partner-logo img { max-width: 100%; height: auto; max-height: 120px; object-fit: contain; }
.gc-partner-name { font-size: 1.2rem; margin: 15px 0 10px 0; font-weight: 600; color: #333; }

/* Buttons & Forms */
.gc-cta-button {
    display: block; width: 100%; padding: 14px 24px; background: #4a7c24; color: white !important;
    text-align: center; text-decoration: none !important; border-radius: 8px; font-weight: 600;
    font-size: 1rem; border: none; cursor: pointer; transition: all 0.3s ease; margin-bottom: 10px; box-sizing: border-box;
}
.gc-cta-button:hover { background: #3a6118; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 124, 36, 0.3); }

.gc-input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }

/* Share Grid */
.gc-share-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.gc-share-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 5px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    color: #555; text-decoration: none !important; font-size: 0.75rem; cursor: pointer; transition: all 0.2s ease;
}
.gc-share-btn svg { width: 24px; height: 24px; margin-bottom: 8px; color: #4a7c24; display: block; }
.gc-share-btn:hover { background: #f0f8ec; border-color: #4a7c24; color: #2d5016; transform: translateY(-2px); }

/* Calendar Links */
.gc-calendar-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.gc-cal-link {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 8px 12px; color: #4a7c24; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; border-radius: 4px; text-decoration: none !important; transition: background 0.2s;
}
.gc-cal-link:hover { background: #f0f8ec; }

/* Feedback Messages */
.bs-success { color: green; margin-top: 10px; }
.bs-error { color: red; margin-top: 10px; }

/* MOBILE FIX: Force Main Content to Top, Sidebar to Bottom */
@media (max-width: 968px) {
    
    /* 1. Turn off Grid, Turn on Flexbox */
    .gc-event-content { 
        display: flex !important; 
        flex-direction: column !important;
    }
    
    /* 2. Force Main Content (The Text & Images) to be FIRST */
    .gc-event-main { 
        order: 1 !important; 
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px; /* Adds space between content and sidebar */
    }

    /* 3. Force Sidebar (Map & Buttons) to be SECOND */
    .gc-event-sidebar { 
        order: 2 !important; 
        width: 100%;
        margin-top: 0;
        position: static; /* Unstick the sticky sidebar on mobile */
    }

    /* Adjust Headers for mobile sizes */
    .gc-event-header { padding: 40px 30px; }
    .gc-event-title { font-size: 2rem; }
}