/* Witnesses CSS - Style moderne ARG Horreur */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #001a33 100%);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(77, 148, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.5));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Main Container */
.witness-report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Category Selection */
.category-selection {
    margin-bottom: 3rem;
}

.selection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.selection-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 26, 51, 0.5);
}

.selection-header p {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 148, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(77, 148, 255, 0.15);
}

.category-card:hover::before {
    left: 100%;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.3));
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.category-card p {
    font-family: var(--font-main);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.category-indicator {
    margin-top: 1rem;
}

.danger-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.danger-level.low {
    background: rgba(77, 148, 255, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(77, 148, 255, 0.3);
}

.danger-level.medium {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.danger-level.high {
    background: rgba(204, 51, 51, 0.2);
    color: var(--accent-danger);
    border: 1px solid rgba(204, 51, 51, 0.3);
}

/* Category-specific styling */
.category-card[data-category="horror"]:hover {
    border-color: var(--accent-danger);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(204, 51, 51, 0.2);
}

.category-card[data-category="horror"]::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(204, 51, 51, 0.1),
        transparent
    );
}

.category-card[data-category="explorer"]:hover {
    border-color: #ffaa00;
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(255, 170, 0, 0.2);
}

.category-card[data-category="explorer"]::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 170, 0, 0.1),
        transparent
    );
}

.category-card[data-category="paranormal"]:hover {
    border-color: var(--accent-corruption);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(107, 70, 193, 0.2);
}

.category-card[data-category="paranormal"]::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(107, 70, 193, 0.1),
        transparent
    );
}

/* Report Form */
.report-form {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.report-form.hidden {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* Progress Bar */
.report-progress {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 6px;
    background: rgba(77, 148, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Question Container */
.question-container {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0);
}

.question-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 148, 255, 0.05),
        transparent
    );
    transition: left 0.8s ease;
}

.question-container:hover::before {
    left: 100%;
}

.question-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.choices-container {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Choice Buttons */
.choice-btn {
    padding: 1.2rem 1.5rem;
    background: rgba(240, 248, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 148, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.choice-btn:hover {
    background: rgba(77, 148, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(5px) translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 26, 51, 0.2),
        0 0 20px rgba(77, 148, 255, 0.1);
}

.choice-btn:hover::before {
    left: 100%;
}

.choice-btn.selected {
    background: rgba(77, 148, 255, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 
        0 10px 20px rgba(0, 26, 51, 0.3),
        0 0 25px rgba(77, 148, 255, 0.2);
}

/* Conclusion Container */
.conclusion-container {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.conclusion-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.conclusion-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.report-id {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-primary);
    background: rgba(77, 148, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(77, 148, 255, 0.2);
}

.conclusion-text {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    margin: 2rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.final-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation Buttons */
.report-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-nav {
    padding: 1rem 2rem;
    background: rgba(77, 148, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.btn-nav:hover:not(:disabled) {
    background: rgba(77, 148, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(0, 26, 51, 0.2),
        0 0 20px rgba(77, 148, 255, 0.1);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(77, 148, 255, 0.05);
}

.btn-restart, .btn-back {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-restart {
    background: var(--accent-gradient);
}

.btn-back {
    background: rgba(77, 148, 255, 0.2);
    border: 1px solid var(--border-color);
}

.btn-restart::before, .btn-back::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 ease;
}

.btn-restart:hover, .btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(0, 26, 51, 0.3),
        0 0 30px rgba(77, 148, 255, 0.3);
}

.btn-restart:hover::before, .btn-back:hover::before {
    left: 100%;
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

.category-card, .question-container, .conclusion-container {
    animation: fadeIn 0.6s ease-out;
}

/* Glitch effect */
.glitch {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }

    .witness-report-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .question-container,
    .conclusion-container {
        padding: 2rem;
        margin: 0 0 2rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .choice-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .btn-nav {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .report-footer {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .final-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-restart, .btn-back {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .question-container,
    .conclusion-container {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .choice-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
}