/* ============================================
   Online Tools - Category Page Styles
   With Dark Mode Support
   ============================================ */

/* CSS Variables - Light Mode (Default) */
:root {
    --transition-speed: 0.25s;
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2ecc71;
    --secondary-dark: #27ae60;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --text: #333;
    --text-muted: #6c757d;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    
    /* Card backgrounds */
    --card-bg: #ffffff;
    --card-secondary: #f8f9fa;
    
    /* Status colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Category colors - single colors */
    --teal: #14b8a6;
    --purple: #8b5cf6;
    --orange: #f97316;
    --pink: #ec4899;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --indigo: #6366f1;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #4ade80;
    --secondary-dark: #22c55e;
    --accent: #f87171;
    --dark: #e2e8f0;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --border: #334155;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    
    /* Card backgrounds */
    --card-bg: #1e293b;
    --card-secondary: #334155;
    
    /* Status colors */
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1000px !important;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

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

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

.breadcrumb-separator {
    color: var(--border);
}

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

/* ============================================
   PAGE HEADER - Compact with inline icon
   ============================================ */
.page-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.page-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.page-icon i {
    width: 24px;
    height: 24px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    transition: color var(--transition-speed);
}

.page-header .intro-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SEARCH CONTAINER
   ============================================ */
.search-container {
    margin-bottom: 1.5rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

[data-theme="dark"] .search-wrapper:focus-within {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon i {
    width: 20px;
    height: 20px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 12px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--card-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.clear-search:hover {
    background: var(--accent);
    color: white;
}

.clear-search i {
    width: 16px;
    height: 16px;
}

/* Hide keyboard shortcut display */
.search-shortcut {
    display: none;
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-label {
    font-size: 13px;
    color: var(--text-muted);
}

.suggestion-tag {
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab i {
    width: 16px;
    height: 16px;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   SECTION STYLING
   ============================================ */
.converter-section {
    display: none;
    margin-bottom: 2.5rem;
}

.converter-section.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.section-icon i {
    width: 20px;
    height: 20px;
}

/* Section icon colors - single colors */
.section-icon.all { background: var(--primary); }
.section-icon.search { background: var(--info); }
.section-icon.editors { background: var(--blue); }
.section-icon.analyzers { background: var(--purple); }
.section-icon.compressors { background: var(--success); }
.section-icon.color { background: var(--orange); }
.section-icon.web { background: var(--cyan); }
.section-icon.text { background: var(--pink); }
.section-icon.generators { background: var(--teal); }
.section-icon.gif { background: var(--purple); }
.section-icon.viewers { background: var(--indigo); }

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-speed);
}

.section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    padding-left: 48px;
    max-width: 800px;
}

/* ============================================
   CONVERTER CARDS GRID
   ============================================ */
.converters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   CONVERTER CARD
   ============================================ */
.converter-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Shine sweep effect */
.converter-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

[data-theme="dark"] .converter-card::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.converter-card:hover::after {
    left: 100%;
}

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

/* Card Icon */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.card-icon i {
    width: 26px;
    height: 26px;
    color: white;
}

/* Icon color variations - single colors */
.card-icon.editor { background: var(--blue); }
.card-icon.analyzer { background: var(--purple); }
.card-icon.compress { background: var(--success); }
.card-icon.color { background: var(--orange); }
.card-icon.web { background: var(--cyan); }
.card-icon.text { background: var(--pink); }
.card-icon.generator { background: var(--teal); }
.card-icon.gif { background: var(--purple); }
.card-icon.viewer { background: var(--indigo); }
.card-icon.default { background: var(--primary); }

/* Card Content */
.card-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-speed);
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Card Arrow */
.card-arrow {
    color: var(--border);
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.card-arrow i {
    width: 20px;
    height: 20px;
}

.converter-card:hover .card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Badge */
.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-new {
    background: #d1fae5;
    color: #059669;
}

.badge-popular {
    background: #dbeafe;
    color: #2563eb;
}

.badge-beta {
    background: #fef3c7;
    color: #d97706;
}

[data-theme="dark"] .badge-new {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}

[data-theme="dark"] .badge-popular {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .badge-beta {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--card-secondary);
    border-radius: var(--radius-lg);
}

.no-results-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.no-results-icon i {
    width: 32px;
    height: 32px;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.5rem;
}

.no-results p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.btn-browse-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-browse-all:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-browse-all i {
    width: 18px;
    height: 18px;
}

/* ============================================
   NEW TOOL HIGHLIGHT
   ============================================ */
.new-tool-highlight {
    background: rgba(14, 165, 156, 0.08);
    border: 1px solid rgba(14, 165, 156, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] .new-tool-highlight {
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.2);
}

.highlight-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--teal);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.highlight-badge i {
    width: 14px;
    height: 14px;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: var(--teal);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.highlight-icon i {
    width: 28px;
    height: 28px;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.highlight-text {
    flex: 1;
}

.highlight-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.25rem;
    transition: color var(--transition-speed);
}

.highlight-text h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.highlight-text h3 a:hover {
    color: var(--teal);
}

.highlight-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.highlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--teal);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.highlight-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 156, 0.3);
}

.highlight-btn i {
    width: 18px;
    height: 18px;
}

/* ============================================
   CATEGORY PROMO GRID
   ============================================ */
.category-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.category-promo-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-promo-card.gif-theme {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.category-promo-card.file-theme {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.category-promo-card.converter-theme {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

[data-theme="dark"] .category-promo-card.gif-theme {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.25);
}

[data-theme="dark"] .category-promo-card.file-theme {
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.25);
}

[data-theme="dark"] .category-promo-card.converter-theme {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.25);
}

.category-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-promo-card.gif-theme:hover {
    border-color: #8b5cf6;
}

.category-promo-card.file-theme:hover {
    border-color: #6366f1;
}

.category-promo-card.converter-theme:hover {
    border-color: var(--primary);
}

.category-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-promo-icon i {
    width: 24px;
    height: 24px;
}

/* Single color backgrounds for promo icons */
.gif-theme .category-promo-icon { background: var(--purple); }
.file-theme .category-promo-icon { background: var(--indigo); }
.converter-theme .category-promo-icon { background: var(--primary); }

.category-promo-content {
    flex: 1;
}

.category-promo-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px;
    transition: color var(--transition-speed);
}

