/* ===== TOOLS PAGE STYLES =====
* 
* WHAT THIS FILE DOES:
* This file styles the tools page where people can find helpful SEO and marketing tools.
* Think of it like organizing a toolbox - each tool needs to be easy to find and use!
*
* We use green colors here because:
* - Green represents growth (like plants growing)
* - SEO is about growing website traffic
* - Green feels fresh and helpful
*/

/* Font Awesome icon fixes for tools page */
.tools-page i[class*="fa-"],
.tools-page .fa-solid,
.tools-page .fa-regular,
.tools-page .fa-brands,
.tools-page .fas,
.tools-page .far,
.tools-page .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.tools-page .fa-solid,
.tools-page .fas {
    font-weight: 900 !important;
}

.tools-page .fa-regular,
.tools-page .far {
    font-weight: 400 !important;
}

.tools-page .fa-brands,
.tools-page .fab {
    font-weight: 400 !important;
    font-family: "Font Awesome 6 Brands" !important;
}

/* TOOLS PAGE SPECIAL COLORS - Literary Tech Theme */
.tools-page {
    --tools-primary: #CC6848;      /* Terracotta */
    --tools-secondary: #b85a3d;    /* Dark Terracotta */
    --tools-accent: #C5D6CD;       /* Sage Green */
    --tools-bg: #F3F0E7;           /* Warm Cream */
}

/* TOOLS PAGE LOGO COLORS - Editorial theme */
.tools-page .logo h1 { color: var(--text-color); }
.tools-page .logo span { color: var(--tools-primary); }

/* TOOLS PAGE FOOTER LOGO COLORS - Ensure proper color display */
.tools-page .footer-logo h2 { 
    color: white !important; 
}
.tools-page .footer-logo span { 
    color: var(--tools-primary) !important; 
}

/* TOOLS PAGE FOOTER SOCIAL LINKS - Editorial theme */
.tools-page .social-links a {
    background-color: rgba(204, 104, 72, 0.1) !important;
    border: 1px solid rgba(204, 104, 72, 0.2) !important;
    color: var(--tools-primary) !important;
}

.tools-page .social-links a i {
    color: currentColor !important;
}

.tools-page .social-links a:hover {
    background-color: var(--tools-primary) !important;
    color: #ffffff !important;
}

/* TOOLS PAGE FOOTER LINKS - Use tools theme colors */
.tools-page .footer-links a:hover {
    color: var(--tools-primary) !important;
}

.tools-page .contact-info i {
    color: var(--tools-primary) !important;
}

.tools-page .contact-info a:hover {
    color: var(--tools-primary) !important;
}

/* TOOLS PAGE NAVIGATION ACTIVE UNDERLINE - Editorial theme */
.tools-page .nav-links a.active::after {
    background-color: var(--tools-primary) !important;
}

/* ====== TOOLS HERO SECTION ====== */
/* This is the impressive banner at the top of the tools page.
   Dark theme matching the site's footer and dark sections. */

.tools-hero {
    background: linear-gradient(135deg, #191919 0%, #2d2d2d 100%);
    /* Dark theme matching site's established design */
    color: white;
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

/* ANIMATED BACKGROUND PATTERN - Subtle terracotta-tinted dots */
.tools-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23CC6848' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

/* HERO CONTENT CONTAINER */
.tools-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* MAIN HERO TITLE */
.tools-hero h1 {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
    letter-spacing: -0.02em;
}

.tools-hero h1 i {
    color: var(--tools-primary);
    margin-right: 1rem;
}

/* HERO DESCRIPTION */
.tools-hero p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-sans, 'Inter', sans-serif);
    line-height: 1.6;
}

.tools-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.tools-stats .stat-item {
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.tools-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(204, 104, 72, 0.3);
}

.tools-stats .stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tools-primary);
    font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
}

.tools-stats .stat-label { 
    font-size: 1.3rem; 
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====== TOOLS GRID ====== */
.tools-grid, .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* ====== TOOLS TOOLBAR ====== */
.tools-toolbar { background: var(--card-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06); }

.tools-toolbar .toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
}

.toolbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.8rem 1.2rem;
}
.toolbar-search i { 
    color: var(--text-light);
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}
.toolbar-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-color);
}

