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

/* Modern Theme Variables */
.theme-modern {
    --primary-color: #03a87c;
    --primary-hover: #028a68;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: rgba(3, 168, 124, 0.05);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Modern Navigation Styles */
.theme-modern .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.theme-modern .navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.4rem;
}

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

.theme-modern .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--bg-accent);
}

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

.theme-modern .container {
    max-width: 1200px;
}

/* Modern Card Styles */
.theme-modern .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    background: var(--bg-primary);
}

.theme-modern .card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.theme-modern .card-body {
    padding: 1.5rem;
}

/* Modern Typography */
.theme-modern h1, 
.theme-modern h2, 
.theme-modern h3, 
.theme-modern h4, 
.theme-modern h5, 
.theme-modern h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.theme-modern .display-4 {
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.theme-modern p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

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

/* Modern Button Styles */
.theme-modern .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-modern .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

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

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

/* Modern Post/Article Styles */
.theme-modern .article-post {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.theme-modern .article-post h1,
.theme-modern .article-post h2,
.theme-modern .article-post h3,
.theme-modern .article-post h4,
.theme-modern .article-post h5,
.theme-modern .article-post h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

/* Modern Code Styles */
.theme-modern pre {
    background: #1e1e1e;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.theme-modern code {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.theme-modern pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

/* Modern Sidebar Styles */
.theme-modern .sidebar {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

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

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

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

/* Modern Table Styles */
.theme-modern table {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.theme-modern table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

/* Modern Alert Styles */
.theme-modern .alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-light);
}

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

/* Modern TOC Styles */
.theme-modern #table-of-contents {
    border-top: 2px solid var(--primary-color);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

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

.theme-modern #table-of-contents a:hover {
    background: var(--bg-accent);
    color: var(--primary-color);
    transform: translateX(4px);
}

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