/* Internal Affairs - URL Inspector - CTF Challenge Styles */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-input: #0d0d14;
    --border: #2a2a3a;
    --border-focus: #00ff88;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #00ff88;
    --accent-dim: #00aa55;
    --error: #ff4444;
    --error-bg: rgba(255, 68, 68, 0.08);
    --warning: #ffaa00;
    --info: #4488ff;
    --info-bg: rgba(68, 136, 255, 0.08);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.header {
    margin-bottom: 28px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 6px;
    color: var(--accent);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form */

.url-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: border-color 0.2s;
}

.input-row input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.input-row input::placeholder {
    color: #555;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-dim);
}

/* Error box */

.error-box {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.error-box p {
    color: var(--error);
    font-size: 0.9rem;
}

/* Result box */

.result-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.result-url {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-content {
    padding: 18px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Info box */

.info-box {
    background: var(--info-bg);
    border: 1px solid rgba(68, 136, 255, 0.25);
    border-radius: 8px;
    padding: 18px;
}

.info-box h3 {
    color: var(--info);
}

.info-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.muted {
    color: var(--text-muted);
    font-size: 0.85rem !important;
}

/* Scrollbar styling for result area */

.result-content::-webkit-scrollbar {
    width: 8px;
}

.result-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.result-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.result-content::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
}

/* Responsive */

@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    .input-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .result-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .result-url {
        max-width: 100%;
    }
}
