/* Table of Content Styles */
.xd-toc-container {
    background: #FAFAFA;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: inline-block;
    min-width: 50%;
    max-width: 100%;
}

.xd-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.xd-toc-title {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.xd-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
}

.xd-toc-toggle:hover {
    background: #f0f0f0;
}

.xd-toc-toggle svg {
    width: 18px;
    height: 18px;
}

.xd-toc-list {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    overflow: hidden;
}

.xd-toc-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
}

.xd-toc-list li {
    margin-bottom: 8px !important;
    line-height: 1.6;
}

.xd-toc-list li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.xd-toc-list li a:hover {
    color: #000;
    text-decoration: underline;
}

/* Level indentations */
.xd-toc-level-2 { margin-left: 0px !important; }
.xd-toc-level-3 { margin-left: 20px !important; }
.xd-toc-level-4 { margin-left: 40px !important; }
.xd-toc-level-5 { margin-left: 60px !important; }
.xd-toc-level-6 { margin-left: 80px !important; }

/* Template Simulator Styles */
.lexus-xd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.lexus-xd-header {
    text-align: center;
    margin-bottom: 40px;
}

.lexus-xd-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.lexus-xd-title {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.lexus-xd-meta {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lexus-xd-meta::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #111;
    margin: 0 auto 15px;
}

.lexus-xd-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.lexus-xd-content h2,
.lexus-xd-content h3 {
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Archive Grid */
.lexus-xd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.lexus-xd-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.lexus-xd-post-card:hover {
    transform: translateY(-5px);
}

.lexus-xd-post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.lexus-xd-post-card-body {
    padding: 20px;
}

.lexus-xd-post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.lexus-xd-post-card-title a {
    color: #111;
    text-decoration: none;
}

.lexus-xd-post-card-meta {
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .lexus-xd-title {
        font-size: 28px;
    }
}
