/*
Theme Name: AITV Theme
Theme URI: https://aitoolsversus.com
Description: Custom theme for AIToolsVersus - Discover, Compare, Decide
Version: 1.0.0
Author: AITV Team
Author URI: https://aitoolsversus.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aitv-theme
*/

/* ================================
   CSS Variables & Base Styles
   ================================ */
:root {
    --aitv-primary: #2563eb;
    --aitv-primary-dark: #1d4ed8;
    --aitv-secondary: #64748b;
    --aitv-success: #10b981;
    --aitv-warning: #f59e0b;
    --aitv-danger: #ef4444;
    --aitv-bg: #ffffff;
    --aitv-bg-alt: #f8fafc;
    --aitv-bg-dark: #0f172a;
    --aitv-text: #1e293b;
    --aitv-text-secondary: #64748b;
    --aitv-text-light: #94a3b8;
    --aitv-border: #e2e8f0;
    --aitv-border-light: #f1f5f9;
    --aitv-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --aitv-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --aitv-radius: 8px;
    --aitv-radius-lg: 12px;
    --aitv-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --aitv-max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--aitv-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--aitv-text);
    background-color: var(--aitv-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.75em;
    line-height: 1.3;
    font-weight: 600;
    color: var(--aitv-text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

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

.aitv-section {
    padding: 3rem 0;
}

.aitv-section-alt {
    background-color: var(--aitv-bg-alt);
}

/* Grid System */
.aitv-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

/* Flex Utilities */
.aitv-flex {
    display: flex;
}

.aitv-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ================================
   Navigation & Header
   ================================ */
.aitv-header {
    background: var(--aitv-bg);
    border-bottom: 1px solid var(--aitv-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.aitv-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.aitv-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aitv-text);
    text-decoration: none;
}

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

.aitv-nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aitv-nav-menu a {
    color: var(--aitv-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.aitv-nav-menu a:hover {
    color: var(--aitv-primary);
    text-decoration: none;
}

.aitv-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aitv-primary);
    transition: width 0.2s ease;
}

.aitv-nav-menu a:hover::after {
    width: 100%;
}

.aitv-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

/* ================================
   Breadcrumb
   ================================ */
.aitv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--aitv-text-secondary);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.aitv-breadcrumb a {
    color: var(--aitv-text-secondary);
}

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

.aitv-breadcrumb-sep {
    color: var(--aitv-text-light);
}

.aitv-breadcrumb-current {
    color: var(--aitv-text);
    font-weight: 500;
}

/* ================================
   Buttons & CTAs
   ================================ */
.aitv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--aitv-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.aitv-btn:hover {
    text-decoration: none;
}

.aitv-btn-primary {
    background: var(--aitv-primary);
    color: #fff;
}

.aitv-btn-primary:hover {
    background: var(--aitv-primary-dark);
    color: #fff;
}

.aitv-btn-secondary {
    background: var(--aitv-bg-alt);
    color: var(--aitv-text);
    border: 1px solid var(--aitv-border);
}

.aitv-btn-secondary:hover {
    background: var(--aitv-border-light);
    color: var(--aitv-text);
}

.aitv-btn-outline {
    background: transparent;
    color: var(--aitv-primary);
    border: 2px solid var(--aitv-primary);
}

.aitv-btn-outline:hover {
    background: var(--aitv-primary);
    color: #fff;
}

.aitv-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.aitv-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ================================
   Cards
   ================================ */
.aitv-card {
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.aitv-card:hover {
    border-color: var(--aitv-primary);
    box-shadow: var(--aitv-shadow-lg);
}

.aitv-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.aitv-card-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--aitv-radius);
    object-fit: contain;
    background: var(--aitv-bg-alt);
}

.aitv-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.aitv-card-title a {
    color: var(--aitv-text);
}

.aitv-card-title a:hover {
    color: var(--aitv-primary);
}

.aitv-card-desc {
    color: var(--aitv-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.aitv-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--aitv-text-secondary);
}

.aitv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--aitv-border-light);
}

