﻿/* /Content/opening-diagram.css (v3) */

/* --- 靜態圖表容器 --- */
.static-diagram-container {
    max-width: 600px;
    margin: 10px auto 10px auto; /* 上下邊距 */
    min-height: 250px; /* 給予一個最小高度 */
}

/* --- 輪播模式容器 (保留以備將來使用) --- */
.diagram-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 420px; /* Increased height to accommodate more description text */
    overflow: hidden;
}

/* --- 共用 Slide 樣式 --- */
.diagram-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Changed to flex-start to align content at the top for longer descriptions */
    justify-content: center;
    gap: 20px;
    padding-left: 40px;
    box-sizing: border-box;
    opacity: 0; /* 預設隱藏 */
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .diagram-slide.active {
        opacity: 1;
        visibility: visible;
    }

/* --- 輪播模式下的絕對定位 --- */
.diagram-carousel .diagram-slide {
    position: absolute;
    top: 0;
    left: 0;
}

/* --- 市場結構圖與內部元素 (與前版相同) --- */
.day-structure {
    position: relative;
    width: 150px;
    height: 250px; /* 靜態圖可以小一點 */
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    padding: 0 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.price-level {
    width: 100%;
    height: 1px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.tpo-bar {
    height: 80%;
    background-color: #e0e7ff;
    border-left: 2px solid #a5b4fc;
    transition: width 0.5s ease;
}

    .tpo-bar.in-va {
        background-color: #d1fae5;
        border-left-color: #6ee7b7;
    }

.opening-marker {
    position: absolute;
    left: -35px;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.diagram-description {
    flex: 1;
    /* Added some padding to the description area for better spacing */
    padding: 10px 0;
}

    .diagram-description h5 {
        margin-top: 0;
        color: var(--primary-color);
        font-size: 1.2em; /* Made title slightly larger for prominence */
        margin-bottom: 15px; /* Added space below title */
    }

    /* Styles for the new list elements */
    .diagram-description p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 10px; /* Space after intro paragraph */
    }

    .diagram-description ul {
        list-style: none; /* Remove default bullet points */
        padding-left: 0; /* Remove default padding */
        margin-top: 0; /* Align with description text */
    }

    .diagram-description li {
        margin-bottom: 8px; /* Space between list items */
        padding-left: 20px; /* Indent list items */
        position: relative;
        line-height: 1.6;
        font-size: 0.95rem; /* Slightly smaller font for list items */
    }

        .diagram-description li::before {
            content: '•'; /* Custom bullet point */
            color: var(--primary-color); /* Match accent color */
            position: absolute;
            left: 0;
            top: 0;
            font-weight: bold;
        }


/* --- 輪播點 (保留樣式，但靜態模式下不會生成) --- */
.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .dot.active {
        background-color: var(--primary-color);
    }
