﻿/*
 * Compteur de Mots - Tool-specific styles
 * FR site: calcul-en-ligne.online/compteur-mots/
 */

/* ========== Textarea ========== */
#text-input {
    width: 100%;
    min-height: 200px;
    padding: var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    resize: vertical;
    line-height: 1.6;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#text-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

#text-input::placeholder {
    color: var(--text-muted);
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Stat Card ========== */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
}

/* ========== Pulse Animation ========== */
@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: var(--accent-secondary); }
    100% { transform: scale(1); }
}

.stat-pulse {
    animation: statPulse 0.3s ease-out;
}

/* ========== Tool Instructions ========== */
.tool-instructions {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.tool-instructions ol {
    padding-left: var(--space-xl);
}

.tool-instructions li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.tool-instructions li strong {
    color: var(--text-primary);
}

/* ========== FAQ ========== */
.tool-faq {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.tool-faq h2 {
    margin-bottom: var(--space-lg);
}

.faq-item {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== Sidebar ========== */
.tool-sidebar h3 {
    margin-bottom: var(--space-md);
}

.related-tools {
    list-style: none;
    padding: 0;
}

.related-tools li {
    margin-bottom: var(--space-sm);
}

.related-tools a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.related-tools a:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(4px);
}
