/* ===== TOOLS SHARED STYLES ===== */

.tool-hero {
    background: var(--gradient);
    padding: 32px 16px 28px;
    text-align: center;
    color: white;
    position: relative;
}
.tool-hero h1 { color: white; font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.tool-hero p { font-size: 0.88rem; opacity: 0.9; max-width: 500px; margin: 0 auto; }
@media (max-width: 576px) {
    .tool-hero { padding: 24px 14px 22px; }
    .tool-hero h1 { font-size: 1.3rem; }
}

.tool-container { max-width: 900px; margin: 0 auto; padding: 24px 16px 40px; }
.tool-container-wide { max-width: 1100px; margin: 0 auto; padding: 24px 16px 40px; }

/* Tool Card */
.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 576px) { .tool-card { padding: 16px; } }

/* Form Row */
.tool-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 576px) { .tool-form-row { grid-template-columns: 1fr; } }

.tool-form-group { margin-bottom: 14px; }
.tool-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.tool-form-group input,
.tool-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}
.tool-form-group input:focus,
.tool-form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,31,142,0.1);
}

.tool-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-color);
}
.tool-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,31,142,0.3); }

/* Result Panel */
.tool-result {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    display: none;
}
.tool-result.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,31,142,0.1);
    font-size: 0.88rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--text-light); font-weight: 500; }
.result-value { color: var(--dark); font-weight: 700; }
.result-highlight {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    padding: 10px 0;
}

/* Table */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.tool-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(255,31,142,0.15);
}
.tool-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.tool-table tr:hover td { background: #fafafa; }

/* Name Cards Grid */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.name-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all 0.25s;
}
.name-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(255,31,142,0.1);
    transform: translateY(-2px);
}
.name-card .nc-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}
.name-card .nc-native {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 6px;
}
.name-card .nc-meaning {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}
.name-card .nc-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.name-card .nc-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
}

/* Letter Filter */
.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.letter-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.letter-btn:hover, .letter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Gender Filter */
.gender-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.gender-btn {
    padding: 7px 18px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.gender-btn:hover, .gender-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Astrology Match */
.match-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-color);
}

/* Language Cards (Names Hub) */
.lang-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.lang-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}
.lang-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    color: var(--text);
    text-decoration: none;
}
.lang-card .lc-icon { font-size: 2rem; margin-bottom: 10px; }
.lang-card .lc-title { font-size: 1rem; font-weight: 700; color: var(--dark); }
.lang-card .lc-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Pagination */
.tl-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pg-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    background: white;
    border: 1.5px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
}
.pg-btn:hover, .pg-btn.is-current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* SEO Content */
.tool-content { margin-top: 30px; }
.tool-content h2 { font-size: 1.2rem; color: var(--dark); margin-bottom: 10px; }
.tool-content p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.7; }
