/**
 * WPMaven Articles Styles
 * Additional styles for article pages, category indexes, and main hub
 */

/* Reset base font-size */
html {
    font-size: 16px;
}

html *,
html *::before,
html *::after {
    box-sizing: border-box;
}

/* ====================================
   Article Navigation Header
   ==================================== */
header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f0f0f;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
    margin-right: 3rem;
    flex-shrink: 0;
}

.navbar .logo:hover {
    color: #667eea;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a:not(.nav-cta) {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: #0f0f0f;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #0f0f0f;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Navigation CTA Button */
.nav-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-cta:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */

/* ====================================
   Breadcrumb Navigation
   ==================================== */
.breadcrumb-nav {
    padding: 1rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb li[aria-current="page"] {
    color: #495057;
    font-weight: 500;
}

/* ====================================
   Article Header
   ==================================== */
.article-header {
    max-width: 800px;
    margin: 3rem auto 2rem;
    text-align: center;
}

.article-category-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.article-category-badge a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #007bff;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.article-category-badge a:hover {
    background: #0056b3;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #212529;
}

.article-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6c757d;
    margin: 0 0 2rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    transition: color 0.2s;
}

.author-name:hover {
    color: #007bff;
}

.article-meta-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-separator {
    color: #dee2e6;
}

.social-share {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    color: white;
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

/* ====================================
   Article Featured Image
   ==================================== */
.article-featured-image {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-credit {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    font-size: 0.8125rem;
    color: #6c757d;
    text-align: center;
    margin: 0;
}

.image-credit a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.image-credit a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* ====================================
   Article Content
   ==================================== */
.article-content {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.table-of-contents {
    position: sticky;
    top: 2rem;
    align-self: start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.table-of-contents h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #212529;
}

.table-of-contents nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents nav li {
    margin-bottom: 0.5rem;
}

.table-of-contents nav li.toc-subsection {
    margin-left: 1rem;
    font-size: 0.875rem;
}

.table-of-contents nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.25rem 0;
}

.table-of-contents nav a:hover {
    color: #007bff;
}

.article-body {
    max-width: 800px;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: #212529;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #212529;
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #495057;
    margin: 0 0 1.5rem;
}

.article-body ul,
.article-body ol {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #495057;
    margin: 0 0 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-body pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 1.5rem;
}

.article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
}

.article-body blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.article-cta p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.article-cta .cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.article-cta .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.article-cta .cta-button:hover::before {
    left: 100%;
}

.article-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.article-cta .cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Generic CTA Button (for newsletter sections, etc.) */
.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* ====================================
   Article Tags
   ==================================== */
.article-tags {
    max-width: 800px;
    margin: 2rem auto;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.tags-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #f8f9fa;
    color: #495057;
    border-radius: 16px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.tag:hover {
    background: #e9ecef;
    color: #212529;
}

/* ====================================
   Author Bio
   ==================================== */
.author-bio {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.author-bio p {
    color: #6c757d;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.author-bio-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.author-bio-link:hover {
    text-decoration: underline;
}

/* ====================================
   Article Sources
   ==================================== */
.article-sources {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.article-sources h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: #212529;
}

.article-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sources li {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.article-sources li:last-child {
    margin-bottom: 0;
}

.article-sources a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.article-sources a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ====================================
   Related Articles
   ==================================== */
.related-articles {
    padding: 4rem 0;
    background: #f8f9fa;
}

.related-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
}

.related-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #007bff;
    color: white;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.related-article-content h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: #212529;
}

.related-article-content p {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ====================================
   Reading Progress Bar
   ==================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 1000;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #667eea 100%);
    width: 0;
    transition: width 0.1s ease;
}

/* ====================================
   Category Pages
   ==================================== */
.category-header {
    text-align: center;
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.category-header h1 {
    font-size: 3rem;
    margin: 0 0 1rem;
}

.category-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.rss-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.rss-link:hover {
    background: white;
    color: #667eea;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.article-card h2 {
    font-size: 1.375rem;
    margin: 0 0 0.75rem;
    color: #212529;
    line-height: 1.3;
}

.article-card-excerpt {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.article-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* ====================================
   Pagination
   ==================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
}

.pagination-link {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-link:hover {
    border-color: #007bff;
    color: #007bff;
}

.pagination-info {
    color: #6c757d;
}

/* ====================================
   Newsletter CTA
   ==================================== */
.newsletter-cta {
    text-align: center;
    padding: 4rem 0;
    background: white;
}

.newsletter-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ====================================
   Articles Hub
   ==================================== */
.articles-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.articles-hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0 0 2rem;
}

.article-search {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.article-search button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #667eea;
    transition: background 0.2s;
}

.article-search button:hover {
    background: #f8f9fa;
}

.categories-section {
    padding: 4rem 0;
}

.categories-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    color: #212529;
}

.category-card p {
    color: #6c757d;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-articles {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.featured-article-card:hover {
    transform: translateY(-4px);
}

.featured-article-card a {
    text-decoration: none;
    color: inherit;
}

.featured-article-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #ffc107;
    color: #212529;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.featured-article-content {
    padding: 1.5rem;
}

.featured-article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #007bff;
    color: white;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.featured-article-content h3 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.featured-article-excerpt {
    color: #6c757d;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.featured-article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.latest-articles {
    padding: 4rem 0;
}

.latest-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.view-all-button:hover {
    background: #0056b3;
}

/* ====================================
   Copy Code Button
   ==================================== */
.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: rgba(255,255,255,0.2);
}

.copy-code-btn.copied {
    background: #28a745;
    border-color: #28a745;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 992px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: static;
        max-height: none;
    }

    .article-title {
        font-size: 2rem;
    }

    .category-header h1,
    .articles-hero h1 {
        font-size: 2.5rem;
    }
}

        /* Footer Styles */
footer .container {
    max-width: 1440px;
}

footer {
    background: var(--color-text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s cubic-bezier(0.72, 0, 0.12, 1);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-brand {
    padding-right: 24px;
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    margin-left: 0;
    display: block;
    position: static;
    transform: none;
    opacity: 1;
    animation: none;
    letter-spacing: normal;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s cubic-bezier(0.72, 0, 0.12, 1);
}

.footer-social a:hover {
    background: #fbbf24;
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s cubic-bezier(0.72, 0, 0.12, 1);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Mobile Responsive - Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}
