/* ============================================== */
/* TOOLS HUB — tool.css (Premium Light)           */
/* ============================================== */

/* Header & Hero */
.tool-header {
    min-height: 60vh;
    padding: 10rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(88, 80, 236, 0.05), transparent 50%);
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--primary);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.tool-title-gradient {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 800px;
    margin: 1.5rem auto 3.5rem;
    font-size: 1.2rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-launch-btn {
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(88, 80, 236, 0.3);
}

.tool-launch-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-hover);
    box-shadow: 0 15px 40px rgba(88, 80, 236, 0.4);
}

/* Controls & Filters */
.tool-controls-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

#toolSearch {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.75rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

#toolSearch:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 10px 40px rgba(88, 80, 236, 0.1);
}

.filter-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-chip {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-chip:hover {
    background: var(--bg-alt);
    border-color: var(--primary-light);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(88, 80, 236, 0.2);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.tool-compact-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-compact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.tool-compact-card .tool-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    margin: 0;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
}

.tool-compact-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 1.5rem 0 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.tool-compact-card p.description {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tool-quick-info {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.tool-quick-info h5 {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tool-quick-info p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.tool-card-actions .tool-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(88, 80, 236, 0.2);
}

.tool-card-actions .tool-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(88, 80, 236, 0.3);
}

/* Info Sections */
.feature-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* FAQ */
details {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    margin-bottom: 1.25rem;
    transition: all 0.3s;
}

details[open] {
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

summary {
    padding: 1.75rem 2rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '\00d7'; /* Standardized Multiplication Sign for X */
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 300;
}

details[open] summary::after {
    transform: rotate(180deg);
    color: var(--secondary);
}

details p {
    padding: 0 2rem 2rem;
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Responsiveness */
@media (max-width: 900px) {
    .filter-chips {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; }
    
    .tools-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .tool-header { padding-top: 8rem; }
    .tool-title-gradient { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.1rem; }
}