/* ================================
   Tags & Badges
   ================================ */
.aitv-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 20px;
    background: var(--aitv-bg-alt);
    color: var(--aitv-text-secondary);
    transition: all 0.2s ease;
}

.aitv-tag:hover {
    background: var(--aitv-primary);
    color: #fff;
    text-decoration: none;
}

.aitv-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.aitv-badge-free {
    background: #dcfce7;
    color: #166534;
}

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

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

/* ================================
   Comparison Table
   ================================ */
.aitv-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.aitv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

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

.aitv-table th {
    background: var(--aitv-bg-alt);
    font-weight: 600;
    color: var(--aitv-text);
}

.aitv-table td {
    color: var(--aitv-text-secondary);
}

.aitv-table tr:hover td {
    background: var(--aitv-bg-alt);
}

.aitv-table .winner {
    background: #dcfce7;
    font-weight: 600;
    color: #166534;
}

/* ================================
   FAQ Accordion
   ================================ */
.aitv-accordion {
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    overflow: hidden;
}

.aitv-accordion-item {
    border-bottom: 1px solid var(--aitv-border);
}

.aitv-accordion-item:last-child {
    border-bottom: none;
}

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

.aitv-accordion-header:hover {
    background: var(--aitv-bg-alt);
}

.aitv-accordion-icon {
    transition: transform 0.2s ease;
}

.aitv-accordion-item.active .aitv-accordion-icon {
    transform: rotate(180deg);
}

.aitv-accordion-content {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--aitv-bg-alt);
    color: var(--aitv-text-secondary);
    line-height: 1.7;
}

.aitv-accordion-item.active .aitv-accordion-content {
    display: block;
}

/* ================================
   Pros & Cons
   ================================ */
.aitv-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.aitv-pros,
.aitv-cons {
    padding: 1.5rem;
    border-radius: var(--aitv-radius-lg);
}

.aitv-pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.aitv-cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.aitv-pros h3 {
    color: #166534;
    margin-bottom: 1rem;
}

.aitv-cons h3 {
    color: #991b1b;
    margin-bottom: 1rem;
}

.aitv-pros ul,
.aitv-cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

.aitv-pros li,
.aitv-cons li {
    margin-bottom: 0.5rem;
    color: var(--aitv-text);
}

/* ================================
   Hero Section
   ================================ */
.aitv-hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--aitv-bg-alt), var(--aitv-bg));
}

.aitv-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--aitv-text);
}

.aitv-hero-subtitle {
    font-size: 1.25rem;
    color: var(--aitv-text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.aitv-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Search Box
   ================================ */
.aitv-search {
    max-width: 600px;
    margin: 0 auto;
}

.aitv-search-form {
    display: flex;
    gap: 0.5rem;
    background: var(--aitv-bg);
    border: 2px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    padding: 0.5rem;
    transition: border-color 0.2s ease;
}

.aitv-search-form:focus-within {
    border-color: var(--aitv-primary);
}

.aitv-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.aitv-search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--aitv-primary);
    color: #fff;
    border: none;
    border-radius: var(--aitv-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aitv-search-btn:hover {
    background: var(--aitv-primary-dark);
}

/* ================================
   Category Grid
   ================================ */
.aitv-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.aitv-category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    transition: all 0.2s ease;
}

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

.aitv-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aitv-bg-alt);
    border-radius: var(--aitv-radius);
    color: var(--aitv-primary);
}

.aitv-category-icon svg {
    width: 24px;
    height: 24px;
}

.aitv-category-info {
    flex: 1;
}

.aitv-category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--aitv-text);
}

.aitv-category-name a {
    color: inherit;
}

.aitv-category-name a:hover {
    color: var(--aitv-primary);
    text-decoration: none;
}

.aitv-category-count {
    font-size: 0.875rem;
    color: var(--aitv-text-secondary);
}

/* ================================
   Footer
   ================================ */
