/* Dark Theme (Default) - Black Background with Yellow Accents */
:root {
    --primary-color: #f7b041;
    --secondary-color: #f9c66b;
    --accent-color: #f7b041;
    --bg-color: #131416;
    --bg-lighter: #1d1f21;
    --bg-circuit: #131416;
    --text-color: #eaebec;
    --text-muted: #b4b9bc;
    --border-color: #1d1f21;
    --card-bg: #131416;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --nav-bg: #131416;
    --nav-bg-blur: rgba(19, 20, 22, 0.95);
    --footer-bg: #131416;
    --export-button-bg: #f7b041;
    --export-button-color: #000000;
    --export-button-hover: #f9c66b;
    --export-button-hover-color: #000000;
    --button-bg: rgba(29, 31, 33, 0.8);
    --button-hover-bg: rgba(29, 31, 33, 1);
    --on-primary-color: #000000;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1400px;
    --header-height: auto;
    --content-width: 900px;
    --nav-height: 72px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --primary-color: #0b86d1;
    --secondary-color: #3da3e0;
    --accent-color: #0b86d1;
    --bg-color: #ffffff;
    --bg-lighter: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8f9fa;
    --export-button-bg: #0b86d1;
    --export-button-color: #ffffff;
    --export-button-hover: #ffffff;
    --export-button-hover-color: #333333;
    --button-bg: rgba(255, 255, 255, 0.8);
    --button-hover-bg: rgba(248, 249, 250, 0.9);
    --on-primary-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent flash of unstyled images - ensure all images respect container size */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(247, 176, 65, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(247, 176, 65, 0.03) 0%, transparent 25%),
        linear-gradient(90deg, transparent 49%, rgba(247, 176, 65, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(247, 176, 65, 0.02) 50%, transparent 51%);
    background-size: 200px 200px, 300px 300px, 50px 50px, 50px 50px;
    background-position: 0 0, 100px 100px, 0 0, 25px 25px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* Light theme background - clean and minimal */
[data-theme="light"] body {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(11, 134, 209, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(11, 134, 209, 0.015) 0%, transparent 25%),
        linear-gradient(90deg, transparent 49%, rgba(11, 134, 209, 0.01) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(11, 134, 209, 0.008) 50%, transparent 51%);
}

/* Navigation Header Styles */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    min-width: 120px;
    max-width: 200px;
    overflow: hidden;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    display: block;
    object-fit: contain;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    margin-left: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-color);
    text-decoration: none;
    background: var(--button-bg);
    border-color: var(--border-color);
}

.nav-link.active {
    color: var(--text-color);
    background: var(--button-hover-bg);
    border-color: var(--border-color);
    font-weight: 500;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--primary-color);
    color: var(--on-primary-color);
    text-decoration: none;
}

