/* ============================================
   PREMIUM MENU SECTION STYLES - ISOLATED SCOPE
   ============================================ */

#section5.premium-menu-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-image: url('../../img/burger_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 배경 오버레이 */
#section5.premium-menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

/* Header Section - Transparent Background */
#section5 .menu-header {
    background-color: transparent;
    padding: 120px 0 100px 0;
    color: white;
}

#section5 .menu-title {
    margin-bottom: 50px;
}

#section5 .title-sub {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
}

#section5 .title-main {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

#section5 .title-desc {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 0;
    color: white;
}

/* Navigation Menu */
#section5 .menu-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

#section5 .menu-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 20px 30px;
    margin: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 첫 번째 메뉴 버튼에만 왼쪽 테두리 */
#section5 .menu-btn:first-child {
    border-left: 1px solid white;
}

/* 마지막 메뉴 버튼에만 오른쪽 테두리 */
#section5 .menu-btn:last-child {
    border-right: 1px solid white;
}

/* 인접한 버튼 사이의 테두리 중복 제거 */
#section5 .menu-btn + .menu-btn {
    border-left: none;
}

#section5 .menu-btn:hover {
    background-color: #b70002;
}

#section5 .menu-btn.active {
    background-color: #E50000;
    border-color: #E50000;
    color: white;
}

#section5 .menu-btn small {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 400;
    line-height: 1.2;
}

/* Content Section - Light Background */
#section5 .menu-content {
    background-color: #F5F0E6;
    padding: 60px 0;
    flex: 1;
}

/* Menu Layers */
#section5 .menu-layer {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#section5 .menu-layer.active {
    display: block;
    opacity: 1;
}

/* Menu Items */
#section5 .menu-item {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Menu Container - 전체 화면 가로폭의 90% */
#section5 .menu-container {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 15px;
}

/* Menu Grid - 반응형 그리드 */
#section5 .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* 태블릿 - 2열 */
@media (max-width: 991px) {
    #section5 .menu-container {
        width: 95%;
    }
    
    #section5 .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 모바일 - 2열 */
@media (max-width: 576px) {
    #section5 .menu-container {
        width: 95%;
        padding: 0 10px;
    }
    
    #section5 .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

#section5 .menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#section5 .menu-image {
    position: relative;
    padding-top: 61.77%; /* 349/565 = 0.6177 (실제 이미지 비율) */
    overflow: hidden;
}

#section5 .menu-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#section5 .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3A478C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

#section5 .menu-text {
    padding: 20px;
    text-align: center;
}

#section5 .menu-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

#section5 .menu-text p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    #section5 .menu-header {
        padding: 60px 0 40px 0;
    }
    
    #section5 .title-sub {
        font-size: 16px;
    }
    
    #section5 .title-main {
        font-size: 36px;
    }
    
    #section5 .title-desc {
        font-size: 14px;
    }
    
    #section5 .menu-navigation {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
    }
    
    #section5 .menu-btn {
        padding: 15px 20px;
        margin: 0 0 1px 0;
        font-size: 14px;
        min-width: 200px;
        height: 60px;
        border: 1px solid white;
        border-radius: 0;
    }
    
    #section5 .menu-btn:first-child {
        border-top: 1px solid white;
        border-left: 1px solid white;
        border-right: 1px solid white;
    }
    
    #section5 .menu-btn:last-child {
        border-bottom: 1px solid white;
        border-left: 1px solid white;
        border-right: 1px solid white;
    }
    
    #section5 .menu-btn + .menu-btn {
        border-left: 1px solid white;
        border-right: 1px solid white;
    }
    
    #section5 .menu-content {
        padding: 40px 0;
    }
    
    #section5 .menu-text {
        padding: 15px;
    }
    
    #section5 .menu-text h5 {
        font-size: 16px;
    }
    
    #section5 .menu-text p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    #section5 .menu-header {
        padding: 40px 0 30px 0;
    }
    
    #section5 .title-main {
        font-size: 28px;
    }
    
    #section5 .menu-btn {
        padding: 12px 15px;
        margin: 0 0 1px 0;
        font-size: 13px;
        min-width: 180px;
        height: 55px;
    }
    
    #section5 .menu-btn small {
        font-size: 11px;
    }
    
    #section5 .menu-content {
        padding: 30px 0;
    }
}