.aitv-footer {
    background: var(--aitv-bg-dark);
    color: #94a3b8;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.aitv-footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.aitv-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.aitv-footer-links a {
    color: #94a3b8;
}

.aitv-footer-links a:hover {
    color: #fff;
}

.aitv-footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.875rem;
}

/* ================================
   Pagination
   ================================ */
.aitv-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.aitv-pagination a,
.aitv-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--aitv-radius);
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    color: var(--aitv-text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.aitv-pagination a:hover {
    border-color: var(--aitv-primary);
    color: var(--aitv-primary);
}

.aitv-pagination .current {
    background: var(--aitv-primary);
    border-color: var(--aitv-primary);
    color: #fff;
}

/* ================================
   Quick Verdict Box
   ================================ */
.aitv-verdict {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #22c55e;
    border-radius: var(--aitv-radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.aitv-verdict-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #166534;
    margin-bottom: 0.5rem;
}

.aitv-verdict-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.75rem;
}

.aitv-verdict-reason {
    color: #166534;
    font-size: 1rem;
}

/* ================================
   Rating Stars
   ================================ */
.aitv-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aitv-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
}

.aitv-rating-value {
    font-weight: 600;
    color: var(--aitv-text);
}

.aitv-rating-count {
    color: var(--aitv-text-secondary);
    font-size: 0.875rem;
}

/* ================================
   Section Headers
   ================================ */
.aitv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.aitv-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--aitv-text);
}

.aitv-section-link {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ================================
   Tool Detail Page Specific
   ================================ */
.aitv-tool-hero {
    padding: 3rem 0;
    background: var(--aitv-bg-alt);
    border-bottom: 1px solid var(--aitv-border);
}

.aitv-tool-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.aitv-tool-logo-wrap {
    flex-shrink: 0;
}

.aitv-tool-logo {
    width: 96px;
    height: 96px;
    border-radius: var(--aitv-radius-lg);
    object-fit: contain;
    background: var(--aitv-bg);
    padding: 0.5rem;
    border: 1px solid var(--aitv-border);
}

.aitv-tool-info {
    flex: 1;
    min-width: 280px;
}

.aitv-tool-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.aitv-tool-tagline {
    font-size: 1.125rem;
    color: var(--aitv-text-secondary);
    margin-bottom: 1rem;
}

.aitv-tool-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.aitv-tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.aitv-tool-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.aitv-tool-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aitv-tool-meta-label {
    font-size: 0.8125rem;
    color: var(--aitv-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aitv-tool-meta-value {
    font-weight: 500;
    color: var(--aitv-text);
}

/* ================================
   Pricing Table
   ================================ */
.aitv-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.aitv-pricing-card {
    background: var(--aitv-bg);
    border: 2px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.aitv-pricing-card:hover {
    border-color: var(--aitv-primary);
}

.aitv-pricing-card.featured {
    border-color: var(--aitv-primary);
    position: relative;
}

.aitv-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aitv-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aitv-pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.aitv-pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--aitv-text);
    margin-bottom: 0.25rem;
}

.aitv-pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--aitv-text-secondary);
}

.aitv-pricing-period {
    font-size: 0.875rem;
    color: var(--aitv-text-secondary);
    margin-bottom: 1.5rem;
}

.aitv-pricing-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}

.aitv-pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--aitv-border-light);
    font-size: 0.9375rem;
    color: var(--aitv-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aitv-pricing-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--aitv-success);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    flex-shrink: 0;
}

/* ================================
   Features List
   ================================ */
.aitv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.aitv-feature-item {
    padding: 1.5rem;
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
}

.aitv-feature-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.aitv-feature-item p {
    color: var(--aitv-text-secondary);
    margin: 0;
}

/* ================================
   Related Comparisons
   ================================ */
