/**
 * Crypto Tools Styles
 * 
 * Modern, polished styling for the tools hub and individual tool pages.
 *
 * @package TheCoinsPost
 */

/* ==========================================================================
   Tools Hub Page
   ========================================================================== */

.tools-hub-page {
    padding: 3rem 0 4rem;
}

/* Header */
.tools-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.tools-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .tools-title {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary, #64748b);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Featured Tools Section
   ========================================================================== */

.featured-tools {
    margin-bottom: 3.5rem;
}

.tools-hub-page .featured-grid,
.featured-tools-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.5rem 2rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    color: #ffffff !important;
    border-radius: 1.125rem;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 230px;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px -10px rgba(37, 99, 235, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.32);
}

.featured-card.viral {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.featured-card.viral:hover {
    box-shadow: 0 25px 45px -10px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
    border-color: rgba(255, 255, 255, 0.32);
}

.featured-card:nth-child(3) {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%);
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.featured-card:nth-child(3):hover {
    box-shadow: 0 25px 45px -10px rgba(249, 115, 22, 0.5), 0 0 20px rgba(249, 115, 22, 0.3);
    border-color: rgba(255, 255, 255, 0.32);
}

/* Explicit high-contrast typography and link rules for featured cards */
.featured-card:link,
.featured-card:visited,
.featured-card:active,
.featured-card:hover,
html.dark-mode .featured-card,
.dark-mode .featured-card {
    color: #ffffff !important;
    text-decoration: none !important;
}

.featured-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.28rem 0.8rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.featured-icon {
    font-size: 2.75rem;
    line-height: 1;
    margin-bottom: 0.875rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-card:hover .featured-icon {
    transform: scale(1.12);
}

.featured-card h3,
html.dark-mode .featured-card h3,
.dark-mode .featured-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.35rem 0 0.5rem;
    line-height: 1.3;
    color: #ffffff !important;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.featured-card p,
html.dark-mode .featured-card p,
.dark-mode .featured-card p {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #ffffff !important;
    opacity: 0.98 !important;
    line-height: 1.5;
    margin: 0;
    max-width: 92%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.featured-action {
    margin-top: auto;
    padding-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff !important;
    letter-spacing: 0.02em;
    opacity: 0.92;
    transition: all 0.2s ease;
}

.featured-card:hover .featured-action {
    opacity: 1;
}

.featured-arrow {
    transition: transform 0.2s ease;
}

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

/* ==========================================================================
   Category Sections
   ========================================================================== */

.tools-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 0.75rem;
    color: white;
}

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

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin: 0;
}

/* ==========================================================================
   Tools Grid
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.125rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tool-color, #3b82f6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tool-card:hover {
    border-color: var(--tool-color, #3b82f6);
    background: var(--color-bg, #ffffff);
    transform: translateY(-2px) translateX(2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 
                0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--tool-color, #3b82f6) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tool-color, #3b82f6) 20%, transparent);
    border-radius: 0.875rem;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.tool-card:hover .tool-icon {
    background: color-mix(in srgb, var(--tool-color, #3b82f6) 20%, transparent);
    transform: scale(1.06);
}

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

.tool-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text, #121826);
    margin-bottom: 0.3rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.tool-card:hover .tool-name {
    color: var(--tool-color, #2563eb);
}

.tool-description {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--color-text-muted, #94a3b8);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.tool-card:hover .tool-arrow {
    background: var(--tool-color, #3b82f6);
    border-color: var(--tool-color, #3b82f6);
    color: white;
    transform: translateX(3px);
}

/* ==========================================================================
   SEO Content Section
   ========================================================================== */

.tools-seo-content {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--color-bg-secondary, #f8fafc) 0%, var(--color-bg, #ffffff) 100%);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1.25rem;
}

.tools-seo-content h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text, #1a1a2e);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.seo-item {
    text-align: center;
    padding: 1rem;
}

.seo-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text, #1a1a2e);
}

.seo-item p {
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Individual Tool Page Styles
   ========================================================================== */

.tool-page,
.calculator-page,
.single-page {
    padding: 2rem 0 4rem;
}

.tool-page-header,
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.tool-page-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.tool-page-title,
.entry-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text, #1a1a2e);
}

