/* css/rooms.css - Styles specific to rooms.html */

/* Rooms List Section */
.ds-section--rooms-list {
    /* padding is from .ds-section, background from --ds-section-bg */
}

.ds-room-detail { /* Replaces .room-detail */
    margin-bottom: 60px;
    background: var(--ds-card-bg); /* Base card background */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ds-glass-effect);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Animation handled by .ds-animate-on-scroll in main.js/main.css */
}
.ds-room-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border-color: var(--ds-primary-light);
}

.ds-room-detail__banner { /* Replaces .room-banner */
    height: 350px; /* Or responsive height */
    background-color: var(--ds-dark-bg); /* Fallback */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.6)), var(--banner-image-url); /* CSS var for image */
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end; /* Align title to bottom */
    padding: 25px;
}

.ds-room-detail__title-area { /* Replaces .room-title (wrapper for h2 and badges) */
    width: 100%;
    color: white;
    position: relative; /* For z-index if needed */
    z-index: 2;
}
.ds-room-detail__name { /* Replaces h2 inside .room-title */
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.ds-room-detail__badges { /* Replaces .room-badges */
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ds-room-detail__badge { /* Replaces .badge */
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    line-height: 1.3;
    color: var(--ds-light-text);
    white-space: nowrap;
}
.ds-room-detail__badge i {
    margin-right: 6px;
    opacity: 0.8;
}
.ds-room-detail__badge--time { color: #ffc107; } /* Example: Amber for time */
.ds-room-detail__badge--players { color: #8bc34a; } /* Example: Light Green for players */

.ds-room-detail__difficulty { /* Replaces .badge.difficulty and its inner structure */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(var(--ds-primary-light-rgb), 0.2); /* Use primary color for difficulty */
    color: var(--ds-light-text);
    border: 1px solid var(--ds-primary-light);
}
.ds-room-detail__difficulty-label { /* Replaces .difficulty-text */
    /* Text set by data-translate */
}
.ds-room-detail__difficulty-bar-track { /* Replaces .difficulty-bar-container */
    width: 80px; /* Or var(--ds-difficulty-bar-width) if defined */
    height: var(--ds-difficulty-bar-height);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: calc(var(--ds-difficulty-bar-height) / 2);
    overflow: hidden;
}
.ds-room-detail__difficulty-bar-level { /* Replaces .difficulty-bar-level */
    height: 100%;
    /* background-color will be set by JS */
    border-radius: calc(var(--ds-difficulty-bar-height) / 2);
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.ds-room-detail__new-badge { /* Replaces .new-badge */
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e91e63; /* Example: Pink for new */
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
    animation: ds-pulse-badge-animation 2s infinite;
    z-index: 3;
}
@keyframes ds-pulse-badge-animation { /* Renamed animation */
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.ds-room-detail__main-content { /* Replaces .room-content */
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 35px;
}
.ds-room-detail__story-area { /* Replaces .room-story */
    flex: 1;
    min-width: 300px; /* Ensure it takes space */
}
.ds-room-detail__story-title { /* Replaces h3 in .room-story */
    color: var(--ds-secondary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
}
.ds-room-detail__story-paragraph { /* Replaces p in .room-story */
    margin-bottom: 18px;
    color: var(--ds-gray-text);
    line-height: 1.7;
}

.ds-room-detail__features-list {
    display: grid;
    gap: 15px;
    margin-top: 25px;
    /* 預設 (手機優先 - 1欄，項目會垂直堆疊，類似 1x4 的效果) */
    grid-template-columns: 1fr;
}

.ds-room-detail__feature-item { /* 樣式已存在，無需修改，僅為上下文 */
    background: rgba(var(--ds-light-text-rgb, 230, 230, 250), 0.05);
    border: 1px solid var(--ds-primary-light);
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: var(--ds-light-text);
}
.ds-room-detail__feature-item:hover { /* 樣式已存在 */
    background: rgba(var(--ds-primary-light-rgb), 0.2);
    transform: translateY(-3px);
}
.ds-room-detail__feature-item i { /* 樣式已存在 */
    color: var(--ds-primary-light);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.ds-room-detail__feature-item span { /* 樣式已存在 */
    flex-grow: 1;
    font-size: 0.9rem;
}

.ds-room-detail__video-area { /* Replaces .room-video */
    flex: 1;
    min-width: 300px; /* Ensure it takes space */
    display: flex; /* Center placeholder if needed */
    align-items: center;
    justify-content: center;
}
.ds-room-detail__video-wrapper { /* Replaces .video-container */
    width: 100%;
    max-width: 560px; /* Limit video width */
    aspect-ratio: 16 / 9; /* Maintain 16:9 */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000; /* Placeholder background */
    margin: auto; /* Center if flex container allows */
}
.ds-room-detail__video-placeholder { /* Replaces .video-placeholder */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    transition: background-color 0.3s ease;
}
.ds-room-detail__video-placeholder:hover {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}
.ds-room-detail__video-placeholder i { /* Play icon */
    font-size: 4.5rem;
    color: var(--ds-secondary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.ds-room-detail__video-placeholder:hover i {
    transform: scale(1.1);
    color: var(--ds-primary-light);
}
.ds-room-detail__video-placeholder span { /* "Watch Trailer" text */
    font-family: 'Orbitron', sans-serif;
    color: white;
    font-size: 1rem;
}
.ds-room-detail__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* --- NEW: Room Poster Styles (Temporary Replacement for Video) --- */
.ds-room-detail__poster-area {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0; /* Add some vertical space */
}

.ds-room-detail__poster-image {
    width: 100%;
    max-width: 400px; /* Adjust max-width as needed for your poster size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ds-glass-effect);
    object-fit: cover;
}
.ds-room-detail__actions-footer { /* Replaces .room-footer */
    padding: 25px 30px;
    background: rgba(0,0,0,0.2); /* Slightly more subtle */
    border-top: 1px solid var(--ds-glass-effect);
    text-align: center;
}
/* .ds-btn--primary for booking button is in main.css */


/* CTA Section on Rooms Page */
.ds-section--rooms-cta { /* Replaces .cta-section */
    text-align: center;
    /* padding, background from .ds-section */
    /* ::before overlay from .ds-section if needed, or add specific one */
}
.ds-rooms-cta__content { /* Replaces .cta-content */
    position: relative;
    z-index: 2; /* Above potential overlay */
}
.ds-rooms-cta__title { /* Replaces h2 in .cta-content */
    font-size: 2.3rem; /* Example size */
    margin-bottom: 20px;
}
.ds-rooms-cta__subtitle { /* Replaces p in .cta-content */
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 35px;
    color: var(--ds-gray-text);
}
.ds-rooms-cta__buttons-container { /* Replaces .cta-buttons-container */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
/* .ds-btn--primary and .ds-btn--outline (was .cta-button-secondary) styles are in main.css */


/* Responsive adjustments for Rooms page */
@media (max-width: 1024px) {
    .ds-room-detail__banner {
        height: 300px;
        padding: 20px;
    }
    .ds-room-detail__name {
        font-size: 2rem;
    }
    .ds-room-detail__features-list {
        grid-template-columns: repeat(1, 4fr); /* 每行4個項目 */
        /* 如果希望項目固定寬度，而不是填滿，可以使用：
           grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
           然後限制最大欄數，或者讓它自然流動，但可能不會剛好是4個。
           對於精確的4欄，repeat(4, 1fr) 更好。
        */
    }
}

@media (max-width: 768px) {
    .ds-section--rooms-hero .ds-hero__title {
        font-size: 2.5rem;
    }
    .ds-room-detail__banner {
        height: auto;
        min-height: 200px; /* Ensure some height */
        padding: 15px;
    }
    .ds-room-detail__name {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }
    .ds-room-detail__badges {
        gap: 8px;
    }
    .ds-room-detail__badge,
    .ds-room-detail__difficulty {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .ds-room-detail__difficulty-bar-track {
        width: 60px;
        height: 8px;
    }
    .ds-room-detail__main-content {
        padding: 20px;
        gap: 25px;
    }
    .ds-room-detail__story-area,
    .ds-room-detail__video-area
    .ds-room-detail__poster-area {
        min-width: 100%; /* Stack them */
    }
    .ds-room-detail__features-list {
        grid-template-columns: repeat(2, 1fr); /* 每行2個項目 */
    }
    .ds-rooms-cta__title {
        font-size: 2rem;
    }
    .ds-rooms-cta__buttons-container {
        flex-direction: column;
        align-items: center;
    }
    .ds-rooms-cta__buttons-container .ds-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .ds-section--rooms-hero .ds-hero__title {
        font-size: 2rem;
    }
    .ds-room-detail__name {
        font-size: 1.5rem;
    }
    .ds-room-detail__badge,
    .ds-room-detail__difficulty {
        font-size: 0.75rem;
    }
    .ds-room-detail__video-placeholder i {
        font-size: 3.5rem;
    }
    .ds-room-detail__video-placeholder span {
        font-size: 0.9rem;
    }
}