:root {
    --primary-color: #0f766e; /* Teal 700 */
    --secondary-color: #14b8a6; /* Teal 500 */
    --primary-hover: #115e59; /* Teal 800 */
    --accent-color: #f59e0b; /* Amber 500 */
    --text-main: #1e293b; /* Slate 800 */
    --text-light: #475569; /* Slate 600 */
    --text-muted: #94a3b8; /* Slate 400 */
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --border-color: #e2e8f0; /* Slate 200 */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1280px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.75rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.75rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.25rem; }

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

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

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 3rem 0;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo:hover {
    text-decoration: none;
    color: var(--primary-hover);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px -1px rgba(15, 118, 110, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Notices */
.ethics-notice, .affiliate-notice {
    background-color: #fffbeb;
    border-left: 6px solid var(--accent-color);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: #92400e;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.affiliate-notice {
    background-color: #f0fdfa;
    border-left-color: var(--secondary-color);
    color: #115e59;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #064e3b 100%);
    color: #ffffff;
    padding: 6rem 1rem;
    text-align: center;
    margin-bottom: 4rem;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    color: #ffffff;
    border: none;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
    font-weight: 300;
}

/* Tool Cards Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.card h3 {
    margin-bottom: 0;
    border: none;
    color: var(--text-main);
    font-size: 1.35rem;
}

.badge {
    background-color: #f1f5f9;
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

.badge.specific {
    background-color: #ccfbf1;
    color: #0f766e;
}

.badge.general {
    background-color: #e2e8f0;
    color: #334155;
}

.card-body {
    flex: 1;
    color: var(--text-light);
}

.card-body p strong {
    color: var(--text-main);
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.card-footer a {
    flex: 1;
}

/* Comparison Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

th, td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f1f5f9;
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: #f8fafc;
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Accordion (Guides/FAQ) */
.accordion {
    margin-bottom: 3rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.accordion-header.active::after {
    content: '−';
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-light);
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    background-color: var(--bg-card);
}

textarea {
    resize: vertical;
    min-height: 160px;
}

.form-success {
    display: none;
    background-color: #d1fae5;
    color: #065f46;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid #34d399;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #0f172a; /* Slate 900 */
    color: #e2e8f0;
    padding: 4rem 0 1.5rem 0;
    margin-top: auto;
}

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

.footer-col h4 {
    color: #ffffff;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col a:hover {
    color: #38bdf8;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 0.95rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
    border-top: 4px solid var(--primary-color);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-text p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cookie-modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.cookie-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* Review Page specific */
.review-header {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.review-meta {
    margin-top: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.pros, .cons {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.pros h4 { color: var(--success-color); margin-bottom: 1rem; }
.cons h4 { color: var(--danger-color); margin-bottom: 1rem; }

.pros ul, .cons ul {
    padding-left: 1.5rem;
    color: var(--text-light);
}

.pros ul li, .cons ul li {
    margin-bottom: 0.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.img-wrapper {
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
    border: 2px dashed var(--border-color);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 4rem 1rem;
        border-radius: 0 0 24px 24px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
}