/**
 * Secret Agent Theme Stylesheet
 * 
 * This file contains the secret agent theme styles for the Cyber Agent Training Platform.
 */

/* Secret Agent Theme Elements */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Roboto:wght@300;400;500;700&display=swap');

/* Code and Terminal Text */
.code-text, .terminal-text {
    font-family: 'Share Tech Mono', monospace;
}

/* Secret Agent Elements */
.top-secret {
    position: relative;
    overflow: hidden;
}

.top-secret::before {
    content: "TOP SECRET";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 3rem;
    color: rgba(220, 53, 69, 0.1);
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

/* Mission Card Styling */
.mission-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Terminal Effect */
.terminal {
    background-color: #0a0a0a;
    border: 1px solid #2c2c2c;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    color: #33ff33;
    position: relative;
}

.terminal::before {
    content: "$ ";
    color: #33ff33;
}

.terminal-header {
    background-color: #2c2c2c;
    padding: 5px 10px;
    border-radius: 5px 5px 0 0;
    font-family: 'Share Tech Mono', monospace;
    color: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

.terminal-body {
    background-color: #0a0a0a;
    padding: 15px;
    border-radius: 0 0 5px 5px;
    font-family: 'Share Tech Mono', monospace;
    color: #33ff33;
    overflow-x: auto;
}

/* Blinking Cursor Effect */
.cursor-blink::after {
    content: "|";
    animation: blink 1s infinite;
}

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

/* Classified Document Effect */
.classified {
    position: relative;
    border: 2px dashed #dc3545;
    padding: 20px;
    background-color: rgba(220, 53, 69, 0.05);
}

.classified::before, .classified::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #dc3545;
}

.classified::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.classified::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* Redacted Text Effect */
.redacted {
    background-color: #000;
    color: transparent;
    border-radius: 2px;
    user-select: none;
    padding: 0 2px;
}

/* Glowing Effect for Important Elements */
.glow {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 20px rgba(220, 53, 69, 0.9); }
    100% { box-shadow: 0 0 10px rgba(220, 53, 69, 0.7); }
}

/* Fingerprint Scanner Effect */
.fingerprint-scanner {
    background-color: #0a0a0a;
    height: 100px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fingerprint-scanner::after {
    content: "\f577"; /* Font Awesome fingerprint icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 3rem;
    color: rgba(51, 255, 51, 0.3);
}

.fingerprint-scanner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(51, 255, 51, 0.7);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Badge Styling */
.agent-badge {
    background-color: #dc3545;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Secret Message Reveal on Hover */
.secret-message {
    color: transparent;
    background-color: #2c2c2c;
    padding: 5px 10px;
    border-radius: 3px;
    transition: color 0.3s;
}

.secret-message:hover {
    color: #33ff33;
}
