/* X-Files / Cryptid Hunter Theme */
/* Dark, mysterious color scheme with green accents */

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

body {
    font-family: 'Courier New', Courier, monospace;
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.header h1 {
    color: #00ff41;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
}

.card::before {
    content: 'CLASSIFIED';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b35;
    font-size: 10px;
    opacity: 0.3;
    transform: rotate(-15deg);
    letter-spacing: 2px;
}

.card h1 {
    color: #00ff41;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.card h2 {
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1px;
}

.card h3 {
    color: #00ff41;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #00ff41;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2a2a2a;
    background: #0f0f0f;
    color: #e0e0e0;
    border-radius: 2px;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.btn-primary {
    background: #00ff41;
    color: #0a0a0a;
    border-color: #00ff41;
}

.btn-primary:hover {
    background: #00cc34;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #2a4a2a;
    border-color: #2a4a2a;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #ff6b35;
    border-color: #ff6b35;
}

.btn-secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

button[type="submit"] {
    width: 100%;
}

/* Messages */
.error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 2px;
    margin-bottom: 20px;
    border-left: 4px solid #ff0000;
    font-size: 14px;
}

.success-message {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 12px 15px;
    border-radius: 2px;
    margin-bottom: 20px;
    border-left: 4px solid #00ff41;
    font-size: 14px;
}

.message {
    padding: 12px 15px;
    border-radius: 2px;
    margin-top: 15px;
    border-left: 4px solid;
    font-size: 14px;
}

.success-banner {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 15px;
    border-radius: 2px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

/* Status sections */
.status-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px;
}

.section-title.unlocked {
    color: #00ff41;
    border-bottom-color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.section-title.found {
    color: #ffa500;
    border-bottom-color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.section-title.missing {
    color: #888;
    border-bottom-color: #888;
}

/* Video list */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 2px;
    border-left: 4px solid;
    gap: 15px;
    background: #0f0f0f;
    transition: all 0.3s;
}

.video-card:hover {
    background: #1f1f1f;
    transform: translateX(5px);
}

.video-card.unlocked {
    border-left-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.video-card.found {
    border-left-color: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
}

.video-card.missing {
    border-left-color: #444;
}

.video-info {
    flex: 1;
}

.video-info h3 {
    margin-bottom: 5px;
    color: #e0e0e0;
    letter-spacing: 1px;
}

.timestamp {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.hint {
    font-size: 13px;
    color: #aaa;
    margin-top: 5px;
    font-style: italic;
}

.hint-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.empty-message {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Video container */
.video-container {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-container video {
    border-radius: 2px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #2a2a2a;
}

.locked-video {
    background: #0f0f0f;
    border: 2px dashed #444;
    border-radius: 2px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.lock-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.locked-video p {
    color: #888;
    font-size: 16px;
}

.unlock-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.unlock-form-container h3 {
    color: #00ff41;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.unlock-form-container p {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* QR Scanner */
.instruction {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#qr-reader {
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.scan-result {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding: 15px;
    border-radius: 2px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #00ff41;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 18px;
    }

    .card {
        padding: 20px;
    }

    .video-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-card .btn {
        align-self: stretch;
    }

    .header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 15px 24px;
        font-size: 15px;
    }

    .form-group input {
        padding: 15px;
        font-size: 17px;
    }
}

/* Special effects */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
    50% { text-shadow: 0 0 20px rgba(0, 255, 65, 0.8); }
}

.header h1 {
    animation: glow 3s ease-in-out infinite;
}

/* Cryptid Diagram Styles */
.cryptid-container {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 0;
    margin-top: 20px;
}

.cryptid-title {
    color: #00ff41;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 20px 20px 10px 20px;
    font-size: 24px;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

.cryptid-subtitle {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 0 20px 30px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cryptid-diagram {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto 20px;
    overflow: visible;
}

/* Cryptid Silhouette - Simple monster shape */
.cryptid-silhouette {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.3));
}

.cryptid-head {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc34 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    margin: 0 auto;
    opacity: 0.4;
}

.cryptid-body {
    width: 90px;
    height: 110px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc34 100%);
    border-radius: 50% 50% 30% 30%;
    margin: -10px auto 0;
    position: relative;
    opacity: 0.4;
}

.cryptid-tail {
    width: 45px;
    height: 60px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc34 100%);
    border-radius: 50%;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.4;
}

.cryptid-leg {
    width: 22px;
    height: 50px;
    background: linear-gradient(180deg, #00ff41 0%, #00cc34 100%);
    border-radius: 5px 5px 40% 40%;
    position: absolute;
    bottom: -50px;
    opacity: 0.4;
}

.cryptid-leg.left {
    left: 15px;
}

.cryptid-leg.right {
    right: 15px;
}

.cryptid-claw {
    width: 30px;
    height: 40px;
    background: linear-gradient(135deg, #00ff41 0%, #00cc34 100%);
    border-radius: 40% 10% 50% 50%;
    position: absolute;
    top: 75px;
    opacity: 0.4;
}

.cryptid-claw.left {
    left: -25px;
    transform: rotate(-20deg);
}

.cryptid-claw.right {
    right: -25px;
    transform: rotate(20deg);
}

/* Evidence Markers positioned around the cryptid */
.evidence-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Positioning for each marker (5 body parts) */
.marker-1 { /* Head */
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.marker-2 { /* Claws */
    top: 35%;
    left: 0;
}

.marker-3 { /* Body */
    top: 58%;
    right: 0;
}

.marker-4 { /* Feet */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.marker-5 { /* Tail */
    top: 60%;
    left: 0;
}

/* Connecting lines from marker to center */
.marker-line {
    position: absolute;
    background: #555;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

/* Head - vertical line points to center of head */
.marker-1 .marker-line {
    width: 3px;
    height: 70px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #555;
}

/* Claws - angled line points down to left claw tip */
.marker-2 .marker-line {
    width: 60px;
    height: 3px;
    top: 50%;
    left: 100%;
    transform-origin: left center;
    transform: rotate(15deg);
    background: #555;
}

/* Body - angled line points up to center of body */
.marker-3 .marker-line {
    width: 100px;
    height: 3px;
    top: 50%;
    right: 100%;
    transform-origin: right center;
    transform: rotate(20deg);
    background: #555;
}

/* Feet - angled line points to left foot base */
.marker-4 .marker-line {
    width: 3px;
    height: 23px;
    bottom: 100%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-40deg);
    background: #555;
}

/* Tail - angled line points to middle of tail */
.marker-5 .marker-line {
    width: 100px;
    height: 3px;
    top: 50%;
    left: 100%;
    transform-origin: left center;
    transform: rotate(12deg);
    background: #555;
}

/* Line colors based on status */
.evidence-marker.solved .marker-line {
    background: #00ff41;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.evidence-marker.found .marker-line {
    background: #ffa500;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

.evidence-marker.missing .marker-line {
    background: #555;
}

/* Marker content box */
.marker-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 6px 5px;
    width: 90px;
    z-index: 10;
    position: relative;
}

/* Head and Feet markers can be wider */
.marker-1 .marker-content,
.marker-4 .marker-content {
    width: 180px;
    padding: 8px 10px;
}

.evidence-marker.solved .marker-content {
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.evidence-marker.found .marker-content {
    border-color: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
}

.evidence-marker.missing .marker-content {
    border-color: #444;
}

.marker-header {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.marker-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.evidence-marker.solved .marker-icon {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.evidence-marker.found .marker-icon {
    color: #ffa500;
}

.evidence-marker.missing .marker-icon {
    color: #666;
}

.marker-header h3 {
    color: #f5f5f5;
    font-size: 12px;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    word-wrap: break-word;
    flex: 1;
    font-weight: bold;
}

.marker-1 .marker-header h3 {
    font-size: 14px;
}

.marker-info {
    width: 100%;
    margin: 0;
    padding: 0;
}

.marker-status {
    font-size: 10px;
    margin: 0 0 3px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    font-weight: 600;
}

.marker-status.solved {
    color: #00ff41;
}

.marker-status.found {
    color: #ffb84d;
}

.marker-status.missing {
    color: #aaa;
    font-style: italic;
}

.marker-link {
    display: block;
    padding: 5px 6px;
    background: #00ff41;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.marker-link:hover {
    background: #00cc34;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Progress Summary */
.progress-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin: 20px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
}

.progress-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    color: #00ff41;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Mobile responsiveness for cryptid diagram */
@media (max-width: 768px) {
    .cryptid-diagram {
        height: 420px;
    }

    .marker-content {
        width: 90px;
        padding: 6px 5px;
    }

    .marker-info h3 {
        font-size: 12px;
    }

    .marker-status {
        font-size: 10px;
    }

    .marker-1, .marker-2, .marker-3, .marker-4, .marker-5 {
        position: absolute;
    }
}
