/**
 * Fuar Alanı Modülü Stilleri
 */

#mainContent:has(.fuar-alani-page) {
    min-height: auto;
}

.fuar-alani-page {
    padding-top: 130px;
    min-height: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* ===== VIDEO SAYFASI ===== */
.video-container {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.preview-video {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-overlay i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.video-wrapper:hover .play-overlay {
    background: rgba(0,0,0,0.4);
}

.video-wrapper:hover .play-overlay i {
    transform: scale(1.1);
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1600px;
    margin: 2rem auto;
    top: 50%;
    transform: translateY(-50%);
}

.close-btn {
    position: absolute;
    top: -2.5rem;
    right: 0;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

#modalVideo {
    width: 100%;
    border-radius: 8px;
}

/* ===== YERLEŞİM PLANI SAYFASI ===== */
.layout-wrapper {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 40px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    background: #665200;
}

.image-section,
.list-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: fit-content;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}

.item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.item-inner:hover {
    transform: translateY(-2px);
}

.item-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hover-effect {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hover-effect i {
    color: white;
    font-size: 1.5rem;
}

.item-inner:hover .hover-effect {
    opacity: 1;
}

.list-container {
    height: 0;
    padding-bottom: 75%;
    position: relative;
}

.list-inner {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.list-item {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.list-item:hover {
    background: #f1f5f9;
}

.list-item strong {
    color: #846A00;
    margin-right: 0.5rem;
    font-weight: 600;
}

.list-inner::-webkit-scrollbar {
    width: 6px;
}

.list-inner::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.list-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

#imageModal.show {
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

#modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    width: auto;
    height: auto;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: rgba(255,255,255,0.2);
}

.nav-button.prev {
    left: 1rem;
}

.nav-button.next {
    right: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .list-inner::-webkit-scrollbar {
        width: 4px;
    }
}

@media (max-width: 768px) {
    .fuar-alani-page {
        padding-top: 100px;
    }

    .video-container {
        margin: 1rem auto;
        padding: 0 20px;
    }
    
    .layout-wrapper {
        padding: 0 20px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .play-overlay i {
        font-size: 3rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .close-btn {
        top: -2rem;
        font-size: 1.25rem;
    }

    .layout-wrapper {
        margin: 1rem auto;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 0.75rem;
    }

    .list-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }
}

