/*
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    line-height: 1.7;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

/* change colours to suit your needs */
ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

/* change colours to suit your needs */
mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--body-bg);
    color: #333;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    overflow: hidden;
}

header {
    background:
        linear-gradient(135deg, #4285f4 0%, #34a853 100%);

    color: white;
    padding: 16px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.product-card {
    background: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    padding: 16px;
}

.card-header {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;

}

.card-title {
    align-items: center;
}

.model-icon {
    width: 60px;
    height: 60px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--icon-shadow);
    color: var(--icon-color, inherit);
}

.title-text h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-top: 2rem;
}

.title-text .brand {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.tier-badge {
    background: var(--badge-bg);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-section {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    /* Added from Llama/Claude but harmless for Gemini */
}

.price-item {
    text-align: center;
}

.price-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--price-color);
}

.price-value.free {
    color: var(--free-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    background: white;
    padding: 16px;
    border-left: 4px solid var(--spec-border);

}

.spec-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.ratings-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
}

.rating-label {
    min-width: 180px;
    text-align: left;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
    max-width: 400px;
}

.rating-fill {
    height: 100%;
    background: var(--rating-fill);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.rating-score {
    font-weight: bold;
    color: var(--rating-score);
    min-width: 40px;
    text-align: right;
}

.features-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    /* Added consistent border */
}

.features-list h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: start;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.benchmark-section {
    padding: 0px;
    border-radius: 8px;

}

.benchmark-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    /* Consistent border */
}

/* Override benchmark card bg if needed via variable on parent/specific */

.benchmark-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.benchmark-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.benchmark-row:last-child {
    border-bottom: none;
}

.sentiment-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.sentiment-positive {
    background: #d4edda;
    color: #155724;
}

.sentiment-mixed {
    background: #fff3cd;
    color: #856404;
}

.sentiment-negative {
    background: #f8d7da;
    color: #721c24;
}

h2 {
    font-size: 1.2rem;
}

article h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

article h3 {
    color: #34495e;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

article h4 {
    color: #7f8c8d;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    /* overflow: hidden; Removed to allow sticky headers or standard flow */
}

@media (max-width: 600px) {
    article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

article th {
    background: var(--th-bg);

    padding: 16px;
    text-align: left;
}

article td {
    padding: 16px;
    border-bottom: 1px solid #ecf0f1;
}

article tr:hover {
    background: #f8f9fa;
}

article blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--blockquote-border);
    padding: 16px;
    margin: 1rem 0;
    color: #333;
}

article ul {
    margin: 1rem 0;
    padding-left: 30px;
}

article ol {
    margin: 15px 0;
    padding-left: 30px;
}

article li {
    margin: 8px 0;
}

.pro-con-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pro-section,
.con-section {
    border-radius: 8px;
    border: 1px solid #eee;

}