.toolbar-controls { display: flex; align-items: center; gap: 1.2rem; }

.view-toggle button {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 3.4rem; height: 3.4rem;
    border-radius: 8px;
    cursor: pointer;
}
.view-toggle button.active { color: var(--tools-primary); border-color: var(--tools-primary); }
.view-toggle i { 
    color: currentColor;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.sort-control { display: flex; align-items: center; gap: 0.6rem; }
.sort-control label { color: var(--text-light); font-size: 1.4rem; }
.sort-control select {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
}

.toolbar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0 0 1.4rem 0;
}
.chip {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.chip .chip-count { margin-left: 0.5rem; color: var(--text-light); }
.chip:hover { border-color: var(--tools-primary); }
.chip.active { background: var(--tools-bg); color: var(--tools-primary); border-color: var(--tools-primary); }

/* List view variants */
#toolsGrid.view-list { display: block; }
#toolsGrid.view-list .tool-dropdown-item {
    display: grid;
    grid-template-columns: 72px 1fr 220px;
    align-items: center;
    gap: 2.4rem;
    padding: 2rem 2.4rem;
    margin-bottom: 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}
#toolsGrid.view-list .tool-dropdown-item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08); border-color: rgba(204, 104, 72, 0.25); }
#toolsGrid.view-list .tool-dropdown-item.featured { border-color: rgba(204, 104, 72, 0.30); box-shadow: 0 10px 26px rgba(204, 104, 72, 0.14); }

#toolsGrid.view-list .tool-icon { margin: 0; width: 5rem; height: 5rem; }

#toolsGrid.view-list .tool-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: center;
    gap: 0.6rem;
}
#toolsGrid.view-list .tool-content h3 { margin: 0; font-size: 2rem; }
#toolsGrid.view-list .tool-content p {
    margin: 0;
    color: #475569;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#toolsGrid.view-list .tool-meta { border: 0; padding: 0; margin: 0.2rem 0 0; display: flex; align-items: center; gap: 1rem; }
#toolsGrid.view-list .tool-category { padding: 0.4rem 0.9rem; font-size: 1.2rem; background: var(--tools-bg); color: var(--tools-primary); }
#toolsGrid.view-list .tool-usage { font-size: 1.3rem; }

#toolsGrid.view-list .tool-actions { justify-self: end; }
#toolsGrid.view-list .tool-actions .btn { width: auto; min-width: 140px; border-radius: 999px; padding: 1.1rem 1.6rem; }
#toolsGrid.view-list .featured-badge { top: 1rem; right: 1rem; }

.tools-no-results { text-align: center; padding: 4rem 0; }
.tools-no-results i { font-size: 3rem; color: var(--text-light); }
.tools-no-results h3 { margin-top: 1rem; }

.tool-card, .category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tool-card:hover, .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 34, 56, 0.15);
}

.tool-card.featured {
    border: 2px solid var(--tools-accent);
    background: linear-gradient(135deg, #ffffff 0%, var(--tools-bg) 100%);
}

.tool-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--tools-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-icon, .category-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: none;
}

