﻿/*--------------------------------------------------------------
🎮 Flerf Blaster Component Styles
--------------------------------------------------------------*/

/* Truth Canvas */
#truthCanvas {
    width: 100%;
    height: 80vh;
    cursor: crosshair;
}

/* Wormhole Zone */
.wormhole-zone {
    position: relative;
    width: 100%;
    background-color: #0d0d1a;
    border-radius: 12px;
    border: 1px solid var(--color-primary-blue);
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wormhole-zone {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    #truthCanvas {
        height: 60vh;
    }
}

/* Hover Effects */
.wormhole-zone:hover {
    box-shadow: 0 0 30px rgba(79, 148, 212, 0.5);
}

/* Status Overlay */
.status-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 0 4px #00ffff;
    line-height: 1.6;
    white-space: pre-line;
}

/* Intro Dialog */
.intro-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background-color: rgba(0, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    color: #fff;
    width: 700px;
    height: auto;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    z-index: 20;
}

    .intro-dialog h2 {
        margin-bottom: 0.5rem;
        color: #00ffff;
        text-shadow: 0 0 8px #00ffff;
    }

    .intro-dialog ul {
        list-style: none;
        padding: 0;
        margin: 0.5rem 0;
    }

        .intro-dialog ul li {
            margin-bottom: 0.25rem;
            font-size: 1.1rem;
        }

    .intro-dialog p {
        margin: 0.25rem 0;
        font-size: 1.1rem;
        line-height: 1.3;
    }

.dismiss-hint {
    margin-top: 0.5rem;
    font-style: italic;
    color: #ccc;
    font-size: 0.9rem;
}

/* Wildcard Intel */
.wildcard-intel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #00ffff;
    border-radius: 8px;
    background-color: rgba(12, 15, 26, 0.9);
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
}

    .wildcard-intel h4 {
        margin-bottom: 0.25rem;
        color: #00ffff;
        text-shadow: 0 0 6px #00ffff;
    }

    .wildcard-intel p {
        margin: 4px;
    }

/* Modal Backdrop */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border: 1px solid #00ffff;
    box-shadow: 0 0 12px rgba(0,255,255,0.2);
    border-radius: 12px;
}

/* Stats Modal */
.stats-modal {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    width: 90%;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 0 25px #00ffcc;
    font-family: 'Orbitron', sans-serif;
}

/* Modal Actions */
.modal-actions button {
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-main);
    background-color: #0d0d1a;
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .modal-actions button:hover {
        background-color: rgba(0, 255, 255, 0.1);
    }

/* Breakdown Cards */
.breakdown-card {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: white;
    font-family: var(--font-main);
}

.card-profile-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    padding: 0.5rem;
    display: inline-block;
    overflow: hidden;
}

.intro-profile-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    padding: 0.5rem;
    display: inline-block;
    overflow: hidden;
    border: 2px solid #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.card-stats {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.25rem;
    margin-left: 0.25rem;
    border-radius: 8px;
    height: 130px;
    width: 100%;
}

    .card-stats h4 {
        padding-bottom: 5px;
        font-size: 1.2rem;
        color: #fff;
        line-height: 1.2;
    }

    .card-stats p {
        padding-left: 5px;
        padding-bottom: 2px;
        line-height: 0.7;
    }

.score.positive,
.time.positive {
    color: #00ff00;
}

.score.negative,
.time.negative {
    color: #ff6666;
}

.wildcard-glow {
    border: 2px solid #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.modal-breakdown-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid #00ffff;
    margin-top: 1rem;
}

.profile-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    text-align: center;
}

    .profile-meta-row p {
        margin: 0;
        font-size: 1rem;
    }

    .profile-meta-row .badge {
        font-size: 1.2rem;
    }

.hit-profile-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    width: 360px;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    transition: all 0.3s ease-in-out;
}

/* Contextual Hit Colors */
.agent-hit {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
}

.flerf-hit {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
}

.ferret-hit {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
}

.score-delta.positive {
    color: limegreen;
}

.score-delta.negative {
    color: crimson;
}

.time-delta.bonus {
    color: dodgerblue;
}

.time-delta.penalty {
    color: orange;
}

.wildcard-alert {
    font-weight: bold;
    color: gold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* New additions for layout refinement */
.profile-body {
    display: flex;
    gap: 0.2rem;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.profile-image-col {
    flex: 0 0 auto;
    width: 130px;
}

.profile-stats-col {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 130px - 1rem); /* image width + gap */
}
