/*
Theme Name: MarketingStuff
Theme URI: https://marketingstuff.xyz
Author: MarketingStuff Team
Author URI: https://marketingstuff.xyz
Description: A clean, modern WordPress theme for a marketing tool directory. Optimized for programmatic SEO with structured data, fast loading, and mobile-first responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketingstuff
Tags: marketing, directory, tools, reviews, seo
*/

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-navy: #1a1a2e;
    --color-navy-light: #232342;
    --color-navy-dark: #12121f;
    --color-blue: #4361ee;
    --color-blue-hover: #3651d4;
    --color-blue-light: #e8ecfd;
    --color-white: #ffffff;
    --color-off-white: #f8f9fc;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    --color-free: #10b981;
    --color-freemium: #4361ee;
    --color-paid: #f59e0b;
    --color-enterprise: #ef4444;
    --color-star: #fbbf24;
    --color-star-empty: #d1d5db;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --container-max: 1200px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 64px 0;
}

.section--gray {
    background-color: var(--color-off-white);
}

.section--navy {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
    color: var(--color-white);
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__header h2 {
    margin-bottom: 12px;
}

.section__header p {
    color: var(--color-gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .container { padding: 0 16px; }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn--primary {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-blue-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.btn--secondary:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn--cta {
    background: linear-gradient(135deg, var(--color-blue), #6366f1);
    color: var(--color-white);
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn--cta:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-brand__logo {
    width: 36px;
    height: 36px;
}

.site-brand__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-navy);
}

.site-brand__name span {
    color: var(--color-blue);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav__menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item a {
    color: var(--color-blue);
    background-color: var(--color-blue-light);
}

.header-search {
    position: relative;
}

.header-search__input {
    width: 220px;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    transition: all var(--transition);
    background-color: var(--color-gray-50);
}

.header-search__input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    width: 280px;
    background-color: var(--color-white);
}

.header-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-gray-400);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    width: 32px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav__menu {
        flex-direction: column;
        width: 100%;
    }

    .site-nav__menu a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1.1rem;
    }

    .header-search {
        width: 100%;
    }

    .header-search__input {
        width: 100%;
    }

    .header-search__input:focus {
        width: 100%;
    }
}

/* === FOOTER === */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-gray-300);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-gray-400);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-white);
}

.footer-newsletter__input-wrap {
    display: flex;
    margin-top: 12px;
}

.footer-newsletter__input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 0.9rem;
}

.footer-newsletter__input::placeholder {
    color: var(--color-gray-500);
}

.footer-newsletter__input:focus {
    outline: none;
    border-color: var(--color-blue);
}

.footer-newsletter__btn {
    padding: 10px 20px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color var(--transition);
}

.footer-newsletter__btn:hover {
    background-color: var(--color-blue-hover);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gray-400);
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blue);
    color: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 50;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-blue-hover);
    color: var(--color-white);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

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

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.hero p {
    color: var(--color-gray-400);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 1.05rem;
    transition: all var(--transition);
}

.hero-search input::placeholder {
    color: var(--color-gray-500);
}

.hero-search input:focus {
    outline: none;
    border-color: var(--color-blue);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.hero-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-gray-400);
}

/* === TOOL CARDS === */
.tool-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tool-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-card__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-gray-100);
}

.tool-card__info {
    flex: 1;
    min-width: 0;
}

.tool-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.tool-card__name a {
    color: inherit;
}

.tool-card__name a:hover {
    color: var(--color-blue);
}

.tool-card__tagline {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-card__body {
    flex: 1;
    margin-bottom: 16px;
}

.tool-card__description {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-100);
    margin-top: auto;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1;
}

.badge--category {
    background-color: var(--color-blue-light);
    color: var(--color-blue);
}

.badge--free {
    background-color: #d1fae5;
    color: #065f46;
}

.badge--freemium {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge--paid {
    background-color: #fef3c7;
    color: #92400e;
}

.badge--enterprise {
    background-color: #fee2e2;
    color: #991b1b;
}

/* === STAR RATING === */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stars svg {
    width: 16px;
    height: 16px;
}

.stars--lg svg {
    width: 20px;
    height: 20px;
}

.star-filled {
    color: var(--color-star);
}

.star-empty {
    color: var(--color-star-empty);
}

.star-half {
    color: var(--color-star);
}

.rating-number {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-gray-700);
    margin-left: 4px;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* === CATEGORY GRID === */
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-gray-800);
}

.category-card:hover {
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
    color: var(--color-blue);
    transform: translateY(-1px);
}

.category-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blue-light);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.category-card__icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-blue);
}

.category-card__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.category-card__count {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* === STATS === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 64px;
    padding: 40px 0;
    text-align: center;
}

.stat-item__number {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-blue);
}

.stat-item__label {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin-top: 4px;
}

@media (max-width: 640px) {
    .stats-bar {
        gap: 32px;
        flex-wrap: wrap;
    }
}

/* === DIRECTORY / ARCHIVE === */
.directory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .directory-layout {
        grid-template-columns: 1fr;
    }
}

.directory-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

@media (max-width: 1024px) {
    .directory-sidebar {
        position: static;
    }
}

.filter-group {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.filter-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    cursor: pointer;
}

.filter-group label:hover {
    color: var(--color-gray-800);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    accent-color: var(--color-blue);
    width: 16px;
    height: 16px;
}

.filter-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

.filter-search:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.tools-count {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--color-gray-500);
}

.loading-indicator.is-loading {
    display: block;
}

/* === PAGINATION === */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-700);
    transition: all var(--transition);
}

.page-numbers:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.page-numbers.current {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
}

