/**
 * NOXAI Token Scanner - Styles Casino
 * Styles pour l'interface d'analyse technique et narrative de tokens
 * Design casino cohérent avec le reste de l'application
 */

/* Styles pour le panneau scanner */
#scanner .panel-content {
    padding: 10px;
    background: linear-gradient(135deg, rgba(20, 21, 35, 0.95), rgba(25, 27, 45, 0.95));
    border-radius: 12px;
    overflow-y: auto;
    max-height: 85vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(30, 32, 50, 0.5);
    
    /* Améliorations pour tablette */
    @media (max-width: 1024px) {
        padding: 8px;
        max-height: calc(100vh - 100px);
    }
    
    /* Améliorations pour mobile */
    @media (max-width: 768px) {
        padding: 6px;
        max-height: calc(100vh - 80px);
        -webkit-overflow-scrolling: touch;
        overflow-x: auto; /* allow horizontal scroll for wide tables */
    }
    
    /* Très petits écrans */
    @media (max-width: 480px) {
        padding: 4px;
        max-height: calc(100vh - 70px);
    }
}

#scanner .panel-content::-webkit-scrollbar {
    width: 8px;
}

#scanner .panel-content::-webkit-scrollbar-track {
    background: rgba(30, 32, 50, 0.5);
    border-radius: 4px;
}

#scanner .panel-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    border: 2px solid rgba(30, 32, 50, 0.7);
}

.scanner-header {
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 32, 50, 0.8), rgba(20, 22, 40, 0.95));
    border-radius: 16px;
    padding: 20px 15px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 80px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: casinoGlow 5s infinite alternate;
    
    /* Améliorations pour mobile */
    @media (max-width: 768px) {
        margin-bottom: 15px;
        padding: 15px 10px;
        border-radius: 14px;
    }
    
    @media (max-width: 480px) {
        padding: 12px 8px;
        margin: 0 -10px 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@keyframes casinoGlow {
    0% { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.2); }
    100% { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1); }
}

.scanner-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 6s infinite alternate;
}

.scanner-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(140, 82, 255, 0.15), transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 8s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 0.7; transform: scale(1.2); }
}

.scanner-header.casino-style {
    position: relative;
    padding: 25px 15px;
    animation: pulseBorder 2.5s infinite alternate;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), inset 0 0 5px rgba(255, 215, 0, 0.1); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.2); }
}

.scanner-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.scanner-title-wrapper img {
    height: 36px;
    width: auto;
    margin-right: 12px;
    animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.scanner-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.jackpot-text {
    background-image: linear-gradient(to right, #ffffff, #ffd700, #ffffff);
    background-size: 200% auto;
    color: #ffffff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.scanner-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.gold-gradient {
    background: linear-gradient(to right, #ffd700, #ffcc00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 30px auto;
    position: relative;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(25, 27, 40, 0.95), rgba(20, 22, 35, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: borderPulse 4s infinite alternate;
}

@keyframes borderPulse {
    0% { border-color: rgba(255, 215, 0, 0.3); }
    100% { border-color: rgba(255, 215, 0, 0.7); }
}

.search-input-group::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: searchGlint 6s infinite;
    pointer-events: none;
}

@keyframes searchGlint {
    0% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* Styles améliorés pour l'input casino */
.casino-input {
    background: linear-gradient(to bottom, rgba(30, 32, 45, 0.9), rgba(20, 22, 35, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.search-input-group i {
    color: rgba(255, 215, 0, 0.8);
    margin-right: 12px;
    font-size: 18px;
}

.search-input-group:focus-within {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.1);
}

.gold-text {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.pulse-soft {
    animation: pulseSoft 1.5s ease-in-out infinite alternate;
}

@keyframes pulseSoft {
    0% { opacity: 0.8; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(255, 215, 0, 0.7); }
}

.token-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    padding: 12px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.token-input:focus {
    outline: none;
}

.token-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.btn-scan {
    background: linear-gradient(135deg, #FFD700 0%, #FF9D00 70%, #FFD700 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #000000;
    font-weight: 700;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 20px rgba(255, 157, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    z-index: 1;
    animation: buttonPulse 2s infinite alternate;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 6px 20px rgba(255, 157, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 8px 25px rgba(255, 157, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.5); }
}

.btn-scan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
    z-index: -1;
}

.btn-scan:hover {
    transform: translateY(-5px);
    color: #000000;
    background: linear-gradient(135deg, #FFD700 30%, #FFA500 70%, #FFD700 100%);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(255, 157, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.5);
}

.btn-scan:hover::before {
    transform: scale(1);
    opacity: 0.8;
}

.jackpot-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ff9d00 100%);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.jackpot-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jackpot-btn:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.btn-scan:hover, .jackpot-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn-scan:active, .jackpot-btn:active {
    transform: translateY(1px);
}

.btn-scan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Styles pour les fonctionnalités du scanner */
.scanner-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    
    /* Ajustements pour les tablettes */
    @media (max-width: 1024px) {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }
    
    /* Ajustements pour les mobiles */
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    /* Très petits écrans */
    @media (max-width: 480px) {
        gap: 8px;
    }
}

.casino-features {
    margin-top: 10px;
}

.scanner-feature {
    background: linear-gradient(135deg, rgba(30, 32, 50, 0.7), rgba(25, 28, 45, 0.9));
    border-radius: 14px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 10px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    
    /* Ajustements pour les tablettes */
    @media (min-width: 481px) and (max-width: 1024px) {
        padding: 18px;
        gap: 15px;
    }
    
    /* Ajustements pour les écrans plus larges */
    @media (min-width: 1025px) {
        padding: 20px;
        gap: 18px;
    }
}

.scanner-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s;
    z-index: 1;
}

.scanner-feature:hover::before {
    left: 100%;
}

.scanner-feature::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 70%);
    top: -75px;
    right: -75px;
    opacity: 0.4;
    pointer-events: none;
}

.scanner-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

.scanner-feature.casino-card {
    background: linear-gradient(135deg, rgba(25, 27, 45, 0.8), rgba(35, 37, 55, 0.8));
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.scanner-feature.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.5), rgba(255, 215, 0, 0.3));
    z-index: 1;
}

.scanner-feature.casino-card:nth-child(3n+1)::before {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.3), rgba(255, 165, 0, 0.5), rgba(255, 0, 0, 0.3));
}

