/* ===== Tools Index — page-specific styles ===== */
/* Hero, nav, footer, search-form handled by site-basic.css + tools-basic.css */

:root.tools-index {
    --primary: #0077BE;
    --primary-dark: #005a8d;
    --primary-light: #00CED1;
    --accent: #00CED1;
    --gradient-main: linear-gradient(135deg, #0077BE 0%, #00CED1 100%);
    --gradient-2: linear-gradient(135deg, #0077BE 0%, #00CED1 100%);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-dark: #1f2937;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
    --primary-bg-1: rgba(0, 119, 190, 0.05);
    --primary-bg-2: rgba(0, 206, 209, 0.05);
    --hero-filter: drop-shadow(0 4px 20px rgba(0, 119, 190, 0.3));
    --focus-shadow: 0 25px 50px rgba(0, 119, 190, 0.15), inset 0 0 0 2px rgba(0, 119, 190, 0.1);
}

/* --- Tool selector (radio buttons below search) --- */
.tool-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.tool-option {
    cursor: pointer;
    user-select: none;
}

.tool-option input[type="radio"] {
    display: none;
}

.tool-option span {
    display: inline-block;
    padding: 6px 16px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: var(--transition-base);
}

.tool-option:hover span {
    border-color: #d1d5db;
    color: var(--text-primary);
}

.tool-option.active span {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

/* --- Tool card grid --- */
.tools-grid-section {
    padding: 40px 20px;
    background: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius, 12px);
    text-decoration: none;
    transition: var(--transition-base);
}

.tool-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tool-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tool-card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.tools-grid .share-icons {
    grid-column: 1 / -1;
}

/* --- Content section --- */
.tools-index .content-section { padding: 40px 20px; background: #fff; }
.tools-index .content-container { max-width: 1200px; margin: 0 auto; }
.tools-index .content-section h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 20px; }
.tools-index .content-section h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 24px 0 12px; }
.tools-index .content-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; font-size: 1rem; }
.tools-index .content-section a { color: #0077BE; text-decoration: none; font-weight: 600; }
.tools-index .content-section a:hover { color: #005a8d; text-decoration: underline; }

/* --- Section divider --- */
.tools-index .section-divider {
    height: 1px;
    background: var(--border-light);
    max-width: 1100px;
    margin: 0 auto;
}

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

@media (max-width: 640px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tools-grid-section { padding: 24px 16px 40px; }
    .tools-index .content-section { padding: 30px 16px; }
    .tool-card { padding: 20px 16px; }
    .tool-selector { gap: 6px; }
    .tool-option span { padding: 5px 12px; font-size: 0.8rem; }
}