/* === SINGLE TOOL PAGE === */
.tool-hero {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    padding: 48px 0;
}

.tool-hero__content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tool-hero__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    object-fit: cover;
    flex-shrink: 0;
}

.tool-hero__info {
    flex: 1;
}

.tool-hero__name {
    color: var(--color-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.tool-hero__tagline {
    color: var(--color-gray-400);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.tool-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-hero__cta {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .tool-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .tool-hero__meta {
        justify-content: center;
    }
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs__sep {
    color: var(--color-gray-400);
}

.breadcrumbs a {
    color: var(--color-gray-500);
}

.breadcrumbs a:hover {
    color: var(--color-blue);
}

.breadcrumbs__current {
    color: var(--color-gray-700);
    font-weight: 500;
}

/* === TABS === */
.tool-tabs {
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 32px;
    overflow-x: auto;
}

.tool-tabs__list {
    display: flex;
    gap: 0;
}

.tool-tabs__item {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--transition);
}

.tool-tabs__item:hover {
    color: var(--color-gray-700);
}

.tool-tabs__item.is-active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

/* === TOOL DETAIL LAYOUT === */
.tool-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .tool-detail-layout {
        grid-template-columns: 1fr;
    }
}

.tool-sidebar-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.tool-sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.quick-facts {
    list-style: none;
}

.quick-facts li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.9rem;
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts__label {
    color: var(--color-gray-500);
}

.quick-facts__value {
    font-weight: 600;
    color: var(--color-gray-800);
}

/* === FEATURES LIST === */
.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* === PRICING TABLE === */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-200);
    font-size: 0.9rem;
}

.pricing-table th {
    background-color: var(--color-gray-50);
    font-weight: 600;
    color: var(--color-navy);
}

.pricing-table tr:hover td {
    background-color: var(--color-gray-50);
}

/* === REVIEWS === */
.review-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-card__author {
    font-weight: 600;
    color: var(--color-navy);
}

.review-card__date {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

.review-card__content {
    font-size: 0.95rem;
    color: var(--color-gray-700);
    margin-bottom: 12px;
}

.review-card__pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .review-card__pros-cons {
        grid-template-columns: 1fr;
    }
}

.review-card__pros h5,
.review-card__cons h5 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-card__pros h5 {
    color: var(--color-success);
}

.review-card__cons h5 {
    color: var(--color-danger);
}

.review-card__pros li,
.review-card__cons li {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    padding: 2px 0;
}

/* === REVIEW FORM === */
.review-form {
    background-color: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 32px;
}

.review-form h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--color-gray-700);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background-color: var(--color-white);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.star-rating-input {
    display: flex;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 0;
}

.star-rating-input label svg {
    width: 28px;
    height: 28px;
    color: var(--color-star-empty);
    transition: color var(--transition);
}

.star-rating-input label:hover svg,
.star-rating-input label:hover ~ label svg,
.star-rating-input input:checked ~ label svg {
    color: var(--color-star);
}

/* === SCREENSHOTS GALLERY === */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.screenshots-gallery img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: transform var(--transition);
}

.screenshots-gallery img:hover {
    transform: scale(1.02);
}

/* === SUBMIT FORM === */
.submit-form {
    max-width: 720px;
    margin: 0 auto;
}

.submit-form .form-group--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .submit-form .form-group--half {
        grid-template-columns: 1fr;
    }
}

.form-message {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-message--success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message--error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* === BLOG CARDS === */
.post-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card__body {
    padding: 20px;
}

.post-card__category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--color-navy);
}

.post-card__title a {
    color: inherit;
}

.post-card__title a:hover {
    color: var(--color-blue);
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* === SEARCH RESULTS === */
.search-header {
    padding: 48px 0;
    background-color: var(--color-off-white);
    margin-bottom: 48px;
}

.search-header h1 {
    margin-bottom: 8px;
}

.search-header p {
    color: var(--color-gray-500);
}

.search-results-section {
    margin-bottom: 48px;
}

.search-results-section h2 {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-200);
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 96px 0;
}

.error-404__code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--color-blue);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h1 {
    margin-bottom: 12px;
}

.error-404 p {
    color: var(--color-gray-500);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-404 .hero-search {
    margin-bottom: 32px;
}

/* === SIDEBAR WIDGETS === */
.widget {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.widget h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-blue);
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul a {
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

.widget ul a:hover {
    color: var(--color-blue);
}

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: var(--color-gray-50);
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.author-box__name {
    font-weight: 700;
    margin-bottom: 4px;
}

.author-box__bio {
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

@media (max-width: 640px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* === CONTENT STYLES === */
.entry-content {
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.entry-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-blue);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: var(--color-blue-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-gray-700);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.entry-content code {
    background-color: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.entry-content pre {
    background-color: var(--color-navy);
    color: var(--color-gray-300);
    padding: 24px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 24px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--color-blue), #6366f1);
    padding: 64px 0;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: 48px 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--color-white);
    color: var(--color-blue);
}

.cta-section .btn:hover {
    background-color: var(--color-off-white);
    color: var(--color-blue);
    transform: translateY(-2px);
}

/* === ALTERNATIVES GRID === */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* === REVIEW HUB === */
.review-hub-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.review-hub-card:hover {
    box-shadow: var(--shadow-md);
}

.review-hub-card__tool {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-hub-card__tool-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.review-hub-card__tool-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.review-hub-card__tool-name a {
    color: var(--color-navy);
}

.review-hub-card__tool-name a:hover {
    color: var(--color-blue);
}

/* === SCREEN READER === */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* === ALIGNMENTS === */
.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === PRINT === */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .tool-tabs,
    .review-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
