:root {
    --primary-color: #7F77DD;
    --primary-color-rgb: 127, 119, 221;
    --primary-hover: #6a62c5;
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --container-width: 1200px;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --header-bg: rgba(15, 23, 42, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

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

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    white-space: nowrap;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: #7F77DD;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow);
}

.search-field {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 9999px;
    outline: none;
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Grids */
.categories-grid, .tools-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.category-card, .tool-card, .post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover, .tool-card:hover, .post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tool-card h3, .post-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tool-meta, .post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Dark Mode Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Ad Placements */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .ad-placeholder {
    background: #1e293b;
    border-color: #334155;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2000;
}

.cookie-banner .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: #f8f9ff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

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

.footer-column a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Tool Single Styles */
.tool-header-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.tool-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
}

.tool-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

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

.pros, .cons {
    padding: 2rem;
    border-radius: 1rem;
}

.pros { background: rgba(34, 197, 94, 0.1); }
.cons { background: rgba(239, 68, 68, 0.1); }

/* Tool Logos */
.tool-card-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.tool-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-image img {
    transform: scale(1.1);
}

.featured-image-container {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.featured-image-container img {
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

.tool-logo {
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Claude-like Skill Cards */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* Responsive Mobile Menu */
.main-navigation ul.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.share-tw { background: #1da1f2; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
}

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

.comparison-table th {
    background: rgba(var(--primary-color-rgb), 0.05);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .tool-header-flex { flex-direction: column; text-align: center; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-pros-cons { grid-template-columns: 1fr; }
    .main-navigation ul { display: none; } /* Add mobile menu logic */
}
