/**
 * LeleBlog文章布局切换器样式
 */

/* 布局切换器容器 */
.article-layout-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-layout-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
    margin: 0;
}

.article-layout-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.article-layout-switch {
    display: flex;
    align-items: center;
}

.switch-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 10px;
    display: none;
}

.switch-buttons {
    display: flex;
    background-color: var(--hover-bg);
    border-radius: 20px;
    padding: 3px;
}

.switch-buttons button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.switch-buttons button:hover {
    color: var(--primary-color);
    background-color: var(--primary-lighter);
}

.switch-buttons button.active {
    color: white;
    background-color: var(--primary-color);
}

/* 暗黑模式适配 */
[data-theme="dark"] .article-layout-container {
    background-color: var(--bg-white);
}

[data-theme="dark"] .switch-buttons {
    background-color: var(--hover-bg);
}

[data-theme="dark"] .switch-buttons button {
    color: var(--text-muted);
}

[data-theme="dark"] .switch-buttons button:hover {
    color: white;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .article-layout-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .article-layout-title {
        margin-bottom: 15px;
    }
    
    .article-layout-switch {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .article-layout-switch {
        justify-content: center;
    }
    
    .switch-label {
        display: inline-block;
    }
    
    .article-layout-title {
        font-size: 16px;
        width: 100%;
        text-align: center;
        padding-left: 0;
    }
    
    .article-layout-title::before {
        display: none;
    }
}

.article-layout-switch .reset-layout {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.article-layout-switch .reset-layout:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.article-layout-switch .reset-layout i {
    font-size: 14px;
} 