.scanner-feature.casino-card:nth-child(3n+2)::before {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3), rgba(0, 191, 255, 0.5), rgba(0, 255, 255, 0.3));
}

.scanner-feature:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.scanner-feature i {
    font-size: 28px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    margin-top: 3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconGlow 3s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(30, 32, 45, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 215, 0, 0.1);
}

@keyframes iconGlow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 165, 0, 0.4); }
}

.scanner-feature h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    letter-spacing: 0.8px;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #FFD700, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s linear infinite;
    text-transform: uppercase;
    position: relative;
}

@keyframes titleShine {
    to { background-position: 200% center; }
}

.highlight-text {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: highlightShine 3s infinite alternate;
    padding: 0 2px;
}

@keyframes highlightShine {
    0% { background-position: 0% center; text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    100% { background-position: 100% center; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
}

.scanner-feature p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    position: relative;
    padding-left: 5px;
    border-left: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.scanner-feature:hover p {
    border-left-color: rgba(255, 215, 0, 0.6);
}

.feature-indicator {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    background: rgba(20, 22, 35, 0.6);
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.scanner-feature:hover .feature-indicator {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 6px;
}

.status-dot.green {
    background-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
    animation: pulse 2s infinite;
}

.status-dot.yellow {
    background-color: #FFC107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

.status-dot.red {
    background-color: #F44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.8);
}

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

/* Styles pour la section de résultats d'analyse */
.analysis-result {
    max-width: 100%;
    margin: 15px auto;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 27, 45, 0.95), rgba(35, 37, 55, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

/* Améliorations pour tablette */
@media (min-width: 481px) and (max-width: 768px) {
    .analysis-result {
        margin: 20px 10px;
        padding: 20px;
    }
}

/* Améliorations pour desktop */
@media (min-width: 769px) {
    .analysis-result {
        max-width: 900px;
        margin: 30px auto;
        padding: 25px;
    }
}

/* Correction du débordement horizontal */
.analysis-result * {
    max-width: 100%;
    word-wrap: break-word;
}

/* Ajustement des tableaux */
.analysis-result table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(20, 22, 37, 0.7);
    border-radius: 8px;
    overflow-x: auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Ajustements pour les mobiles */
    @media (max-width: 768px) {
        display: block;
        margin: 10px 0;
        border-radius: 6px;
    }
}

/* Ajustement des images */
.analysis-result img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ajustement des titres */
.analysis-result h1,
.analysis-result h2,
.analysis-result h3,
.analysis-result h4,
.analysis-result h5,
.analysis-result h6 {
    word-wrap: break-word;
}

.analysis-result.casino-result {
    position: relative;
}

.analysis-result.casino-result::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.analysis-result.hidden {
    display: none;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    background: rgba(20, 22, 35, 0.7);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(140, 82, 255, 0.3);
    border-top-color: #8C52FF;
    border-radius: 50%;
    animation: spin 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    margin-bottom: 15px;
}

.jackpot-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    position: relative;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour la section du scanner avec ambiance casino */
.scanner-content.casino-bg {
    background: linear-gradient(to bottom, rgba(25, 27, 45, 0.7), rgba(15, 17, 30, 0.8));
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.scanner-content.casino-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right, 
        rgba(255, 215, 0, 0.1),
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

/* Styles pour la section d'audit */
.scanner-audit-section {
    background: rgba(20, 22, 35, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.audit-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.casino-badge {
    background: linear-gradient(135deg, #ff3300, #ff9900);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(255, 51, 0, 0.5);
}

.pulse {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(255, 51, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 51, 0, 0.8); }
}

.audit-logs-container {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(30, 32, 50, 0.5);
}

.audit-logs-container::-webkit-scrollbar {
    width: 6px;
}

.audit-logs-container::-webkit-scrollbar-track {
    background: rgba(30, 32, 50, 0.5);
    border-radius: 3px;
}

.audit-logs-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 215, 0, 0.5);
    border-radius: 3px;
}

.audit-log-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    line-height: 1.4;
}

.audit-log-item:last-child {
    border-bottom: none;
}

.audit-time {
    color: rgba(255, 215, 0, 0.8);
    font-weight: 700;
    min-width: 50px;
    margin-right: 15px;
}

.audit-content {
    color: rgba(255, 255, 255, 0.8);
}

/* Styles pour la carte VIP casino */
.vip-card {
    background: linear-gradient(135deg, rgba(40, 42, 60, 0.9), rgba(30, 32, 45, 0.9));
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 215, 0, 0.05) 75%, 
        rgba(255, 215, 0, 0.1) 100%);
    z-index: 0;
    pointer-events: none;
}

.vip-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.vip-header i {
    font-size: 28px;
    margin-right: 15px;
}

.vip-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.vip-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.vip-button {
    background: linear-gradient(135deg, #ffd700, #ff9900);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.vip-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.vip-button:active {
    transform: translateY(1px);
}

/* Formulaire de recherche */
.scan-form {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.scan-input {
    flex: 1;
    background: rgba(30, 32, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scan-input:focus {
    border-color: rgba(140, 82, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(140, 82, 255, 0.2);
    outline: none;
}

.scan-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.scan-button {
    background: linear-gradient(135deg, #8C52FF 0%, #5CE1E6 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 82, 255, 0.4);
}

.scan-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Indicateur de statut */
.scan-status {
    height: 28px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-status.loading, .scan-status.progress {
    color: #5CE1E6;
}

.scan-status.error {
    color: #FF5F6D;
}

.scan-status.success {
    color: #4CFF91;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(140, 82, 255, 0.2);
    border-top-color: #8C52FF;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.loading-spinner.small {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Carte d'analyse */
.analysis-card {
    background: linear-gradient(135deg, rgba(30, 32, 50, 0.8) 0%, rgba(25, 27, 40, 0.9) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    margin-top: 25px;
}

.analysis-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* En-tête token */
.token-header {
    background: linear-gradient(90deg, rgba(30, 32, 50, 0.9) 0%, rgba(40, 43, 70, 0.8) 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.token-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #ffffff;
}

.token-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 5px;
    font-weight: normal;
}

.token-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-usd {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.price-change {
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.price-change.positive {
    background: rgba(76, 255, 145, 0.15);
    color: #4CFF91;
}

.price-change.negative {
    background: rgba(255, 95, 109, 0.15);
    color: #FF5F6D;
}

.chart-thumbnail {
    width: 100px;
    height: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu de l'analyse */
.analysis-content {
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    
    /* Ajustements pour les tablettes */
    @media (min-width: 481px) and (max-width: 1024px) {
        padding: 25px;
    }
    
    /* Ajustements pour les écrans plus larges */
    @media (min-width: 1025px) {
        padding: 30px;
    }
    
    /* Ajustements pour les très petits écrans */
    @media (max-width: 480px) {
        padding: 15px;
        font-size: 14px;
    }
}

.analysis-content h2, .analysis-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.analysis-content ul, .analysis-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.analysis-content li {
    margin-bottom: 5px;
}

/* Version preview pour non-VIP */
.analysis-content.preview-mode {
    position: relative;
}

.analysis-content.preview-mode::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(25, 27, 40, 0.95) 80%);
    pointer-events: none;
}

/* Métriques d'analyse */
.analysis-metrics {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric:last-child {
    border-right: none;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Actions (boutons) */
.analysis-actions {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-vip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Timestamp */
.analysis-timestamp {
    padding: 10px 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 22, 35, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .scan-form {
        flex-direction: column;
    }
    
    .scan-button {
        width: 100%;
    }
    
    /* Ensure main scan CTA is full width on mobile */
    .btn-scan {
        width: 100%;
    }
    
    /* Slight breathing room around search area */
    .search-container {
        padding: 0 6px;
    }
    .search-input-group {
        padding: 10px;
    }
    
    .token-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .chart-thumbnail {
        width: 100%;
        height: 80px;
    }
    
    .analysis-metrics {
        flex-direction: column;
    }
    
    .metric {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .metric:last-child {
        border-bottom: none;
    }

    /* Stack action buttons for better tap targets */
    .analysis-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .analysis-actions .btn-action,
    .analysis-actions .btn-vip {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Compact hero header on mobile */
    .scanner-header h2 { font-size: 22px; }
    .scanner-header p { font-size: 14px; }
    
    /* Prevent long token names from overflowing */
    .token-details h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* Section info VIP */
.vip-info {
    background: linear-gradient(135deg, rgba(30, 32, 50, 0.6) 0%, rgba(25, 27, 40, 0.7) 100%);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.vip-info i {
    font-size: 24px;
    color: #FFD700;
}

.vip-info-content {
    flex: 1;
}

.vip-info h4 {
    margin: 0 0 5px 0;
    color: #FFD700;
    font-size: 16px;
}

.vip-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.btn-unlock-vip {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.btn-unlock-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}
