/*!
 * Classic Theme Styles for Cuizhanming.com
 * Global styling for classic theme across all pages except CV
 */

/* Classic Theme Variables */
.theme-classic {
    --primary-color: #6c757d;
    --primary-hover: #545b62;
    --secondary-color: #03a87c;
    --accent-color: #495057;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: rgba(108, 117, 125, 0.05);
    --border-color: rgba(0, 0, 0, 0.125);
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 4px;
    --transition: all 0.2s ease;
}

/* Classic Navigation Styles */
.theme-classic .navbar {
    background: var(--bg-primary) !important;
    border-bottom: 2px solid var(--border-color);
    box-shadow: none;
}

.theme-classic .navbar-brand {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 1.3rem;
}

.theme-classic .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 400;
    padding: 0.75rem 1rem !important;
    border-radius: 0;
    transition: var(--transition);
}

.theme-classic .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

/* Classic Content Styles */
.theme-classic .site-content {
    background: var(--bg-primary);
}

.theme-classic .container {
    max-width: 1140px;
}

/* Classic Card Styles */
.theme-classic .card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: var(--transition);
    background: var(--bg-primary);
}

.theme-classic .card:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.theme-classic .card-body {
    padding: 1.25rem;
}

/* Classic Typography */
.theme-classic h1, 
.theme-classic h2, 
.theme-classic h3, 
.theme-classic h4, 
.theme-classic h5, 
.theme-classic h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.theme-classic .display-4 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
}

.theme-classic p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.theme-classic .text-muted {
    color: var(--text-light) !important;
}

/* Classic Button Styles */
.theme-classic .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-classic .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.theme-classic .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.theme-classic .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Classic Post/Article Styles */
.theme-classic .article-post {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.theme-classic .article-post h1,
.theme-classic .article-post h2,
.theme-classic .article-post h3,
.theme-classic .article-post h4,
.theme-classic .article-post h5,
.theme-classic .article-post h6 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.theme-classic .article-post h1:first-child,
.theme-classic .article-post h2:first-child,
.theme-classic .article-post h3:first-child {
    margin-top: 0;
}

/* Classic Code Styles */
.theme-classic pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
}

.theme-classic code {
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

.theme-classic pre code {
    background: transparent;
    color: var(--text-dark);
    padding: 0;
    border: none;
}

/* Classic Sidebar Styles */
.theme-classic .sidebar {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.theme-classic .sidebar h5 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Classic Footer Styles */
.theme-classic footer {
    background: var(--bg-secondary) !important;
    border-top: 2px solid var(--border-color);
    color: var(--text-light);
}

/* Classic Link Styles */
.theme-classic a {
    color: var(--secondary-color);
}

.theme-classic a:hover {
    color: var(--primary-color);
}

.theme-classic .text-dark:hover {
    color: var(--primary-color) !important;
}

/* Classic List Styles */
.theme-classic ul, 
.theme-classic ol {
    margin-bottom: 1rem;
}

.theme-classic li {
    margin-bottom: 0.25rem;
}

/* Classic Responsive Adjustments */
@media (max-width: 768px) {
    .theme-classic .article-post {
        padding: 1.25rem;
    }
    
    .theme-classic .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Classic Table Styles */
.theme-classic table {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.theme-classic table th {
    background: var(--bg-secondary);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.theme-classic table td {
    border-top: 1px solid var(--border-color);
}

/* Classic Alert Styles */
.theme-classic .alert {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.theme-classic .alert-primary {
    background: var(--bg-accent);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Classic Blockquote Styles */
.theme-classic blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Classic Form Styles */
.theme-classic .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-classic .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Classic TOC Styles */
.theme-classic #table-of-contents {
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.theme-classic #table-of-contents a {
    color: var(--text-light);
    font-weight: 400;
    border-radius: var(--border-radius);
}

.theme-classic #table-of-contents a:hover {
    background: var(--bg-secondary);
    color: var(--secondary-color);
}

.theme-classic #table-of-contents > ul > li > a {
    font-weight: 500;
    color: var(--text-dark);
}