.tool-page-description,
.page-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary, #64748b);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Calculator Page Layout */
.calculator-page-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 1.5rem;
}

.calculator-main {
    min-width: 0;
}

.calculator-sidebar > * {
    margin-bottom: 1.5rem;
}

/* Extra Info Section */
.calculator-extra-info {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
}

.dark-mode .calculator-extra-info {
    background: var(--tcp-card-bg, #1e293b);
    border-color: var(--tcp-border-color, #334155);
}

.calculator-extra-info h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text, #1a1a2e);
}

.dark-mode .calculator-extra-info h2 {
    color: var(--tcp-text-primary, #f1f5f9);
}

.calculator-extra-info ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-extra-info li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
}

/* Crypto Tags */
.supported-cryptos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crypto-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: var(--color-bg, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary, #64748b);
    transition: all 0.2s ease;
}

.crypto-tag:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.dark-mode .crypto-tag {
    background: var(--tcp-bg-tertiary, #334155);
    border-color: var(--tcp-border-color, #475569);
    color: var(--tcp-text-secondary, #94a3b8);
}

.dark-mode .crypto-tag:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

/* Info Note */
.info-note {
    padding: 1rem;
    background: var(--color-bg, #ffffff);
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
}

.info-note strong {
    color: var(--color-text, #1a1a2e);
}

.dark-mode .info-note {
    background: var(--tcp-bg-tertiary, #334155);
    border-left-color: #fbbf24;
}

.dark-mode .info-note strong {
    color: var(--tcp-text-primary, #f1f5f9);
}

.info-note.warning {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.dark-mode .info-note.warning {
    background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Glossary Page Styles
   ========================================================================== */

.glossary-page-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    margin-top: 1.5rem;
}

.glossary-main {
    min-width: 0;
}

.glossary-sidebar > * {
    margin-bottom: 1.5rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.875rem;
    padding: 1.25rem;
}

.dark-mode .sidebar-widget {
    background: var(--tcp-card-bg, #1e293b);
    border-color: var(--tcp-border-color, #334155);
}

.sidebar-widget .widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted, #94a3b8);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.dark-mode .sidebar-widget .widget-title {
    border-bottom-color: var(--tcp-border-color, #334155);
}

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

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

.quick-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--color-bg, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.5rem;
    color: var(--color-text, #1a1a2e);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.dark-mode .quick-links a {
    background: var(--tcp-bg-tertiary, #334155);
    border-color: var(--tcp-border-color, #475569);
    color: var(--tcp-text-primary, #f1f5f9);
}

.dark-mode .quick-links a:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Tool Calculator Container */
.tool-calculator {
    background: var(--color-bg, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tool-calculator-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.tool-calculator-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text, #1a1a2e);
    margin: 0;
}

/* Form Elements */
.tool-form-group {
    margin-bottom: 1.25rem;
}

.tool-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text, #1a1a2e);
    margin-bottom: 0.5rem;
}

.tool-form-input,
.tool-form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.625rem;
    background: var(--color-bg, #ffffff);
    color: var(--color-text, #1a1a2e);
    transition: all 0.2s ease;
}

.tool-form-input:focus,
.tool-form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tool-form-input::placeholder {
    color: var(--color-text-muted, #94a3b8);
}

/* Results Section */
.tool-results {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 0.875rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.dark-mode .tool-results {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
    border-color: #334155;
}

.tool-results-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.dark-mode .tool-results-title {
    color: #7dd3fc;
}

.tool-results-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.dark-mode .tool-results-value {
    color: #f0f9ff;
}

.tool-results-detail {
    font-size: 0.875rem;
    color: #0369a1;
}

.dark-mode .tool-results-detail {
    color: #7dd3fc;
}

/* Button Styles */
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.tool-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tool-btn-secondary {
    background: var(--color-bg-secondary, #f8fafc);
    color: var(--color-text, #1a1a2e);
    border: 1px solid var(--color-border, #e5e7eb);
}

.tool-btn-secondary:hover {
    background: var(--color-bg-tertiary, #f1f5f9);
    border-color: var(--color-text-muted, #94a3b8);
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

html.dark-mode .tools-description,
.dark-mode .tools-description {
    color: #cbd5e1 !important;
}

html.dark-mode .tool-card,
.dark-mode .tool-card {
    background: var(--surface-raised, #181d27) !important;
    border-color: var(--color-border, #2e3648) !important;
}

html.dark-mode .tool-card:hover,
.dark-mode .tool-card:hover {
    background: var(--color-bg-tertiary, #222938) !important;
    border-color: var(--tool-color, #3b82f6) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

html.dark-mode .tool-name,
.dark-mode .tool-name {
    color: #f6f8fc !important;
}

html.dark-mode .tool-card:hover .tool-name,
.dark-mode .tool-card:hover .tool-name {
    color: var(--tool-color, #60a5fa) !important;
}

html.dark-mode .tool-description,
.dark-mode .tool-description {
    color: #cbd5e1 !important; /* Crisp Slate-300: High contrast, 8.5:1 ratio */
}

html.dark-mode .category-title,
.dark-mode .category-title {
    color: #f6f8fc !important;
}

html.dark-mode .category-header,
.dark-mode .category-header {
    border-bottom-color: #2e3648 !important;
}

html.dark-mode .tool-arrow,
.dark-mode .tool-arrow {
    background: #252c3b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html.dark-mode .tool-card:hover .tool-arrow,
.dark-mode .tool-card:hover .tool-arrow {
    background: var(--tool-color, #3b82f6) !important;
    border-color: var(--tool-color, #3b82f6) !important;
    color: #ffffff !important;
}

html.dark-mode .tools-seo-content,
.dark-mode .tools-seo-content {
    background: linear-gradient(135deg, #181d27 0%, #10131a 100%) !important;
    border-color: #2e3648 !important;
}

html.dark-mode .tools-seo-content h2,
.dark-mode .tools-seo-content h2,
html.dark-mode .seo-item h3,
.dark-mode .seo-item h3 {
    color: #f6f8fc !important;
}

html.dark-mode .seo-item p,
.dark-mode .seo-item p {
    color: #cbd5e1 !important;
}

html.dark-mode .tool-calculator,
.dark-mode .tool-calculator {
    background: #181d27 !important;
    border-color: #2e3648 !important;
}

html.dark-mode .tool-form-input,
html.dark-mode .tool-form-select,
.dark-mode .tool-form-input,
.dark-mode .tool-form-select {
    background: #222938 !important;
    border-color: #2e3648 !important;
    color: #f6f8fc !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .tools-hub-page .featured-grid,
    .featured-tools-grid,
    .featured-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem;
    }

    .featured-card {
        min-height: 200px;
        padding: 1.75rem 1.25rem;
    }

    .featured-icon {
        font-size: 2.25rem;
    }

    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 860px) {
    .tools-hub-page .featured-grid,
    .featured-tools-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.125rem;
    }

    .tools-hub-page .featured-card:nth-child(3),
    .featured-tools-grid .featured-card:nth-child(3) {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .tools-hub-page .featured-grid,
    .featured-tools-grid,
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .tools-hub-page .featured-card:nth-child(3),
    .featured-tools-grid .featured-card:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .tools-hub-page {
        padding: 2rem 0 3rem;
    }

    .tools-title {
        font-size: 2rem;
    }

    .tools-description {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 1rem 1.25rem;
    }

    .tool-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .seo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tools-seo-content {
        padding: 1.5rem;
    }

    .category-header {
        gap: 0.75rem;
    }

    .category-icon {
        width: 38px;
        height: 38px;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .tool-page-title {
        font-size: 1.75rem;
    }

    .tool-calculator {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .featured-card {
        min-height: 140px;
    }

    .featured-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .featured-card h3 {
        font-size: 1.125rem;
    }

    .tool-arrow {
        display: none;
    }
}

/* Calculator Page Responsive */
@media (max-width: 1024px) {
    .calculator-page-content,
    .glossary-page-content {
        grid-template-columns: 1fr;
    }

    .calculator-sidebar,
    .glossary-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .tool-page-title,
    .entry-title {
        font-size: 1.75rem;
    }

    .tool-page-description,
    .page-description {
        font-size: 1rem;
    }

    .calculator-extra-info {
        padding: 1.25rem;
    }
}