.dropdown-link.active {
    background: var(--primary-color);
    color: var(--on-primary-color);
    font-weight: 600;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Buttons */
.nav-button {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-button:hover {
    background: var(--button-hover-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.nav-button.primary {
    background: var(--primary-color);
    color: var(--on-primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.nav-button.primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--on-primary-color);
}

/* Search Button */
.search-button {
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--transition);
    color: var(--text-color);
}

.search-button:hover {
    background: var(--button-hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    background: var(--button-hover-bg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    stroke: var(--text-color);
    stroke-width: 1.5;
    transition: var(--transition);
}

.theme-toggle:hover svg {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

/* Specific styling for sun and moon icons */
.theme-toggle .sun-icon {
    fill: #f7b041;
    stroke: #f7b041;
}

.theme-toggle .moon-icon {
    fill: var(--text-color);
    stroke: var(--text-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle:hover span {
    background: var(--primary-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1em;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-color);
    text-align: center;
    margin-top: 0;
}

h2 {
    font-size: 1.75rem;
    margin: 2em 0 1em;
    padding-bottom: 0.3em;
    border-bottom: none;
    position: relative;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}


h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.8em;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2em;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.6;
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header Styles */
header {
    text-align: left;
    padding: 40px 0 30px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    background: var(--bg-color);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.header-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.powered-by span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.semianalysis-logo {
    height: 30px;
    width: auto;
    max-width: 200px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    object-fit: contain;
}

.semianalysis-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.header-image {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 15px 0 30px;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
}

/* Main Content */
main {
    padding: 0 0 60px;
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin: 0 auto;
}

section {
    margin-bottom: 3rem;
    position: relative;
}

section:last-child {
    margin-bottom: 0;
}

.content-section {
    max-width: var(--content-width);
    margin: 0 auto 3rem;
    position: relative;
    padding: 0;
}

.content-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.8em;
}

.text-center {
    text-align: center;
}

/* Rating Criteria Grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.criterion {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
}



.criterion:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 187, 0.15);
}



.criterion h3 {
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.criterion p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.content-section h2 {
    text-align: left;
    border: none;
    padding-bottom: 0;
    margin: 4rem 0 2rem;
}

.content-section h2::after {
    left: 0;
    transform: none;
}

/* Image Sections */
.rankings,
.providers,
.medals {
    text-align: center;
    margin: 3rem auto;
    max-width: var(--content-width);
}

.rankings h2,
.providers h2,
.medals h2 {
    margin-bottom: 3rem;
    text-align: left;
    border: none;
    padding-bottom: 0;
}

.rankings h2::after,
.providers h2::after,
.medals h2::after {
    left: 0;
    transform: none;
}

.ranking-image,
.providers-image,
.medals-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-color);
}

.ranking-image:hover,
.providers-image:hover,
.medals-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Center images in markdown content */
.markdown-content img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 80vh;
    object-fit: contain;
}

.markdown-content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rankings p,
.providers p,
.medals p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    background-color: var(--footer-bg);
    position: relative;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-header-image {
    width: auto;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.footer-header-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.contact-button-container {
    margin-bottom: 30px;
    text-align: center;
}

.contact-prompt {
    color: var(--text-muted);
    margin-bottom: 15px !important;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.newsletter-blurb {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.newsletter-blurb p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.newsletter-blurb a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.newsletter-blurb a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

.contact-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--on-primary-color) !important;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(247, 176, 65, 0.3);
}

.contact-button:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 187, 0.4);
    text-decoration: none;
}

.contact-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
}

footer p {
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 3rem auto 0;
    font-style: italic;
    max-width: 900px;
    line-height: 1.8;
    padding: 0 20px;
    opacity: 0.7;
    text-align: center;
}

/* Export Button Container */
.export-buttons {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Export Button Styles */
.export-button {
    background: var(--export-button-bg);
    color: var(--export-button-color);
    border: none;
    padding: 10px 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    justify-content: flex-start;
}

.export-button:hover {
    background: var(--export-button-hover);
    color: var(--export-button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.export-button.processing {
    background: #2196F3;
    color: white;
}

.export-button.success {
    background: #4CAF50;
    color: white;
}

.export-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive adjustments for export buttons */
@media (max-width: 768px) {
    .export-buttons {
        top: 70px;
        right: 10px;
    }
    
    .export-button {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 120px;
    }
}

/* Markdown-style content */
.markdown-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 1.5rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.markdown-content h1 {
    font-size: 2.5rem;
    border-bottom: none;
    text-align: center;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text-color);
    margin-top: 0;
}

.markdown-content .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 15px auto 30px;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
}

.markdown-content .powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 0 15px;
}

.markdown-content .powered-by span {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: -5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.markdown-content .semianalysis-logo {
    height: 30px;
    width: auto;
    max-width: 200px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
    object-fit: contain;
}

.markdown-content .semianalysis-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.markdown-content h2 {
    font-size: 1.5rem;
    text-align: center;
}

.markdown-content h3 {
    font-size: 1.25rem;
    border-bottom: none;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    border-bottom: none;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 2rem;
    margin: 1rem 0;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content code {
    background: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

.markdown-content pre {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    position: relative;
}

.markdown-content pre:hover .copy-button {
    opacity: 1;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.copy-button:hover {
    background: var(--secondary-color);
    color: var(--on-primary-color);
}

.copy-button.copied {
    background: #4CAF50;
    color: white;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    color: var(--text-color);
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.markdown-content a:hover {
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.markdown-content th {
    background: var(--card-bg);
    font-weight: 600;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .nav-container {
        padding: 0 2rem;
    }
}

@media (max-width: 1024px) {
    .rating-criteria {
        padding: 3rem 0;
    }
    
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rankings,
    .providers,
    .medals {
        margin: 5rem auto;
        padding: 0;
    }
}

/* Modal Styles */
.criteria-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.criteria-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: var(--bg-lighter);
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.criteria-modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.criteria-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.criteria-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
    margin-right: -1rem;
}

.criteria-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.criteria-item:last-child {
    border-bottom: none;
}

.criteria-item:hover {
    padding-left: 0.5rem;
    color: var(--primary-color);
}

/* Custom scrollbar for modal */
.criteria-list::-webkit-scrollbar {
    width: 6px;
}

.criteria-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.criteria-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.criteria-list::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Animation for modal items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.criteria-item {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Add delay for each item */
.criteria-item:nth-child(1) { animation-delay: 0.1s; }
.criteria-item:nth-child(2) { animation-delay: 0.15s; }
.criteria-item:nth-child(3) { animation-delay: 0.2s; }
.criteria-item:nth-child(4) { animation-delay: 0.25s; }
.criteria-item:nth-child(5) { animation-delay: 0.3s; }
.criteria-item:nth-child(6) { animation-delay: 0.35s; }
.criteria-item:nth-child(7) { animation-delay: 0.4s; }
.criteria-item:nth-child(8) { animation-delay: 0.45s; }
.criteria-item:nth-child(9) { animation-delay: 0.5s; }
.criteria-item:nth-child(10) { animation-delay: 0.55s; }
.criteria-item:nth-child(n+11) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding: 2rem 0;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 0.25rem;
    }
    
    .nav-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .search-button,
    .theme-toggle {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .search-button svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--card-bg);
        border: none;
        border-top: 1px solid var(--border-color);
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-link {
        padding: 1rem;
        font-size: 1rem;
    }
    
    header {
        padding: 3rem 0 1rem;
        margin-bottom: 3rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin: 2.5rem 0 1.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .header-logos {
        gap: 15px;
    }
    
    .header-image {
        max-width: 90%;
    }
    
    .semianalysis-logo {
        height: 25px;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 1.25rem;
    }
    
    .criterion {
        padding: 1.5rem 1.25rem;
    }
    
    .rating-criteria {
        margin: 0 -1.5rem 3rem;
        padding: 2.5rem 1.5rem;
    }
    
    .rankings,
    .providers,
    .medals {
        margin: 4rem auto;
    }
    
    footer {
        margin-top: 4rem;
        padding: 3rem 1.5rem;
    }
    
    .footer-header-image {
        width: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: auto;
    }
    
    .header-logos {
        margin-bottom: 20px;
    }
    
    .header-image {
        max-width: 95%;
    }
    
    .powered-by span {
        font-size: 0.75rem;
    }
    
    .semianalysis-logo {
        height: 20px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    header {
        padding: 3rem 0 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
        margin: 1.8em 0 1em;
    }
    
    h3 {
        font-size: 1.3rem;
        margin: 1.6em 0 0.8em;
    }
    
    .subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .header-image {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .criterion {
        padding: 1.25rem 1rem;
    }
    
    .criterion h3 {
        font-size: 1.15rem;
        padding-left: 18px;
    }
    
    .criterion h3::before {
        width: 6px;
        height: 6px;
        top: 7px;
    }
    
    .criterion p {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 2.5rem 1.25rem;
        margin-top: 4rem;
    }
    
    .footer-header-image {
        width: auto;
    }
    
    .disclaimer {
        font-size: 0.8rem;
        line-height: 1.7;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Anchor Links */
.anchor-link {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 8px;
    font-weight: normal;
    font-size: 0.8em;
}

h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link {
    opacity: 1;
}

.anchor-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
    counter-reset: toc-counter;
}

.table-of-contents li {
    margin: 0.5rem 0;
    list-style: none;
    counter-increment: toc-counter;
}

.table-of-contents li::before {
    content: counter(toc-counter) ". ";
    color: var(--primary-color);
    font-weight: 600;
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Article metadata */
.article-meta {
    margin-bottom: 1rem;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-info {
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reading-time {
    margin-right: 1rem;
    font-weight: 500;
}

.authors {
    font-style: italic;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Landing Page Styles */
.landing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

/* Remove anchor links from landing cards */
.landing-card .anchor-link {
    display: none !important;
}

.landing-card h3 {
    position: relative;
}

.landing-card h3::before {
    content: none !important;
}

.landing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
}

.landing-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(247, 176, 65, 0.15);
    text-decoration: none;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.landing-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    text-align: left;
    font-weight: 600;
    line-height: 1.3;
}

.landing-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.landing-card:hover .card-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

.landing-card.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(247, 176, 65, 0.03) 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.badge {
    background: var(--primary-color);
    color: var(--on-primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.landing-card-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
}

.landing-card-group.full-width {
    grid-column: 1 / -1;
}

.landing-card-group h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    text-align: left;
    font-weight: 600;
}

.landing-card-group > p {
    color: var(--text-muted);
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.sub-card {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    text-align: center;
}

.sub-card:hover {
    border-color: var(--primary-color);
    background: rgba(247, 176, 65, 0.05);
    transform: translateY(-2px);
    text-decoration: none;
}

.sub-card span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.landing-cta {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
}

.landing-cta h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    font-weight: 600;
}

.landing-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 20px 0;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .landing-card {
        padding: 16px;
        min-height: 70px;
        gap: 12px;
    }
    
    .landing-card-group,
    .landing-cta {
        padding: 20px;
    }

    .landing-card h3 {
        font-size: 1.1rem;
    }

    .landing-card p {
        font-size: 0.85rem;
    }

    .card-arrow {
        font-size: 1.3rem;
    }

    .sub-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .landing-card {
        padding: 14px;
        min-height: 65px;
        gap: 10px;
    }

    .landing-card h3 {
        font-size: 1rem;
    }

    .landing-card p {
        font-size: 0.8rem;
    }

    .card-arrow {
        font-size: 1.2rem;
    }

    .sub-cards {
        grid-template-columns: 1fr;
    }
}