/* Animation for layer transitions */
@keyframes premiumMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#section5 .menu-layer.active {
    animation: premiumMenuFadeIn 0.5s ease;
}

/* Grid adjustments for responsive design */
@media (max-width: 767.98px) {
    #section5 .menu-item {
        margin-bottom: 20px;
    }
}

/* Ensure proper spacing between menu buttons */
#section5 .menu-navigation .row {
    gap: 10px;
}

@media (max-width: 576px) {
    #section5 .menu-navigation .row {
        gap: 5px;
    }
}

/* Information Links Styles */
#section5 .info-links-container {
    padding: 40px 20px;
    text-align: center;
}

#section5 .info-link-item {
    background: white;
    border: 2px solid #E50000;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#section5 .info-link-item:hover {
    background-color: #E50000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 0, 0, 0.2);
}

#section5 .info-link-item:hover h4,
#section5 .info-link-item:hover p {
    color: white;
}

#section5 .info-link-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #E50000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

#section5 .info-link-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    font-style: italic;
    transition: color 0.3s ease;
}

/* Mobile responsive for info links */
@media (max-width: 768px) {
    #section5 .info-links-container {
        padding: 30px 15px;
    }
    
    #section5 .info-link-item {
        padding: 20px 25px;
        margin: 8px;
        min-width: 180px;
    }
    
    #section5 .info-link-item h4 {
        font-size: 18px;
    }
    
    #section5 .info-link-item p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    #section5 .info-links-container {
        padding: 20px 10px;
    }
    
    #section5 .info-link-item {
        padding: 15px 20px;
        margin: 5px;
        min-width: 150px;
    }
    
    #section5 .info-link-item h4 {
        font-size: 16px;
    }
    
    #section5 .info-link-item p {
        font-size: 12px;
    }
}

/* Information Modal Styles - Based on YouTube Modal */
.information-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.information-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.information-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.information-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    margin: auto;
    background-color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    z-index: 1000000;
    pointer-events: auto;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.information-modal .close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
    line-height: 1;
    z-index: 1000002;
}

.information-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    transform: scale(1.1);
}


.information-modal .modal-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.information-container {
    width: 100%;
    max-width: 1000px;
}

/* Section Styles */
.information-modal .info-section {
    margin-bottom: 60px;
}

.information-modal .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #E50000;
    margin: 0 0 30px 0;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #E50000;
}

/* Table Container */
.information-modal .table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Table Styles */
.information-modal .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    font-size: 14px;
    background: white;
}

.information-modal .info-table th {
    background-color: #E50000;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.information-modal .info-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
    text-align: center;
    background: white;
}

.information-modal .info-table tr:nth-child(even) td {
    background: #f9f9f9;
}

.information-modal .info-table tr:hover td {
    background: #f0f0f0;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .information-modal .modal-content {
        max-width: 95%;
        width: 95%;
        margin: 20px;
        height: 85%;
    }
    
    .information-modal .modal-body {
        padding: 25px;
    }
    
    .information-modal .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .information-modal .info-section {
        margin-bottom: 40px;
    }
    
    .information-modal .info-table {
        font-size: 12px;
    }
    
    .information-modal .info-table th,
    .information-modal .info-table td {
        padding: 8px 6px;
    }
    
    .information-modal .close-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
        top: 15px;
        right: 15px;
    }
    
}

@media (max-width: 576px) {
    .information-modal .modal-content {
        max-width: 98%;
        width: 98%;
        margin: 10px;
        height: 90%;
    }
    
    .information-modal .modal-body {
        padding: 20px;
    }
    
    .information-modal .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .information-modal .info-section {
        margin-bottom: 30px;
    }
    
    .information-modal .info-table {
        font-size: 11px;
    }
    
    .information-modal .info-table th,
    .information-modal .info-table td {
        padding: 6px 4px;
    }
    
    .information-modal .close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
    
}