/* 1. Global Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050a0e;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    background-image: linear-gradient(
        rgba(0, 255, 102, 0.03) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
}

/* Inherit font-family across form elements automatically */
button, input, select, textarea {
    font-family: inherit;
}

/* 2. Typography & Status Headers */
h1 {
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.status {
    color: #00e5ff;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

p {
    color: #b0c4de;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
}

p strong {
    color: #00ff66;
}

.system-version {
    font-size: 0.65rem;
    color: #00ff66;
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* 3. Media & Agent Badges */
.ai-photo-wrapper {
    position: relative;
    display: inline-block;
    margin: 1.5rem auto;
}

.ai-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #00e5ff;
    filter: grayscale(100%) contrast(120%);
}

.ai-photo-wrapper::before {
    content: "Agent: Binary";
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(5, 10, 14, 0.8);
    color: #00e5ff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border: 1px solid #00e5ff;
}

.photo-caption {
    font-size: 0.8rem;
    color: #00e5ff;
    margin-top: 0.5rem;
    text-align: center;
}

/* 4. Controls & Inputs */
input[type="file"]::file-selector-button {
    background-color: #0a1118;
    color: #00ff66;
    border: 1px solid #00ff66;
    padding: 0.6rem 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #00ff66;
    color: #0a1118;
}

.btn-start {
    display: block;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background-color: transparent;
    color: #00ff66;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00ff66;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-start:hover {
    background-color: #00ff66;
    color: #050a0e;
    cursor: pointer;
}

.btn-secondary {
    display: inline-block;
    width: fit-content;
    margin: 1.5rem auto 0 auto;
    padding: 0.4rem 0.8rem;
    color: #8b949e;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.btn-secondary:hover {
    color: #00e5ff;
}

#submit-btn {
    background-color: #0a1118;
    color: #00ff66;
    border: 1px solid #00ff66;
    padding: 0.75rem 1.2rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
    width: 100%;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#submit-btn:hover {
    background-color: #00ff66;
    color: #0a1118;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.5);
}

/* 5. Polaroid Display Components */
.polaroid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 1.5rem 0;
}

.polaroid-card {
    background: #ffffff;
    padding: 12px 12px 18px 12px;
    border-radius: 2px;
    box-shadow: 0 40px 10px rgba(0, 0, 0, 0.4);
    width: 180px;
    transform: rotate(-2deg);
    transition: transform 0.2s ease-in-out;
}

.polaroid-card:nth-child(even) {
    transform: rotate(3deg);
}

.polaroid-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #000;
}

.polaroid-caption {
    color: #222222;
    font-size: 0.75rem;
    margin-top: 10px;
    text-align: center;
    line-height: 1.2;
}

.polaroid-caption strong {
    color: #0088cc;
}
