/* =========================================
   AequiLex About Us Styles
   File: css/about.css (Dark Mode Ready)
   ========================================= */

/* 1. 基礎佈局 (配合 Common Sidebar) */
.main-content {
    margin-left: var(--sidebar-width, 260px);
    padding-top: 00px;
    transition: margin-left 0.3s ease;
    
    background-color: var(--bg-primary); /* 使用變數 */
    color: var(--text-primary);          /* 使用變數 */
    overflow-y: auto;
    display: block;
    height: 100vh;
    position: relative;

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); border-radius: 4px; }

/* 2. 語言切換按鈕 (與 Terms 統一) */
.lang-switcher-container {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted); /* 使用變數 */
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.lang-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.lang-divider {
    color: var(--border);
    font-size: 12px;
    margin: 0 2px;
}

/* 3. 內容容器 */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
    min-height: 100%; /* 確保內容少時也能撐開 */
}

/* 4. Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 40px;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light); /* 使用變數 */
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* 5. 通用 Section 樣式 */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* 裝飾線 */
.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--accent);
    margin-right: 12px;
    border-radius: 3px;
}

.section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 50px;
    text-align: justify;
}

/* 6. 教學步驟 (Grid Layout) */
.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.step {
    background-color: var(--bg-card); /* 使用變數 */
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--accent);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 7. 聯絡區塊 */
.about-contact {
    background-color: var(--bg-hover);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 50px;
    border-left: 4px solid var(--accent);
}

.about-contact .section-title {
    margin-bottom: 10px;
}
.about-contact .section-text {
    margin-bottom: 0;
}

/* 8. CTA 按鈕 */
.about-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* 9. 響應式設計 */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }

    .lang-switcher-container {
        top: 75px;
        right: 20px;
    }

    .about-title { font-size: 2.2rem; }
    .section-title { font-size: 1.5rem; }
    
    .tutorial-steps {
        grid-template-columns: 1fr;
    }
}

/* Sidebar 收起時 (Desktop) */
body.collapsed-mode .main-content {
    margin-left: var(--sidebar-collapsed-width, 72px);
}

/* css/about.css - 加在最後面 */

.step, .about-hero, .about-mission, .about-team {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 設定不同的延遲，製造流水式效果 */
.about-hero { animation-delay: 0.1s; }
.about-mission { animation-delay: 0.2s; }
.about-team { animation-delay: 0.3s; }

/* 教學步驟逐個彈出 */
.step:nth-child(1) { animation-delay: 0.4s; }
.step:nth-child(2) { animation-delay: 0.5s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.7s; }
.step:nth-child(5) { animation-delay: 0.8s; }