/* ==========================================================================
   SEO COMPONENTS STYLES - Professional Design v2.0
   ========================================================================== */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --border-color: #dee2e6;
    --accent-primary: #001a2c;
    --accent-secondary: #0056b3;
    --border-radius: 0.5rem;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    --bg-primary: #0f1115;
    --bg-secondary: #1a1d23;
    --bg-tertiary: #252931;
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-tertiary: #adb5bd;
    --border-color: #343a40;
    --accent-primary: #5dade2;
    --accent-secondary: #3498db;
}

[data-theme="solar"] {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-tertiary: #1a3350;
    --text-primary: #e6f1ff;
    --text-secondary: #ccd6f6;
    --text-tertiary: #8892b0;
    --border-color: #233554;
    --accent-primary: #ffd700;
    --accent-secondary: #ffa500;
}

/* ==========================================================================
   Professional Breadcrumb Styles
   ========================================================================== */

.seo-breadcrumb {
    background: linear-gradient(to right, var(--bg-secondary), var(--bg-primary));
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: var(--transition);
    background: rgba(0,0,0,0.03);
}

.breadcrumb-item a:hover {
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
}

.breadcrumb-item span {
    color: var(--text-tertiary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* ==========================================================================
   Professional Related Resources Styles
   ========================================================================== */

.related-resources-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.related-resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.related-resources-title {
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.related-resources-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.related-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.related-resource-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.related-resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.related-resource-card:hover::before {
    opacity: 1;
}

.related-resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-resource-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-resource-title a:hover {
    color: var(--accent-primary);
}

.related-resource-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.related-resource-link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.related-resource-link:hover {
    text-decoration: underline;
    gap: 0.5rem;
}

.related-resource-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.related-resource-link:hover::after {
    transform: translateX(4px);
}


/* ==========================================================================
   ENHANCED PROFESSIONAL FOOTER STYLES
   ========================================================================== */

.seo-enhanced-footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}

.seo-enhanced-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section {
    position: relative;
}

.footer-section-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-secondary);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-item {
    margin-bottom: 0.75rem;
}

.footer-link-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.footer-link-item a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-link-item a::before {
    content: '→';
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link-item a:hover::before {
    opacity: 1;
}

.footer-link-item a[rel="dofollow"] {
    position: relative;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    margin: 0 -1.5rem;
    padding: 2rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.2s ease;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .related-resources-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.85rem;
    }
    
    .related-resources-title {
        font-size: 1.75rem;
    }
    
    .seo-breadcrumb {
        padding: 0.75rem 0;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .seo-breadcrumb,
    .related-resources-section,
    .seo-enhanced-footer {
        display: none !important;
    }
}
/* ==========================================================================
   SEO Content Classes - Hub & Article Page Styles
   Classes: .quick-answer, .feature-list, .faq, .byline
   ========================================================================== */

.quick-answer {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
}
.quick-answer::before {
    content: '';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}
.feature-list li {
    padding: 0.75rem 1rem 0.75rem 2.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    line-height: 1.4;
}
.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.faq {
    margin: 2rem 0;
}
.faq h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.faq details {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.faq details:first-of-type {
    border-top: 1px solid var(--border-color);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-primary);
    margin-left: 0.75rem;
    flex-shrink: 0;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p {
    padding: 0.75rem 0 0.25rem 0;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.byline {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0.5rem 0 2rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.byline a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }

.seo-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .seo-content-section {
        padding: 3rem 2rem;
    }
}

.seo-content-section > h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.seo-content-section > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .feature-list { grid-template-columns: 1fr; }
    .seo-content-section > h1 { font-size: 1.75rem; }
    .quick-answer { padding: 1rem 1.25rem; font-size: 0.95rem; }
    .faq h2 { font-size: 1.3rem; }
    .faq summary { font-size: 0.95rem; }
}

/* ==========================================================================
   Social Media Footer Icons
   ========================================================================== */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 20px 20px 10px;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--sidebar-text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--ui-highlight);
    transform: translateY(-2px);
}


/* ==========================================================================
   THEME-AWARE LINK COLORS (all tool pages)
   ========================================================================== */

/* Light theme fallback (default) */
a {
  color: #0066cc;
}

/* Dark theme – bright readable blue */
[data-theme="dark"] a {
  color: #5dade2;
}

/* Solar theme – gold, matches the solar palette */
[data-theme="solar"] a {
  color: #ffd700;
}

/* Keep navigation links untouched – they already have their own styles */
header a,
.sidebar a,
.nav-link,
.breadcrumb-nav a,
.legal-links a,
.footer a {
  /* inherited or already styled – reset so the above doesn't override them */
  color: inherit;
}

/* Restore footer and legal link colors */
.footer a {
  color: var(--text-secondary);
}
.legal-links a {
  color: var(--link-color); /* or use --accent-secondary if available */
}

/* Hover state */
a:hover {
  text-decoration: underline;
  opacity: 0.9;
}