/* Welcome Modal CSS - Black & White Theme */

/* Overlay backdrop - ไม่สามารถคลิกปิดได้ */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.welcome-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.welcome-modal-container {
    position: relative;
    max-width: 95%;
    width: 100%;
    max-width: 1920px;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Content - แสดงรูปภาพ */
.welcome-modal-content {
    position: relative;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.welcome-modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: cover;
    background: transparent;
}

/* Close button ซ้อนอยู่บนรูป (ถ้าต้องการ - แต่ไม่ให้ปิดได้) */
.welcome-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: not-allowed;
    display: none; /* ซ่อนไว้เพราะไม่ให้ปิดได้ */
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: background 0.3s ease;
}

/* Button Container - อยู่ด้านนอกล่าง modal */
.welcome-modal-button-container {
    margin-top: 25px;
    text-align: center;
}

.welcome-modal-enter-btn {
    padding: 12px 40px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.welcome-modal-enter-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.welcome-modal-enter-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-modal-container {
        max-width: 95%;
    }

    .welcome-modal-image {
        max-height: 60vh;
    }

    .welcome-modal-enter-btn {
        padding: 12px 40px;
        font-size: 16px;
    }

    .welcome-modal-button-container {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-modal-container {
        max-width: 90%;
    }

    .welcome-modal-image {
        max-height: 50vh;
    }

    .welcome-modal-enter-btn {
        padding: 10px 30px;
        font-size: 14px;
        border-width: 2px;
    }

    .welcome-modal-button-container {
        margin-top: 15px;
    }
}

/* Shake Animation - เตือนเมื่อพยายามปิด modal */
@keyframes shake {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px) translateY(0);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px) translateY(0);
    }
}

.welcome-modal-container.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Prevent body scroll when modal is open */
body.welcome-modal-open {
    overflow: hidden;
}
