/* --- BASE STYLES --- */
:root {
    --primary-color: #0b1c3d;
    --accent-color: #00b67a;
    --bg-color: #f7f9fa;
    --text-color: #333333;
    --white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* --- HEADER --- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo { font-size: 24px; font-weight: 700; color: var(--primary-color); }
.logo span { color: var(--accent-color); }

.nav-list { display: flex; list-style: none; gap: 25px; }
.nav-list a { font-weight: 500; transition: color 0.3s; }
.nav-list a:hover { color: var(--accent-color); }

/* --- MAIN CONTENT --- */
.site-main { flex-grow: 1; }

.hero-section, .page-header { padding: 50px 0 30px; }
.hero-section h1, .page-header h1 { font-size: 34px; color: var(--primary-color); margin-bottom: 12px; }
.hero-section p, .page-header p { font-size: 17px; color: #555; max-width: 650px; margin: 0 auto; }

/* --- CONTENT BOX & PAGES --- */
.content-box {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.content-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.legal-text h2 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-text p {
    margin-bottom: 15px;
    color: #444;
}

/* Contact form & Grid */
.contact-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-info, .contact-form-container { flex: 1; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--primary-color); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }

/* --- REVIEW PAGES --- */
.review-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.brand-rank-badge {
    background: var(--accent-color);
    color: var(--white);
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.score-text { font-size: 18px; color: #444; }

.bonus-box {
    background: #f0fdf4;
    border: 1px dashed var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.bonus-box h3 { font-size: 14px; color: #15803d; text-transform: uppercase; margin-bottom: 5px; }
.bonus-val { font-size: 16px; font-weight: bold; color: var(--primary-color); }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.styled-list {
    list-style: none;
    margin: 15px 0 25px;
}

.styled-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #444;
}

/* --- RANKING CARDS (HOMEPAGE) --- */
.ranking-section { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; }
.brand-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    padding: 25px;
    position: relative;
    border: 1px solid #eaeaea;
    transition: transform 0.2s, box-shadow 0.2s;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.top-choice { border: 2px solid var(--accent-color); }
.brand-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}
.brand-rank { font-size: 28px; font-weight: 900; color: #d1d5db; width: 55px; }
.brand-logo { width: 160px; text-align: center; color: var(--primary-color); }
.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 15px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px dashed #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bonus-highlight { display: block; font-size: 12px; color: #16a34a; font-weight: bold; margin-top: 4px; }
.brand-features { flex-grow: 1; padding: 0 25px; border-left: 1px solid #eee; border-right: 1px solid #eee; }
.brand-features ul { list-style: none; }
.brand-features li { font-size: 14px; margin-bottom: 5px; color: #444; }
.brand-rating { width: 150px; text-align: center; padding: 0 15px; }
.stars { color: #ffb400; font-size: 20px; margin-bottom: 5px; }
.score { font-size: 18px; font-weight: bold; color: var(--primary-color); }
.read-review { display: block; font-size: 13px; color: #666; margin-top: 8px; text-decoration: underline; }
.read-review:hover { color: var(--accent-color); }
.brand-actions { width: 170px; text-align: right; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: bold; text-align: center; transition: background 0.3s; width: 100%; border: none; cursor: pointer; font-size: 15px; }
.btn-primary { background-color: var(--accent-color); color: var(--white); box-shadow: 0 4px 10px rgba(0, 182, 122, 0.3); }
.btn-primary:hover { background-color: #009966; color: var(--white); }

/* --- FOOTER --- */
.site-footer { background-color: var(--primary-color); color: var(--white); padding: 50px 0 20px; margin-top: 40px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-container > div { flex: 1; min-width: 250px; }
.site-footer h3 { margin-bottom: 15px; font-size: 18px; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-color); }

/* --- EXPANDED REVIEW EXTRAS (additive, used on review detail pages) --- */
.quick-facts {
    list-style: none;
    text-align: left;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.quick-facts li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 5px 0;
    color: #444;
}
.quick-facts li span:first-child { color: #888; }
.quick-facts li strong { color: var(--primary-color); }

.procon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0 25px;
}
.procon-box { padding: 18px; border-radius: 10px; }
.procon-box.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.procon-box.cons { background: #fef2f2; border: 1px solid #fecaca; }
.procon-box h3 { font-size: 15px; margin-bottom: 10px; }
.procon-box.pros h3 { color: #15803d; }
.procon-box.cons h3 { color: #b91c1c; }
.procon-box ul { list-style: none; }
.procon-box li { font-size: 14px; margin-bottom: 8px; color: #444; }

.promo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    font-size: 14px;
}
.promo-table th, .promo-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}
.promo-table th {
    background: #f7f9fa;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.promo-table td:first-child { font-weight: 600; color: var(--primary-color); }

.info-note {
    background: #eef2f6;
    border-left: 4px solid var(--accent-color);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #444;
    margin: 15px 0 25px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 25px; }
.tag-pill {
    background: #eef2f6;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .procon-grid { grid-template-columns: 1fr; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .header-container { flex-direction: column; justify-content: center; height: auto; padding: 15px 0; gap: 15px; }
    .nav-list { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .brand-card { flex-direction: column; text-align: center; gap: 15px; }
    .brand-rank { display: none; }
    .brand-features { border: none; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; width: 100%; }
    .brand-actions, .brand-rating { width: 100%; }
    .contact-grid, .review-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
}
