@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@500;700&display=swap');

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

body {
    font-family: 'DM Mono', monospace;
    background: #F5F0E8;
    color: #1C1A17;
    line-height: 1.6;
    min-height: 100vh;
}

/* HEADER */
.site-header {
    background: #1C1A17;
    border-bottom: 4px solid #C4521A;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.site-header__inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header__orbital {
    position: absolute;
    right: -40px;
    top: -40px;
    opacity: 0.08;
    pointer-events: none;
}

.site-header__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #F5F0E8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-header__sub {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: #C4521A;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* TICKER */
.ticker {
    background: #C4521A;
    padding: 0.5rem 2rem;
    overflow: hidden;
}

.ticker__inner {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #F5F0E8;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* MAIN */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* SECTION LABELS */
.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7A6E60;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #C4521A;
    flex-shrink: 0;
}

/* FORM */
.field {
    margin-bottom: 1.25rem;
}

.field > .section-label {
    margin-top: 0;
}

textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #1C1A17;
    border-radius: 0;
    font-size: 0.92rem;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    resize: vertical;
    background: #FDFAF4;
    color: #1C1A17;
    line-height: 1.65;
    transition: border-color 0.15s;
}

textarea:focus {
    outline: none;
    border-color: #C4521A;
}

textarea::placeholder {
    color: #A89E90;
    font-weight: 400;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-family: 'DM Mono', monospace;
    color: #7A6E60;
    letter-spacing: 0.04em;
}

.char-counter.over-limit {
    color: #C4521A;
    font-weight: 700;
}

/* BUTTONS */
#submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background: #C4521A;
    color: #F5F0E8;
    border: 2px solid #C4521A;
    border-radius: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

#submit-btn:hover {
    background: #A8431400;
    color: #C4521A;
    background: transparent;
}

#submit-btn:disabled {
    background: #A89E90;
    border-color: #A89E90;
    color: #F5F0E8;
    cursor: not-allowed;
}

#reset-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: #1C1A17;
    border: 2px solid #1C1A17;
    border-radius: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

#reset-btn:hover {
    background: #1C1A17;
    color: #F5F0E8;
}

/* CAPTCHA */
.captcha-wrapper {
    margin-bottom: 1rem;
}

/* RESULT CARD */
#result-container {
    margin-top: 0.5rem;
}

.result-card {
    background: #FDFAF4;
    border: 2px solid #1C1A17;
    border-left: 6px solid #C4521A;
    padding: 1.75rem;
}

.verdict-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #D8D0C4;
}

.verdict-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1C1A17;
}

.confidence-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    border-radius: 0;
    background: #1C1A17;
    color: #F5F0E8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.patterns-list {
    list-style: none;
    padding: 0;
    margin-top: 0.25rem;
}

.patterns-list li {
    font-family: 'DM Mono', monospace;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0 0.45rem 1.1rem;
    border-bottom: 1px solid #E8E0D4;
    position: relative;
    color: #1C1A17;
}

.patterns-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #C4521A;
    font-size: 0.5rem;
    top: 0.65rem;
}

.patterns-list li:last-child {
    border-bottom: none;
}

.analysis-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1C1A17;
    line-height: 1.75;
    margin-top: 0.25rem;
}

.optional-section {
    margin-top: 0.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.86rem;
    font-weight: 500;
    color: #1C1A17;
    line-height: 1.65;
}

.redirect-message {
    font-family: 'DM Mono', monospace;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1C1A17;
    line-height: 1.75;
}

/* ERROR */
#error-container {
    margin-top: 0.75rem;
}

.error-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: #C4521A;
    letter-spacing: 0.02em;
}
