/*
 * tools.css — CSS harmonisé pour toutes les pages du répertoire tools/
 * Design identique à bet.css / surebet.css / odds.css
 */

/* ============================================
   PAGE CONTAINER
============================================ */
.tool-page {
    padding: 0 4px 16px;
}

/* ============================================
   HERO SECTION
============================================ */
.tool-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    border-radius: 20px;
    padding: 28px 22px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
    border-radius: 50%;
    animation: toolHeroGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}

.tool-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    border-radius: 50%;
    animation: toolHeroGlow2 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes toolHeroGlow {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(-30px, 20px) scale(1.2); opacity: 1; }
}

@keyframes toolHeroGlow2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(30px, -20px) scale(1.3); opacity: 0.8; }
}

.tool-hero__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.tool-hero__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

.tool-hero__sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

/* ============================================
   TOOL CARD
============================================ */
.tool-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    padding: 20px;
}

.tool-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.tool-card__title i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================
   HINT TEXT
============================================ */
.tool-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

/* ============================================
   FORM ELEMENTS
============================================ */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.tool-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tool-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tool-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.tool-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.tool-input::placeholder {
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ============================================
   RÉSULTATS
============================================ */
.tool-result {
    background: var(--bg-main);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 16px;
}

.tool-result__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.tool-result__row:last-child {
    border-bottom: none;
}

.tool-result__row span {
    color: var(--text-secondary);
    font-weight: 500;
}

.tool-result__row strong {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ============================================
   BOUTONS PETITS
============================================ */
.tool-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.tool-btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    border-style: solid;
}

.tool-btn-sm--danger {
    border-color: rgba(220, 53, 69, 0.4);
    color: #dc3545;
    border-style: solid;
}

.tool-btn-sm--danger:hover {
    background: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
}

/* ============================================
   NUMÉRO DE SÉLECTION (pari combiné)
============================================ */
.tool-leg-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   LIEN VERS AUTRE OUTIL
============================================ */
.tool-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    margin-top: 8px;
}

.tool-link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
}

.tool-link-card > i:first-child {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.tool-link-card > i:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.tool-link-card span strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.tool-link-card span small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 430px) {
    .tool-hero { padding: 20px 16px 16px; border-radius: 16px; }
    .tool-hero__title { font-size: 1.3rem; }
    .tool-hero__sub { font-size: 0.78rem; max-width: 100%; }
    .tool-card { padding: 16px; }
}

@media (max-width: 360px) {
    .tool-hero { padding: 16px 12px 14px; }
    .tool-hero__title { font-size: 1.1rem; }
    .tool-input { padding: 8px 12px; font-size: 0.88rem; }
}
