/* Anthropic-inspired Premium Theme */
:root {
    /* Core Colors from Anthropic Site */
    --bg-page: #F0EEE6;       /* Ivory/Cream background */
    --bg-card: #FFFFFF;
    --bg-secondary: #E6E4D9;  /* Oat/Darker Cream */
    --text-main: #191919;     /* Near Black */
    --text-muted: #666666;
    --accent-color: #D97757;  /* Terracotta Orange */
    --accent-hover: #b95d40;
    --border-color: #D1D1D1;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-main: 12px;      /* Softer, larger radius */
    --radius-button: 100px;   /* Pill shape */
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 1.1rem; /* Slightly larger base size for readability */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400; /* Lighter weight for premium feel */
    color: var(--text-main);
    line-height: 1.2;
}

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

/* Navbar - Minimalist & Clean */
.navbar {
    background-color: var(--bg-page); /* Matches body */
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(240, 238, 230, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo svg {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Hero Section - Typography Focused */
.hero {
    background-color: var(--bg-page);
    color: var(--text-main);
    padding: 6rem 0;
}

.hero .container {
    max-width: var(--container-width);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-video {
    width: 100%;
}

.video-container {
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.2);
}

/* Video Section (Legacy support if needed) */
.video-section {
    padding: 2rem 0 6rem;
    background-color: var(--bg-page);
}

/* Expert Tips - Card Grid */
.expert-tips {
    padding: 6rem 0;
    background-color: #FFFFFF; /* Clean white break */
    border-radius: 24px 24px 0 0; /* Slight visual separation */
}

.expert-tips h2, .category-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-main);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tip-card {
    background-color: var(--bg-secondary); /* Oat color */
    padding: 3rem;
    border-radius: var(--radius-main);
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none; /* Flat design */
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.tip-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5px;
}

.tip-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.tip-card p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Rankings / Products */
.category-section {
    padding: 6rem 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--bg-secondary);
}

.category-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.rankings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.rank-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow); /* We'll redefine shadow below since it was lost */
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    border: 1px solid var(--border-color);
}

.rank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--text-main);
}

.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--text-main) 0%, #333 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    z-index: 10;
    border-bottom-right-radius: 12px;
}

.rank-card:first-child .rank-badge {
    background: var(--accent-color);
}

.rank-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.best-pick {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.rank-card:first-child .best-pick {
    background-color: rgba(0, 0, 0, 0.1);
}

.rank-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-image-placeholder svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    mix-blend-mode: multiply;
}

.rank-card:hover .product-image-placeholder img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rank-content h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-sans);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}

.store-link:hover {
    background-color: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    transform: none;
}

.store-link.lowes:hover { background-color: #004990; border-color: #004990; color: white; }
.store-link.bestbuy:hover { background-color: #0046be; border-color: #0046be; color: white; }
.store-link.lg:hover { background-color: #a50034; border-color: #a50034; color: white; }
.store-link.homedepot:hover { background-color: #f96302; border-color: #f96302; color: white; }
.store-link.ajmadison:hover { background-color: #2c5f2d; border-color: #2c5f2d; color: white; }

/* Footer - Dark Theme */
.footer {
    background-color: #141413; /* Anthropic Footer Color */
    color: #F0EEE6;
    padding: 5rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #a1a0a0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4rem;
    padding-top: 2rem;
    color: #777;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none; /* Simplify for mobile for now */
    }
    
    .container {
        padding: 0 20px;
    }
    
    .rankings-list {
        grid-template-columns: 1fr;
    }
    
    .category-header h2 {
        font-size: 2rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-placeholder {
        height: 250px;
    }
    
    .links {
        flex-direction: column;
    }

    .store-link {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .product-image-placeholder {
        height: 220px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.rank-card {
    animation: fadeIn 0.5s ease-out;
}

/* ----------------------------------------
   NEW TRUST & METHODOLOGY STYLES
   ---------------------------------------- */

/* Trust Bar */
.trust-bar {
    background-color: #F7F5F0; /* Slightly darker than page bg */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/* Methodology Section */
.methodology {
    background-color: #fff;
    padding: 4rem 0;
    border-top: 1px solid var(--bg-secondary);
    text-align: center;
}

.methodology-content {
    max-width: 800px;
    margin: 0 auto;
}

.methodology h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.methodology p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stat-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Additional Responsive Adjustments for Trust Bar */
@media (max-width: 768px) {
    .trust-bar .container {
        gap: 1.5rem;
        font-size: 0.8rem;
    }
    
    .stat-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Score Cards Grid */
.score-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.score-card-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

/* Animate when parent has .animate class */
.score-cards-grid.animate .score-card-item {
    animation: cardPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger animations */
.score-cards-grid.animate .score-card-item:nth-child(1) { animation-delay: 0.1s; }
.score-cards-grid.animate .score-card-item:nth-child(2) { animation-delay: 0.2s; }
.score-cards-grid.animate .score-card-item:nth-child(3) { animation-delay: 0.3s; }
.score-cards-grid.animate .score-card-item:nth-child(4) { animation-delay: 0.4s; }
.score-cards-grid.animate .score-card-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Override transform for the "Over $1000" card which has inline scale */
.score-cards-grid.animate .score-card-item:last-child {
    animation-name: cardPopInBig;
}

@keyframes cardPopInBig {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
}

/* Hover effects */
.score-card-item:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--accent-color) !important;
}

.score-card-item:last-child:hover {
    transform: translateY(-5px) scale(1.08) !important;
}

/* Pulse animation for radial chart */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Smooth transitions for center badge */
.center-badge > div {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clean, simple hero animations */
.fade-line,
.fade-line-big {
    display: inline-block;
    opacity: 0;
    animation: smoothFadeIn 1s ease-out forwards;
}

.fade-line {
    animation-delay: 0.2s;
}

.fade-line-big {
    animation-delay: 0.6s;
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    opacity: 0;
    animation: smoothFadeIn 1s ease-out 1.2s forwards;
}

.cta-button {
    opacity: 0;
    animation: smoothFadeIn 1s ease-out 1.6s forwards;
}
