/* NOXAI Scanner - Casino Style Results CSS */

/* ===== RÉSULTAT D'ANALYSE ===== */
.analysis-card.casino-analysis-card {
    background: linear-gradient(135deg, #191c2b 60%, #24243e 100%);
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.22), 0 1.5px 0 #9945ff;
    padding: 2.2rem 1.6rem 1.5rem 1.6rem;
    margin: 2.5rem auto 1.5rem auto;
    max-width: 540px;
    border: 2.5px solid #282d41;
    position: relative;
    animation: fadeInCard 0.7s cubic-bezier(.45,.05,.55,.95);
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.noxai-assistant-header {
    background: linear-gradient(135deg, #9945ff15 0%, #14f19515 100%);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #9945ff25;
    box-shadow: 0 0 10px #9945ff33;
}
.noxai-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px #9945ff44;
    display: flex; align-items: center; justify-content: center;
}
.noxai-avatar-img { width: 24px; height: 24px; border-radius: 50%; }
.noxai-brand .noxai-logo { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 14px; color: #fff; letter-spacing: 1px; }
.noxai-brand .noxai-ai { color: #14f195; font-weight: 700; margin-left: 2px; }
.noxai-speak { display: block; font-size: 12px; color: #b5b8d6; margin-top: 2px; }

.token-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.token-info { display: flex; align-items: center; }
.token-logo img { width: 42px; height: 42px; border-radius: 50%; background: #23243b; box-shadow: 0 2px 8px #9945ff22; margin-right: 0.7rem; }
.token-name { font-size: 1.18rem; font-weight: 700; color: #fff; }
.token-symbol { font-size: 0.98rem; color: #b5b8d6; }
.token-price-block { text-align: right; }
.token-price { font-size: 1.13rem; color: #14f195; font-weight: 700; }
.token-price-change { font-size: 0.97rem; font-weight: 600; }
.token-price-change.positive { color: #00ff99; }
.token-price-change.negative { color: #ff4d4f; }

.casino-verdict-badge {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 1.1rem; margin: 1.1rem 0 0.7rem 0;
    padding: 0.7rem 1.1rem; border-radius: 18px;
    font-size: 1.13rem; font-weight: 700;
    box-shadow: 0 2px 12px #191c2b33;
    background: linear-gradient(90deg,#23243b 70%,#191c2b 100%);
    border: 2px solid #23243b;
}
.verdict-label { font-size: 1.13rem; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 0.4rem; }
.verdict-label-bullish { color: #00ff99; }
.verdict-label-bearish { color: #ff4d4f; }
.verdict-label-neutral { color: #ffbe3b; }
.verdict-icon { font-size: 1.1em; }
.verdict-score { font-family: 'Montserrat',sans-serif; font-size: 1.25rem; font-weight: 800; padding: 0 0.6rem; border-radius: 10px; background: #181a2c; box-shadow: 0 1px 8px #00ff9944; animation: casinoScoreAnim 1.2s cubic-bezier(.44,.09,.55,.96); }
@keyframes casinoScoreAnim { from { transform: scale(0.7); opacity: 0.2; } to { transform: scale(1); opacity: 1; } }
.score-anim { display: inline-block; animation: scorePop 0.8s cubic-bezier(.55,.09,.55,.92); }
@keyframes scorePop { 0%{transform:scale(0.7);} 80%{transform:scale(1.2);} 100%{transform:scale(1);} }
.verdict-marketing { font-size: 1.05rem; color: #b5b8d6; font-weight: 600; margin-left: 0.7rem; }

.analysis-narration { margin: 1.1rem 0 1.6rem 0; font-size: 1.08rem; line-height: 1.6; background: #20233a; border-radius: 14px; padding: 1.1rem 1.3rem; color: #fff; box-shadow: 0 1px 8px #9945ff22; border-left: 4px solid #9945ff; }
.narration-bullish { border-left: 4px solid #00ff99; background: #1b2a22; }
.narration-bearish { border-left: 4px solid #ff4d4f; background: #2a1b1b; }
.narration-neutral { border-left: 4px solid #ffbe3b; background: #2a261b; }
.narration-text { display: block; font-weight: 600; font-size: 1.08rem; color: #fff; }
.narration-conclusion { margin-top: 0.7rem; font-size: 1.01rem; color: #b5b8d6; font-style: italic; }

.analysis-metrics { display: flex; gap: 1.1rem; margin-bottom: 1.1rem; }
.metric { background: #23243b; border-radius: 10px; padding: 0.7rem 1.1rem; color: #fff; font-size: 0.97rem; font-weight: 600; box-shadow: 0 1px 6px #9945ff11; display: flex; flex-direction: column; align-items: flex-start; }
.metric-label { color: #b5b8d6; font-size: 0.91rem; margin-bottom: 0.2rem; }
.metric-value { font-size: 1.09rem; font-weight: 700; }

.analysis-chart { margin: 1.1rem 0; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.chart-header span { font-size: 1.03rem; color: #fff; font-weight: 600; }
.chart-link { color: #14f195; font-size: 1.15rem; margin-left: 0.5rem; }
.chart-container { background: #181a2c; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 8px #9945ff22; }
.chart-iframe { width: 100%; height: 450px; border: none; border-radius: 12px; }

.analysis-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; font-size: 0.98rem; color: #b5b8d6; }
.footer-logo { font-weight: 800; color: #9945ff; letter-spacing: 1px; }
.footer-timestamp { font-size: 0.97rem; color: #b5b8d6; }

@media (max-width: 600px) {
    .analysis-card.casino-analysis-card { padding: 1.1rem 0.4rem; }
    .analysis-metrics { flex-direction: column; gap: 0.5rem; }
    .analysis-chart .chart-iframe { height: 300px; }
}


/* Indicateur de chargement stylisé */
.casino-loading {
    text-align: center;
    padding: 3rem 0;
}

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.slot-spinner {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #1A1E2E, #0A0E16);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(153, 69, 255, 0.2);
    border: 1px solid rgba(153, 69, 255, 0.3);
}

.slot-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    background: repeating-linear-gradient(
        transparent 0%,
        #14F195 5%,
        transparent 10%,
        #9945FF 15%,
        transparent 20%,
        gold 25%,
        transparent 30%
    );
    animation: spin-slot 1.5s infinite linear;
}

@keyframes spin-slot {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-33.333%);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(153, 69, 255, 0.5);
    letter-spacing: 1px;
}

.dots-animation::after {
    content: '...';
    animation: dots 1.5s infinite;
    display: inline-block;
    width: 20px;
    text-align: left;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Contenu du résultat stylisé */
.result-card.neon-border {
    background: linear-gradient(135deg, #1A1E2E, #131722);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 69, 255, 0.3);
}

.result-card.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9945FF, #14F195);
    z-index: 1;
}

.result-card .card-header {
    background: rgba(26, 30, 46, 0.8);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(153, 69, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card .card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card .card-title i {
    color: #9945FF;
}

.result-card .timestamp {
    color: #6C7080;
    font-size: 0.9rem;
}

.result-card .card-body {
    padding: 20px;
}

/* Identité du token avec effet premium */
.token-identity.premium-glow {
    background: linear-gradient(45deg, rgba(153, 69, 255, 0.1), rgba(20, 241, 149, 0.05));
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.token-logo.spinning-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
    animation: slow-spin 20s linear infinite;
}

@keyframes slow-spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.token-logo.spinning-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.token-identity h3 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge.glow-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(20, 241, 149, 0.5);
}

.badge.safe {
    background: rgba(20, 241, 149, 0.2);
    color: #14F195;
}

.badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.badge.danger {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.contract-address {
    color: #8A8F98;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-icon {
    cursor: pointer;
    color: #9945FF;
    transition: all 0.2s;
}

.copy-icon:hover {
    transform: scale(1.2);
}

.token-price-display {
    margin-left: auto;
    text-align: right;
}

.price-label {
    color: #6C7080;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
}

.price-change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-weight: 500;
}

.price-change.positive {
    color: #14F195;
}

.price-change.negative {
    color: #FF3B30;
}

/* Résultats de sécurité avec animations */
.security-results.casino-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.scan-item.animated-result {
    background: linear-gradient(135deg, rgba(26, 30, 46, 0.8), rgba(19, 23, 34, 0.8));
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(153, 69, 255, 0.1);
    transition: all 0.3s ease;
}

.scan-item.animated-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(153, 69, 255, 0.3);
}

.scan-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8A8F98;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.scan-label i {
    color: #9945FF;
}

.scan-value {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-value.safe {
    color: #14F195;
}

.scan-value.medium {
    color: #FFC107;
}

.scan-value.danger {
    color: #FF3B30;
}

.scan-value i.pulse {
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Compteurs avec style slot machine */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #1A1E2E, #131722);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.metric-title {
    color: #8A8F98;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.counter-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
    font-family: 'Courier New', monospace;
}

/* Score de sécurité avec compteur casino */
.score-container.jackpot-style {
    background: linear-gradient(135deg, rgba(26, 30, 46, 0.8), rgba(19, 23, 34, 0.8));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(153, 69, 255, 0.2);
    position: relative;
}

.score-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.score-header i {
    color: #9945FF;
}

.score-meter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.score-value.jackpot-counter {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
    min-width: 80px;
    text-align: center;
    font-family: 'Digital', 'Courier New', monospace;
    background: linear-gradient(135deg, #9945FF, #14F195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.score-bar {
    flex: 1;
    height: 15px;
    background: rgba(26, 30, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #9945FF, #14F195);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

.score-verdict {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-verdict.safe {
    color: #14F195;
}

.score-verdict.medium {
    color: #FFC107;
}

.score-verdict.danger {
    color: #FF3B30;
}

/* Graphique minimaliste */
.mini-chart-container {
    background: linear-gradient(135deg, rgba(26, 30, 46, 0.8), rgba(19, 23, 34, 0.8));
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.chart-header {
    padding: 15px;
    border-bottom: 1px solid rgba(153, 69, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-tag {
    background: rgba(255, 215, 0, 0.2);
    color: gold;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-filter {
    font-size: 0.8rem;
    color: #8A8F98;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-filter.active {
    background: rgba(153, 69, 255, 0.2);
    color: #9945FF;
}

.chart-controls i {
    color: #9945FF;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.chart-controls i:hover {
    transform: scale(1.2);
}

.chart-placeholder {
    height: 200px;
    position: relative;
    background: #131722;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.placeholder-text {
    color: #6C7080;
    text-align: center;
    margin-bottom: 15px;
}

.chart-preview-img {
    width: 80%;
    height: 100px;
    background: linear-gradient(90deg, 
        rgba(153, 69, 255, 0.1) 0%, 
        rgba(153, 69, 255, 0.2) 20%, 
        rgba(20, 241, 149, 0.2) 40%,
        rgba(20, 241, 149, 0.3) 60%,
        rgba(153, 69, 255, 0.2) 80%,
        rgba(153, 69, 255, 0.1) 100%
    );
    border-radius: 8px;
    opacity: 0.5;
    position: relative;
    overflow: hidden;
}

.chart-preview-img::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(153, 69, 255, 0.5);
    box-shadow: 0 0 10px rgba(153, 69, 255, 0.5);
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    flex: 1;
    background: linear-gradient(135deg, #1A1E2E, #131722);
    border: 1px solid rgba(153, 69, 255, 0.3);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(153, 69, 255, 0.5);
}

.action-btn i {
    color: #9945FF;
}

.share-btn:hover {
    border-color: rgba(153, 69, 255, 0.7);
}

.track-btn:hover {
    border-color: rgba(20, 241, 149, 0.7);
}

.premium-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.premium-btn:hover {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.premium-btn i {
    color: gold;
}

/* Historique des analyses */
.history-section {
    background: linear-gradient(135deg, rgba(26, 30, 46, 0.8), rgba(19, 23, 34, 0.8));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.history-header {
    padding: 15px;
    border-bottom: 1px solid rgba(153, 69, 255, 0.2);
}

.history-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-header h4 i {
    color: #9945FF;
}

.history-placeholder {
    padding: 30px;
    text-align: center;
}

.history-placeholder p {
    color: #6C7080;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .security-results.casino-results {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .token-identity.premium-glow {
        flex-direction: column;
        text-align: center;
    }
    
    .token-logo.spinning-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .token-price-display {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }
    
    .price-change {
        justify-content: center;
    }
    
    .score-meter {
        flex-direction: column;
        gap: 10px;
    }
}
