@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    /* Premium Color Palette */
    --primary-color: #0F172A;
    /* Deep slate */
    --accent-color: #3B82F6;
    /* Bright blue */
    --accent-hover: #2563EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --bg-body: #F1F5F9;
    --bg-card: #1E293B;
    --text-main: #020617;
    --text-secondary: #334155;
    --border-subtle: #E2E8F0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.15);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing & Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    transition: all 0.2s ease;
}

/* Glass Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent-color);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    margin-left: 2rem;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: white;
    padding: 5rem 2rem 8rem 2rem;
    /* Extra padding at bottom for overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./media/hero-pattern.svg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.last-updated {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Layout */
.container {
    max-width: var(--max-width);
    margin: -4rem auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Product Card - The Star of the Show */
.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card {
    background: #1E3162;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Ribbon */
.ribbon {
    position: absolute;
    top: 1rem;
    left: -0.5rem;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    border-top: 0.5rem solid #047857;
    /* Darker green */
    border-left: 0.5rem solid transparent;
}

/* Rank & Logo */
.card-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.rank {
    font-size: 3rem;
    font-weight: 900;
    color: #F8FAFC;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.product-logo img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.logo-white-filter img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Features */
.card-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #F8FAFC;
}

.pricing {
    font-size: 1.25rem;
    font-weight: 600;
    color: #38BDF8;
    margin-bottom: 1rem;
    display: block;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.features-list li {
    font-size: 1rem;
    color: #E2E8F0;
    display: flex;
    align-items: center;
}

.features-list li svg {
    width: 16px;
    height: 16px;
    color: var(--success-color);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Rating */
.card-rating {
    text-align: center;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

.score {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--success-color);
    margin-top: 5px;
    display: block;
}

.trustpilot-box {
    margin: 0.75rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.trustpilot-box img {
    height: 24px;
    width: auto;
    display: block;
}



/* Action */
.card-action {
    width: 160px;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    display: block;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.read-review {
    font-size: 1rem;
    color: #E2E8F0;
    text-decoration: none;
}

.read-review:hover {
    text-decoration: underline;
    color: #FFFFFF;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background: #1E3162;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #334155;
    padding-bottom: 0.75rem;
    color: #F8FAFC;
}

.methodology-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #E2E8F0;
}

.methodology-icon {
    background: var(--bg-body);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.article-link {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;

}

.article-link:last-child {
    margin-bottom: 0;
}

.article-link img {
    width: 60px;
    height: 40px;
    background: var(--border-subtle);
    border-radius: var(--radius-md);
    object-fit: cover;
}

.article-link div {
    flex: 1;
}

.article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F8FAFC;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: block;
}

.article-link:hover .article-title {
    color: var(--accent-color);
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #94A3B8;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.disclaimer {
    max-width: var(--max-width);
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        justify-items: center;
        /* center items in column */
        text-align: left;
    }

    .card-rating {
        border: none;
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem 0;
    }

    .card-action {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1.5rem 6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Review Page Specifics */
.breadcrumb {
    padding: 1rem 2rem;
    background: white;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.review-hero {
    background: white;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.review-logo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.review-logo img {
    max-width: 100%;
    height: auto;
}

.review-header-content {
    flex: 1;
}

.review-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.review-meta {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.review-score-badge {
    background: var(--accent-color);
    color: white;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
}

.review-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 2rem;
}

.review-section {
    margin-bottom: 3rem;
}

.review-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.review-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-box,
.cons-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.pros-box h3 {
    color: var(--success-color);
    border-bottom: 2px solid var(--success-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cons-box h3 {
    color: #EF4444;
    border-bottom: 2px solid #EF4444;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-check li,
.list-cross li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.list-check li::before {
    content: '✓';
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.list-cross li::before {
    content: '✕';
    color: #EF4444;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    color: white;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    width: 40%;
    color: #94A3B8;
}

.specs-table td {
    padding: 1rem;
    color: white;
}

.cta-large {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: 2rem;
}

.cta-large h2 {
    color: white;
}

.cta-large .btn-primary {
    display: inline-block;
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    background: var(--success-color);
}

.cta-large .btn-primary:hover {
    background: #059669;
}

@media (max-width: 900px) {
    .review-content-grid {
        grid-template-columns: 1fr;
    }

    .review-hero {
        flex-direction: column;
        text-align: center;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}