/*
 * Single Fair Page Styles
 * Version: 2.1 - Refined header with organizer card
 */

/* ====================================
   HEADER - SPLIT LAYOUT (70% + 30%)
   ==================================== */
.single-fair-page {
    padding: 40px 0;
}

.fair-header-split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 40px;
}

/* Left side - Title & Meta */
.fair-header-left {
    min-width: 0;
}

.fair-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #1e293b;
}

.fair-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

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

.fair-meta-item .meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.date-sep {
    margin: 0 4px;
    opacity: 0.5;
}

/* Right side - Organizer Card */
.fair-header-right {
    display: flex;
    align-items: flex-start;
}

.header-organizer-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-org-logo {
    text-align: center;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.header-org-logo img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
}

.header-org-info {
    text-align: center;
}

.org-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.org-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.org-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.org-name a:hover {
    color: #667eea;
}

.header-org-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.org-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.org-link:hover {
    color: #667eea;
}

.view-other-events {
    display: inline-block;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.view-other-events:hover {
    color: #5b21b6;
    transform: translateX(4px);
}

/* ====================================
   2 COLUMN LAYOUT
   ==================================== */
.fair-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .fair-header-split {
        grid-template-columns: 1fr;
    }
    
    .fair-content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   LEFT COLUMN - MAIN CONTENT
   ==================================== */
.fair-main-content {
    min-width: 0;
}

/* Featured Image */
.fair-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.fair-featured-image .event-logo {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
    display: block;
    padding: 40px;
    background: white;
}

/* Quick Stats */
.fair-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.fair-description,
.fair-highlights,
.fair-keywords,
.fair-map,
.fair-gallery {
    margin-bottom: 40px;
}

.fair-description h2,
.fair-highlights h2,
.fair-map h2,
.fair-gallery h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.description-content {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

/* Event Highlights */
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid #667eea;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.2s;
}

.highlights-list li:hover {
    background: #ede9fe;
}

/* Keywords */
.fair-keywords h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #475569;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: #ddd6fe;
    transform: scale(1.05);
    cursor: pointer;
}

/* Map */
#fair-google-map {
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.venue-address,
.transport-info,
.parking-info {
    font-size: 15px;
    color: #64748b;
    margin: 12px 0;
    padding-left: 24px;
    position: relative;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ====================================
   RIGHT SIDEBAR
   ==================================== */
.fair-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1e293b;
}

/* Action Buttons */
.action-buttons .btn {
    margin-bottom: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #22c55e;
    color: white;
}

.btn-secondary:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8fafc;
}

.btn-block {
    width: 100%;
}

/* Quick Info */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

/* Social Share */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #1560d0;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #1a8cd8;
}

.share-linkedin {
    background: #0a66c2;
    color: white;
}

.share-linkedin:hover {
    background: #004e9a;
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-whatsapp:hover {
    background: #20b858;
}

.share-email {
    background: #64748b;
    color: white;
}

.share-email:hover {
    background: #475569;
}

/* ====================================
   LIGHTBOX
   ==================================== */
.fair-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .fair-header-split {
        padding: 24px 0;
    }
    
    .fair-title {
        font-size: 28px;
    }
    
    .fair-meta-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .fair-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .fair-sidebar {
        position: static;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .header-organizer-card {
        padding: 20px;
    }
}
