/* Styles pour Vade SpamCause */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #2A364E 0%, #3A4A6B 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(42, 54, 78, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229, 37, 40, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(58, 74, 107, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    color: white;
    font-family: 'Harabara', 'Helvetica Neue Light', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
    letter-spacing: 0.5px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin: 25px 0;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-weight: 300;
    color: white;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

textarea {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 16px;
    font-family: 'Helvetica Neue Light', 'Helvetica Neue', monospace;
    font-weight: 300;
    font-size: 14px;
    resize: vertical;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.character-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin-top: 8px;
    font-weight: 500;
}

.character-count.warning {
    color: #ffd700;
}

.character-count.error {
    color: #E52528;
}

.button-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

button {
    background: linear-gradient(135deg, #2A364E 0%, #3A4A6B 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-size: 16px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(42, 54, 78, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(229, 37, 40, 0.3);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(42, 54, 78, 0.6);
    border-color: rgba(229, 37, 40, 0.5);
}

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

button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: none;
    color: white;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-weight: 300;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading.show {
    display: inline;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.status-messages {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-message {
    display: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-size: 14px;
    font-weight: 300;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50px);
    opacity: 0;
}

.status-message.show {
    display: block;
    transform: translateX(0);
    opacity: 1;
    animation: statusSlide 0.6s ease-out;
}

@keyframes statusSlide {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.status-token {
    background: rgba(42, 54, 78, 0.3);
    border-left: 4px solid #2A364E;
    color: #bfdbfe;
}

.status-analysis {
    background: rgba(58, 74, 107, 0.3);
    border-left: 4px solid #3A4A6B;
    color: #e2e8f0;
}

.status-complete {
    background: rgba(229, 37, 40, 0.2);
    border-left: 4px solid #E52528;
    color: #fecaca;
}

#result-section {
    margin-top: 30px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    animation: resultFadeIn 0.8s ease-out;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-section h3 {
    color: white;
    font-family: 'Harabara', 'Helvetica Neue Light', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.result-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Helvetica Neue Light', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 20px 0 10px 0;
}

.result-section p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Helvetica Neue Light', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 8px;
}

.result-section strong {
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: rgba(42, 54, 78, 0.4);
    color: white;
    padding: 12px;
    text-align: left;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-weight: 300;
}

td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    font-family: 'Helvetica Neue Light', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

pre {
    background: rgba(42, 54, 78, 0.4) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    overflow-x: auto;
    max-height: 300px;
    font-family: 'Helvetica Neue Light', 'Helvetica Neue', monospace;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid rgba(229, 37, 40, 0.2);
}

.error-section {
    background: rgba(229, 37, 40, 0.2);
    border-color: rgba(229, 37, 40, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    textarea {
        padding: 15px;
    }
    
    button {
        padding: 14px 28px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}