.aitv-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.aitv-related-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--aitv-bg-alt);
    border-radius: var(--aitv-radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.aitv-related-item:hover {
    background: var(--aitv-primary);
    color: #fff;
}

.aitv-related-item svg {
    width: 16px;
    height: 16px;
}

/* ================================
   Filter Bar
   ================================ */
.aitv-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.aitv-filter-btn {
    padding: 0.5rem 1rem;
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--aitv-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* ================================
   Ranking List
   ================================ */
.aitv-ranking-list {
    counter-reset: ranking;
}

.aitv-ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.aitv-ranking-item:hover {
    border-color: var(--aitv-primary);
    box-shadow: var(--aitv-shadow-lg);
}

.aitv-ranking-position {
    counter-increment: ranking;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aitv-bg-alt);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aitv-text);
    flex-shrink: 0;
}

.aitv-ranking-item:nth-child(1) .aitv-ranking-position {
    background: #fef3c7;
    color: #92400e;
}

.aitv-ranking-item:nth-child(2) .aitv-ranking-position {
    background: #e2e8f0;
    color: #475569;
}

.aitv-ranking-item:nth-child(3) .aitv-ranking-position {
    background: #fde68a;
    color: #78716c;
}

/* ================================
   Mobile Responsive
   ================================ */
@media (max-width: 768px) {
    :root {
        --aitv-max-width: 100%;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .aitv-hero {
        padding: 2.5rem 0;
    }

    .aitv-hero-title {
        font-size: 2rem;
    }

    .aitv-hero-subtitle {
        font-size: 1.125rem;
    }

    .aitv-grid-2,
    .aitv-grid-3,
    .aitv-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .aitv-nav-menu {
        display: none;
    }

    .aitv-mobile-toggle {
        display: block;
    }

    .aitv-footer-grid {
        grid-template-columns: 1fr;
    }

    .aitv-tool-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .aitv-tool-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .aitv-btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
    }

    .aitv-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aitv-hero-actions .aitv-btn {
        width: 100%;
        justify-content: center;
    }

    .aitv-ranking-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================
   Schema Markup Styling (Hidden)
   ================================ */
.aitv-schema-markup {
    display: none;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.aitv-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.aitv-slide-up {
    animation: slideUp 0.4s ease-out;
}

/* ================================
   Content Area
   ================================ */
.aitv-content {
    max-width: 800px;
    margin: 0 auto;
}

.aitv-content p,
.aitv-content li {
    color: var(--aitv-text-secondary);
}

.aitv-content h2 {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--aitv-border-light);
}

/* ================================
   Sidebar
   ================================ */
.aitv-sidebar {
    position: sticky;
    top: 100px;
}

.aitv-sidebar-widget {
    background: var(--aitv-bg);
    border: 1px solid var(--aitv-border);
    border-radius: var(--aitv-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.aitv-sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--aitv-border-light);
}

/* ================================
   Main Layout with Sidebar
   ================================ */
.aitv-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

    .aitv-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}


/* ================================
   Logo Styles
   ================================ */

.aitv-tool-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aitv-tool-logo.aitv-logo-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aitv-primary);
    background: var(--aitv-bg-alt);
}

.aitv-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.aitv-card-logo.aitv-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--aitv-primary);
    background: var(--aitv-bg-alt);
    font-size: 1.25rem;
}

/* ================================
   Screenshot Section
   ================================ */

.aitv-screenshot-section {
    background: #fff;
    padding: 2rem 0;
}

.aitv-screenshot-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.aitv-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.aitv-screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.aitv-screenshot-wrap:hover .aitv-screenshot-overlay {
    opacity: 1;
}

/* ================================
   Comparison Page Logos
   ================================ */

.aitv-compare-logo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aitv-compare-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* ================================
   Ranking Page Logos
   ================================ */

.aitv-ranking-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.aitv-ranking-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* ================================
   Responsive Adjustments
   ================================ */

@media (max-width: 768px) {
    .aitv-tool-logo {
        width: 56px;
        height: 56px;
    }
    
    .aitv-screenshot-wrap {
        border-radius: 8px;
    }
    
    .aitv-compare-logo-wrap {
        width: 64px;
        height: 64px;
    }
    
    .aitv-ranking-logo-wrap {
        width: 48px;
        height: 48px;
    }
}