.category-promo-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.category-promo-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.category-promo-arrow i {
    width: 20px;
    height: 20px;
}

.category-promo-card:hover .category-promo-arrow {
    transform: translateX(4px);
}

.gif-theme:hover .category-promo-arrow { color: #8b5cf6; }
.file-theme:hover .category-promo-arrow { color: #6366f1; }
.converter-theme:hover .category-promo-arrow { color: var(--primary); }

/* ============================================
   POPULAR TOOLS SECTION
   ============================================ */
.popular-section {
    background: rgba(52,152,219,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    transition: background-color var(--transition-speed);
}

[data-theme="dark"] .popular-section {
    background: rgba(96,165,250,0.1);
}

.popular-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.popular-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.popular-icon i {
    width: 20px;
    height: 20px;
}

.popular-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-speed);
}

.popular-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.popular-tool i {
    width: 14px;
    height: 14px;
}

.popular-tool:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

[data-theme="dark"] .popular-tool:hover {
    box-shadow: 0 4px 12px rgba(96,165,250,0.3);
}

/* ============================================
   RELATED SECTION
   ============================================ */
.related-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.related-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.related-header-icon {
    width: 36px;
    height: 36px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.related-header-icon i {
    width: 20px;
    height: 20px;
}

.related-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-speed);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(46,204,113,0.06);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

[data-theme="dark"] .related-card {
    background: rgba(74,222,128,0.1);
    border-color: rgba(74,222,128,0.2);
}

.related-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(46,204,113,0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .related-card:hover {
    box-shadow: 0 4px 12px rgba(74,222,128,0.2);
}

.related-card-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.related-card-icon i {
    width: 20px;
    height: 20px;
}

.related-card-content {
    flex: 1;
    min-width: 0;
}

.related-card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 2px;
    transition: color var(--transition-speed);
}

.related-card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.related-card-arrow {
    color: var(--secondary);
    transition: var(--transition);
}

.related-card-arrow i {
    width: 18px;
    height: 18px;
}

.related-card:hover .related-card-arrow {
    transform: translateX(4px);
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-icon i {
    width: 20px;
    height: 20px;
}

.info-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-speed);
}

.info-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-content p:last-child {
    margin-bottom: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-speed);
}

[data-theme="dark"] .feature-item {
    background: var(--card-secondary);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-icon i {
    width: 16px;
    height: 16px;
}

.feature-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px;
    transition: color var(--transition-speed);
}

.feature-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.faq-icon {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.faq-icon i {
    width: 20px;
    height: 20px;
}

.faq-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-speed);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="dark"] .faq-question {
    background: var(--card-secondary);
}

.faq-question:hover {
    background: #e8e8ea;
}

[data-theme="dark"] .faq-question:hover {
    background: #475569;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
    transition: color var(--transition-speed);
}

.faq-toggle {
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-toggle i {
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 16px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0;
}

/* ============================================
   AD CONTAINER
   ============================================ */
.ad-container {
    margin: 2rem 0;
    text-align: center;
}

/* ============================================
   TOOL DESCRIPTION (for individual tool pages)
   ============================================ */
.tool-description {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .converters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .highlight-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1rem 1.25rem;
    }
    
    .header-title-row {
        gap: 10px;
    }
    
    .page-icon {
        width: 38px;
        height: 38px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .converters-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-card {
        padding: 16px;
    }
    
    .section-description {
        padding-left: 0;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .related-section,
    .info-section,
    .faq-section,
    .popular-section {
        padding: 1.25rem;
    }
    
    .new-tool-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .highlight-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
    }
    
    .highlight-content {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-text {
        text-align: center;
    }
    
    .category-promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.15rem;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
    }
    
    .card-icon i {
        width: 22px;
        height: 22px;
    }
    
    .popular-tools {
        gap: 8px;
    }
    
    .popular-tool {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-suggestions {
        flex-direction: column;
        gap: 10px;
    }
    
    .suggestion-label {
        margin-bottom: 4px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
    
    .converter-card::after {
        display: none;
    }
    
    .converter-card:hover,
    .category-promo-card:hover,
    .related-card:hover,
    .popular-tool:hover {
        transform: none;
    }
    
    .faq-answer {
        transition: none;
    }
}
