/* Interview Simulator Styles */

.interview-container {
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.setup-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
}

.setup-card h2 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.setup-footer {
    margin-top: 2rem;
}

/* Active Interface */
.interview-interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.int-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 400px;
}

.video-box {
    background: black;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
}

.feed-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    pointer-events: none;
}

.user-feed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* Mirror effect */
}

/* AI Avatar Animation */
.ai-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
}

.ai-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    padding: 5px;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
}

.pulse-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.audio-wave {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    height: 30px;
    align-items: center;
}

.audio-wave span {
    display: block;
    width: 6px;
    background: var(--primary);
    animation: wave 1s infinite ease-in-out;
}

.audio-wave span:nth-child(1) {
    animation-delay: 0s;
    height: 100%;
}

.audio-wave span:nth-child(2) {
    animation-delay: 0.2s;
    height: 80%;
}

.audio-wave span:nth-child(3) {
    animation-delay: 0.4s;
    height: 60%;
}

.audio-wave span:nth-child(4) {
    animation-delay: 0.1s;
    height: 90%;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.question-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Feedback Screen */
.feedback-report {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.score-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.score-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
}

.big-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

.feedback-notes {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.feedback-notes h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feedback-notes ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-danger-sm:hover {
    background: #ef4444;
    color: white;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .video-box {
        height: 250px;
    }
}