.tool-icon i, .category-icon i {
    font-size: 2.4rem;
    color: var(--text-color, #191919);
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.tool-content h3, .category-card h3 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--text-color, #191919); }

.tool-content p, .category-card p { margin-bottom: 2rem; line-height: 1.7; color: var(--text-secondary, #3D3D3D); }

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.tool-category {
    background: var(--tools-bg);
    color: var(--tools-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-usage {
    color: var(--text-light);
    font-size: 1.4rem;
}

.tool-link, .category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--tools-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.tool-link:hover, .category-link:hover {
    color: var(--tools-secondary);
    transform: translateX(5px);
}

.tool-link i, .category-link i {
    transition: var(--transition);
}

.tool-link:hover i, .category-link:hover i {
    transform: translateX(3px);
}

/* ====== TOOLS DROPDOWN GRID ====== */
.tools-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Anthropic-Style Tool Cards with colored backgrounds */
.tool-dropdown-item {
    background: var(--card-beige, #E8DDD1);
    border-radius: var(--border-radius-lg, 20px);
    padding: 3rem;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Colored backgrounds cycling through pastel palette */
.tool-dropdown-item:nth-child(3n+1) {
    background: var(--card-beige, #E8DDD1);
}

.tool-dropdown-item:nth-child(3n+2) {
    background: var(--card-sage, #C5D6CD);
}

.tool-dropdown-item:nth-child(3n+3) {
    background: var(--card-lavender, #D2D0DE);
}

.tool-dropdown-item:hover { 
    box-shadow: var(--card-shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.08)); 
    transform: translateY(-4px); 
}

.tool-dropdown-item.featured {
    border: none;
    background: var(--card-beige, #E8DDD1);
}

.tool-dropdown-item.featured:nth-child(3n+2) {
    background: var(--card-sage, #C5D6CD);
}

.tool-dropdown-item.featured:nth-child(3n+3) {
    background: var(--card-lavender, #D2D0DE);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--tools-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Clean flat icon styling - no gradients */
.tool-dropdown-item .tool-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: none;
}

.tool-dropdown-item .tool-icon i {
    font-size: 2.6rem;
    color: var(--text-color, #191919);
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.tool-dropdown-item .tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-dropdown-item .tool-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-color, #191919);
    font-weight: 500;
    font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
}

.tool-dropdown-item .tool-content p {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary, #3D3D3D);
    flex: 1;
    font-size: 1.5rem;
}

.tool-dropdown-item .tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tool-dropdown-item .tool-category {
    background: rgba(255, 255, 255, 0.5);
    color: var(--tools-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-dropdown-item .tool-usage {
    color: var(--text-muted, #7A7A7A);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tool-dropdown-item .tool-usage i { 
    color: var(--text-muted, #7A7A7A);
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.tool-dropdown-item .tool-usage::before {
    content: '📊';
    font-size: 1.4rem;
}

.tool-dropdown-item .tool-actions {
    margin-top: auto;
}

.tool-dropdown-item .btn {
    width: 100%;
    padding: 1.4rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.tool-dropdown-item .btn-primary {
    background: var(--tools-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(204, 104, 72, 0.25);
}

.tool-dropdown-item .btn-primary:hover {
    background: var(--tools-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204, 104, 72, 0.35);
}

.tool-dropdown-item .btn-outline {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-muted, #7A7A7A);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
    opacity: 0.85;
}

.tool-dropdown-item .btn-outline:disabled {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-muted, #7A7A7A);
    border: 2px dashed rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
    opacity: 0.85;
}

/* ====== NO TOOLS STATE ====== */
.no-tools {
    text-align: center;
    padding: 8rem 2rem;
    color: var(--text-light);
}

.no-tools-icon {
    width: 10rem;
    height: 10rem;
    background: var(--tools-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
}

.no-tools-icon i {
    font-size: 4rem;
    color: var(--tools-primary);
}

.no-tools h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.no-tools p {
    font-size: 1.8rem;
    max-width: 50rem;
    margin: 0 auto;
}

/* ====== ANALYSES SECTION ====== */
.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.analysis-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 34, 56, 0.15);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.analysis-url {
    color: var(--tools-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.4rem;
    word-break: break-all;
}

.analysis-url i {
    margin-right: 0.5rem;
}

.analysis-grade {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    min-width: 4rem;
    text-align: center;
}

.grade-a { background: #10b981; }
.grade-b { background: #06b6d4; }
.grade-c { background: #f59e0b; }
.grade-d { background: #f97316; }
.grade-f { background: #ef4444; }

.analysis-content h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.analysis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.analysis-score {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--tools-primary);
}

.analysis-link {
    color: var(--tools-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.analysis-link:hover {
    color: var(--tools-secondary);
    transform: translateX(3px);
}

.tools-cta {
    background: linear-gradient(135deg, var(--tools-bg) 0%, #ffffff 100%);
    padding: 8rem 0;
    text-align: center;
}

.tools-cta .cta-content h2 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.tools-cta .cta-content p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    color: var(--text-light);
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.tools-cta .btn-primary {
    background: var(--tools-primary);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.tools-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(204, 104, 72, 0.30);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: var(--tools-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 104, 72, 0.30);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 104, 72, 0.40);
}

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

.cta-buttons .btn-outline:hover {
    background: var(--tools-primary);
    color: white;
    transform: translateY(-2px);
}

.analyses-list {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 4rem;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.analysis-item:hover {
    background: var(--tools-bg);
}

.analysis-info .analysis-url {
    color: var(--tools-primary);
    font-weight: 600;
    text-decoration: none;
}

.analysis-info .analysis-title {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.analysis-score {
    font-weight: 700;
    font-size: 1.8rem;
}

.score-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.score-percentage {
    font-size: 1.2rem;
    opacity: 0.9;
}

.analysis-date {
    color: var(--text-light);
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .tools-hero h1 {
        font-size: 3.6rem;
    }

    .tools-hero p {
        font-size: 1.8rem;
    }

    .tools-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .tools-grid, .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tools-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .analysis-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .analysis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .analysis-meta {
        width: 100%;
        justify-content: space-between;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tools-toolbar .toolbar-row { flex-direction: column; align-items: stretch; }
    #toolsGrid.view-list .tool-dropdown-item { grid-template-columns: 56px 1fr; }
    #toolsGrid.view-list .tool-actions { grid-column: 1 / -1; justify-self: start; margin-top: 1rem; }
}

@media (max-width: 480px) {
    .tools-hero {
        padding: 8rem 0 6rem;
    }

    .tool-card, .category-card {
        padding: 2rem;
    }

    .tool-dropdown-item {
        padding: 2rem;
    }

    .analysis-card {
        padding: 2rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.tool-card, .category-card, .analysis-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

/* Stagger animation for grid items */
.tool-card:nth-child(1), .tool-dropdown-item:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2), .tool-dropdown-item:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3), .tool-dropdown-item:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4), .tool-dropdown-item:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5), .tool-dropdown-item:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6), .tool-dropdown-item:nth-child(6) { animation-delay: 0.6s; }

/* ====== SERVICE INQUIRY CTA SECTION - TOOLS PAGE ====== */
body.tools-page .service-inquiry-cta {
    padding: 6rem 0 !important;
    background: #191919 !important;
}

.tools-page section.service-inquiry-cta {
    padding: 6rem 0 !important;
    background: #191919 !important;
}

.tools-page .service-inquiry-container {
    max-width: 110rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.tools-page .service-inquiry-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tools-page .service-inquiry-headline,
body.tools-page .service-inquiry-cta h2 {
    font-size: 3rem !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif, 'Source Serif 4', Georgia, serif);
    font-weight: 500;
}

.tools-page .service-inquiry-description,
body.tools-page .service-inquiry-cta .service-inquiry-description {
    font-size: 1.6rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    max-width: 60rem;
    margin: 0 auto;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.tools-page .service-inquiry-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.tools-page .service-inquiry-form,
body.tools-page .service-inquiry-cta form {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 3rem !important;
}

.tools-page .service-inquiry-group {
    margin-bottom: 2rem;
}

.tools-page .service-inquiry-label {
    display: block;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 500;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.tools-page .service-inquiry-input,
.tools-page .service-inquiry-textarea {
    width: 100%;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.5rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    transition: var(--transition);
}

.tools-page .service-inquiry-input::placeholder,
.tools-page .service-inquiry-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.tools-page .service-inquiry-input:focus,
.tools-page .service-inquiry-textarea:focus {
    outline: none;
    border-color: var(--tools-primary);
    background: rgba(255, 255, 255, 0.12);
}

.tools-page .service-inquiry-textarea {
    min-height: 12rem;
    resize: vertical;
}

.tools-page .service-inquiry-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.4rem 2rem;
    background: var(--tools-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    cursor: pointer;
    transition: var(--transition);
}

.tools-page .service-inquiry-submit:hover {
    background: var(--tools-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 104, 72, 0.3);
}

.tools-page .service-inquiry-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tools-page .service-inquiry-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.tools-page .service-inquiry-icon {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 104, 72, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.tools-page .service-inquiry-icon i {
    font-size: 2rem;
    color: var(--tools-primary);
}

.tools-page .service-inquiry-info h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-weight: 600;
}

.tools-page .service-inquiry-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    margin: 0;
}

/* Service Inquiry Responsive */
@media screen and (max-width: 1024px) {
    .tools-page .service-inquiry-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tools-page .service-inquiry-contact-details {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .tools-page .service-inquiry-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .tools-page .service-inquiry-form {
        padding: 2rem;
    }
    
    .tools-page .service-inquiry-headline {
        font-size: 2.4rem;
    }
}