/* ========================================================== */
/* ============== FILE: css/camdia.css ====================== */
/* ========================================================== */

/* --- KHUNG CHÍNH TOÀN MÀN HÌNH --- */
.cd-fullscreen-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0a09;
    background-image: url('../assets/chua.jpg'); /* Thêm ảnh nền riêng */
    background-size: cover;
    background-position: center;
    z-index: 150;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.cd-fullscreen-panel.show {
    opacity: 1;
    visibility: visible;
}

/* --- HEADER --- */
.cd-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.6));
    border-bottom: 1px solid #4d3c2a;
    flex-shrink: 0;
}

.cd-main-title {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    color: #57A6D8; /* Màu xanh của bí cảnh */
    font-size: 1.6em;
    text-shadow: 0 0 8px rgba(87, 166, 216, 0.5);
}

/* --- KHUNG NỘI DUNG --- */
.cd-content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    text-align: center;
}


.cd-subtitle {
    font-style: italic;
    color: #d1d9e6; /* Đổi màu sáng và rõ hơn một chút */
    margin: 0 0 10px 0;
    font-size: 1.1em; /* Tăng nhẹ kích thước */
    /* Thêm text-shadow để chữ có viền đen mờ, nổi bật trên mọi nền */
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.9);
}

.cd-description {
    color: #b5b5b5; /* Đổi màu xám sáng hơn */
    margin-bottom: 30px;
    /* Thêm text-shadow tương tự */
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.9);
}
/* --- LƯỚI HIỂN THỊ CÁC CẤM ĐỊA --- */
.cd-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cd-item {
    background: rgba(10, 20, 30, 0.6);
    border: 1px solid #2a3c4d;
    border-radius: 6px;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInItem 0.5s forwards;
}

.cd-item:hover {
    background: rgba(20, 40, 60, 0.8);
    border-color: #57A6D8;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(87, 166, 216, 0.2);
}

/* Animation cho từng item */
@keyframes fadeInItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cd-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cd-item-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #e0e0e0;
}

.cd-item-name i {
    margin-right: 10px;
    color: #ffc107;
}

.cd-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.cd-tag.hung-dia {
    background-color: #982c2c;
    color: #ffc6c6;
    border: 1px solid #ff5252;
}

.cd-tag.thanh-dia {
    background-color: #2c7a6b;
    color: #c6fff2;
    border: 1px solid #52ffd7;
}

.cd-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9em;
    padding-left: 25px;
    border-left: 2px solid rgba(87, 166, 216, 0.2);
}

.cd-item-details p {
    margin: 0;
    color: #b0c4de;
}

.cd-item-details i {
    margin-right: 8px;
    width: 16px; /* Căn chỉnh icon */
}

/* Màu sắc cho từng loại thông tin */
.cd-fee i { color: #ffd700; } /* Phí */
.cd-reward i { color: #63ff8c; } /* Phần thưởng */
.cd-danger i { color: #ff6b6b; } /* Nguy hiểm */
.cd-rule i { color: #85e0ff; } /* Quy tắc */

.cd-item-description {
    margin-top: 15px;
    font-size: 0.85em;
    color: #8899aa;
    font-style: italic;
    padding-top: 10px;
    border-top: 1px dashed rgba(87, 166, 216, 0.2);
}


/* ========================================================== */
/* ============== CẤM ĐỊA =============== */
/* ========================================================== */

/* --- POPUP XÁC NHẬN --- */
.exp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 250;
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.exp-modal-content {
    background: radial-gradient(circle, #3a312c 0%, #1e1a18 70%);
    border: 1px solid #a47d2b;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 25px rgba(228, 176, 79, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.exp-modal-overlay.show .exp-modal-content {
    transform: scale(1);
    opacity: 1;
}

#exp-modal-title {
    font-family: 'Cinzel', serif;
    color: #E4B83A;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(228, 176, 79, 0.5);
}

#exp-modal-body {
    color: #d1d9e6;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

#exp-modal-body strong {
    color: #ffd700;
}

.exp-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.exp-modal-btn {
    padding: 10px 25px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
    max-width: 150px;
}

#exp-modal-confirm-btn {
    background: linear-gradient(180deg, #a43a19 0%, #7d260c 100%);
    border-color: #ff9d72;
    color: white;
}

#exp-modal-confirm-btn:hover {
    box-shadow: 0 0 15px #ff9d72;
}

#exp-modal-cancel-btn {
    background: linear-gradient(180deg, #5a4a3a 0%, #3e3228 100%);
    border-color: #c8a86c;
    color: #f0e0c8;
}

#exp-modal-cancel-btn:hover {
     background: linear-gradient(180deg, #6c5844 0%, #5a4a3a 100%);
}

/* --- KHUNG KHÁM PHÁ CẤM ĐỊA --- */
.exp-fullscreen-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0a09;
    background-image: url('../assets/chua.jpg');
    background-size: cover;
    background-position: center;
    z-index: 190;
    display: none; /* Dùng display thay vì visibility để tránh xung đột */
    flex-direction: column;
    color: #e0e0e0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.exp-fullscreen-panel.show {
    display: flex;
    opacity: 1;
}

.exp-header {
    flex-shrink: 0;
    padding: 10px 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.95), rgba(15, 15, 15, 0.7));
    border-bottom: 1px solid #4d3c2a;
}
.exp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.exp-main-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    color: #E48F45;
}

.exp-leave-btn {
    color: #ff8a80;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid #ff8a80;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.exp-leave-btn:hover {
    background: #ff8a80;
    color: black;
}

.exp-status-line {
    font-size: 1.1em;
    color: #57A6D8;
    text-shadow: 0 0 8px rgba(87, 166, 216, 0.5);
}
.exp-status-line strong {
    color: #E4B83A;
}

/* --- KHU VỰC TAB --- */
.exp-tab-nav {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 0 20px;
}
.exp-tab-btn {
    padding: 12px 25px;
    cursor: pointer;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.exp-tab-btn.active {
    color: #57A6D8;
    border-bottom-color: #57A6D8;
}

/* --- KHUNG NỘI DUNG CHÍNH --- */
.exp-content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.exp-tab-content {
    display: none; /* Ẩn tất cả nội dung tab */
}
.exp-tab-content.active {
    display: block; /* Chỉ hiện tab active */
}

/* Nội dung tab Thông Tin (Log) */
#exp-content-info .log-entry {
    color: #b5b5b5;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 2px solid rgba(87, 166, 216, 0.2);
    animation: fadeInLog 0.5s ease;
}

#exp-content-info .log-entry i {
    margin-right: 8px;
    color: #85e0ff;
}

#exp-content-info .log-reward {
    color: #63ff8c;
}
#exp-content-info .log-reward i {
    color: #ffd700;
}

@keyframes fadeInLog {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nội dung tab Quy Tắc */
#exp-content-rules {
    color: #b0c4de;
    font-size: 1.1em;
    line-height: 1.7;
    background: rgba(10, 20, 30, 0.4);
    border: 1px solid #2a3c4d;
    padding: 20px;
    border-radius: 6px;
}


/* Thêm vào cuối file css/camdia.css */

.cd-item-details .cd-limit {
    color: #ffd700; /* Màu vàng cho chữ */
}

.cd-item-details .cd-limit i {
    color: #ffd700; /* Giữ icon cùng màu */
}

.cd-item-details .cd-limit.locked {
    color: #ff6b6b; /* Màu đỏ cho trạng thái bị khóa */
    font-weight: bold;
}

.cd-item.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(40, 40, 40, 0.7);
}

.cd-item.locked:hover {
    transform: none;
    border-color: #2a3c4d;
    box-shadow: none;
}