.pro-section h4 {
    color: var(--pro-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 16px;
    margin-top: 0.5rem;
}

.con-section h4 {
    color: var(--con-color);
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 10px;
    padding: 0 0 0 16px;
}

footer {
    padding: 0 16px 8px 16px;
    text-align: center;
    font-size: 0.5rem;
    color: #999;
}

@media (max-width: 768px) {
    .pro-con-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    :root {
        --rating-fill: linear-gradient(90deg, #4285f4, #34a853);
        --rating-score: #4285f4;
    }

    .rating-label {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .rating-bar {
        flex: 1;
        max-width: none;
        margin: 0 10px;
    }

    .rating-score {
        font-weight: bold;
        color: var(--rating-score);
        min-width: 40px;
        text-align: right;
    }

    .rating-fill {
        height: 100%;
        background: var(--rating-fill);
        border-radius: 5px;
        transition: width 0.3s ease;
    }

    .ratings-section {
        padding: 15px;
    }
}

/* Rich Breadcrumbs for All Articles */
.breadcrumbs {
    font-size: 0.75rem;
    margin: 0;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;

}

.breadcrumbs a {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2980b9;
}

.breadcrumbs a:hover {
    color: #2980b9;
    text-decoration: none;
}

.breadcrumbs .separator {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0 5px;
}

.breadcrumbs .current {
    color: #2c3e50;
    font-weight: bold;
}

.breadcrumbs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* --- Shared Layout & Components (Model Cards & Grids) --- */

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.model-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #ecf0f1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.model-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: #ecf0f1;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 12px;
}

.card-footer-link {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #3498db;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-card:hover .card-footer-link {
    color: #2980b9;
}

/* Related Articles Specifically for Article Pages */
.related-articles {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

.related-articles h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Official Link Button */
.official-link-section {
    margin: 1rem 0;
    text-align: center;
}

.official-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #2c3e50;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;

}


.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    background: white;
    padding: 16px;

    border-left: 4px solid var(--spec-border);
    /* Added consistent shadow */
}

.spec-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.update {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.model-icon {
    font-size: 2rem;
    color: white;
    background: var(--icon-bg);
    border-radius: 50%
}

.tier-badge {
    color: white;
    background: var(--badge-bg);
}

.price-value free {
    color: #6366f1;
}

h3.spec {
    margin: 16px 0 16px 0;
    color: #2c3e50;
}

h3.persona {
    margin: 1rem 0;
    color: #2c3e50;
}

h3.bench {
    margin: 1rem 0;
    color: #2c3e50;
}

.persona-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid #777;
}

.iconpng {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persona-block {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
}

h3.score {
    margin: 1rem 0;
    color: #2c3e50;
}

.chart {
    padding: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

h3.unique {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}


h3.sentiment {
    margin: 1.5rem 0 1rem 00;
    color: #2c3e50;
}

h3.benchstyle {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

.mixed {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.user-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d97757;
}

.common-data {
    margin: 0 16px;
}

.lead {
    font-size: 0.75rem
}


/* Table for Pricing & Specs (Added to minimal.html strictly) */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.summary-table th,
.summary-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.summary-table th {
    background: #f8f9fa;
    color: #7f8c8d;
    font-weight: 600;
    width: 35%;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table .price-value {
    font-weight: bold;
    color: #d97757;
}

.summary-table .free-text {
    color: #34a853;
    font-weight: bold;
}

.brand {
    padding: 8px;
}

/* Pros & Cons and Sentiment Styling */
.pro-section {
    background: rgba(52, 168, 83, 0.08);
    /* Darker Green (8%) */
    padding: 1rem;
    border-radius: 8px;
}

.con-section {
    background: rgba(217, 119, 87, 0.08);
    /* Darker Orange (8%) */
    padding: 1rem;
    border-radius: 8px;
}

.pro-section h4 {
    color: #1e7e34;
    margin-top: 0;
}

.common-data h4 {
    text-align: center;
}

.con-section h4 {
    color: #a45037;
    margin-top: 0;
}

article blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--blockquote-border);
    padding: 16px;
    margin: 1.2rem 0;
    border-radius: 4px;
}

/* Specific colors for Sentiment blockquotes */
article blockquote:not([style*="border-left-color: #d97757"]) {
    background: rgba(52, 168, 83, 0.06);
    /* Darker Positive Background (6%) */
    border-left-color: #34a853;
}

article blockquote[style*="border-left-color: #d97757"] {
    background: rgba(217, 119, 87, 0.06);
    /* Darker Negative Background (6%) */
}

.review-article {
    margin: 0 16px 0.5rem 16px;
}

/* Article Image Styling */
.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* Responsive Table Wrapper */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth scrolling on iOS */
    margin: 1rem 0;
    border: 1px solid #eee;
    border-radius: 8px;
}

.comparison-table-wrapper table {
    width: 100%;
    min-width: 600px;
    /* Force minimum width to trigger scrolling if needed */
    margin: 0;
    /* Override default table margin inside wrapper */
    border-collapse: collapse;
}

/* Ensure table cells don't break awkwardly in the scroll view */
.comparison-table-wrapper th,
.comparison-table-wrapper td {
    white-space: nowrap;
    /* Keep content on one line for better comparison reading */
    padding: 12px 15px;
}

/* Optional: Fix for existing article table media query if it conflicts */
@media (max-width: 600px) {

    article table,
    .summary-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}