/* ============================================
   WAR ROOM ACADEMY - FIELD MANUAL AESTHETIC
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-dark-gray: #1a1a1a;
    --color-accent-red: #d32f2f;
    --color-red-hover: #b71c1c;
    --color-border: #333333;
    --max-width: 800px;
    --spacing-unit: 1.5rem;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--color-accent-red);
    line-height: 1;
}

.site-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-white);
}

/* MAIN CONTENT */
main {
    margin-top: 80px;
    padding-bottom: 4rem;
}

section {
    padding: 4rem 0;
}

section + section {
    border-top: 1px solid var(--color-border);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title .accent {
    color: var(--color-accent-red);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-tagline {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* PROBLEM SECTION */
.problem-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.problem-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.problem-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.problem-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--color-accent-red);
    font-size: 12px;
}

.problem-conclusion {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

/* LEARN SECTION */
.learn-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.learn-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.learn-list {
    list-style: none;
    margin-bottom: 2rem;
}

.learn-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.learn-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--color-accent-red);
    font-size: 12px;
}

.learn-details {
    font-size: 16px;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background-color: var(--color-dark-gray);
    border-left: 3px solid var(--color-accent-red);
}

/* CTA BUTTON */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent-red);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background-color: var(--color-red-hover);
}

.cta-button:disabled {
    background-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.6;
}

/* PROGRESS BAR */
.progress-container {
    background-color: var(--color-dark-gray);
    height: 4px;
    margin-bottom: 2rem;
}

.progress-bar {
    background-color: var(--color-accent-red);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LESSON CONTENT */
.lesson-content {
    padding-top: 2rem;
}

.lesson-content h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.lesson-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* EXERCISE SECTION */
.exercise-section {
    background-color: var(--color-dark-gray);
    padding: 2rem;
    margin: 3rem 0;
    border-left: 4px solid var(--color-accent-red);
}

.exercise-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exercise-instructions {
    margin-bottom: 1rem;
    font-size: 16px;
}

.prompt-display {
    background-color: var(--color-black);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.copy-button {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: 44px;
}

.copy-button:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.copy-button.copied {
    background-color: var(--color-accent-red);
    border-color: var(--color-accent-red);
}

/* CHAT INTERFACE */
.chat-interface {
    margin-top: 2rem;
}

.chat-input-area {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
}

.chat-input-area:focus {
    outline: none;
    border-color: var(--color-accent-red);
}

.send-button {
    margin-top: 1rem;
    width: 100%;
    background-color: var(--color-accent-red);
    color: var(--color-white);
    padding: 1rem;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease;
    min-height: 44px;
}

.send-button:hover:not(:disabled) {
    background-color: var(--color-red-hover);
}

.send-button:disabled {
    background-color: var(--color-border);
    cursor: not-allowed;
    opacity: 0.5;
}

.response-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-black);
    border: 1px solid var(--color-border);
    display: none;
    line-height: 1.7;
}

.response-area.visible {
    display: block;
}

/* CHECKPOINT SECTION */
.checkpoint-section {
    background-color: var(--color-dark-gray);
    padding: 2rem;
    margin-top: 3rem;
    border-left: 4px solid var(--color-accent-red);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkpoint-section.visible {
    display: block;
    opacity: 1;
}

.checkpoint-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkpoint-question {
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: 600;
}

.checkpoint-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.checkpoint-input:focus {
    outline: none;
    border-color: var(--color-accent-red);
}

.char-counter {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.char-counter.valid {
    color: var(--color-accent-red);
}

/* LOADING STATE */
.loading {
    opacity: 0.6;
}

.loading::after {
    content: '...';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .send-button {
        width: 100%;
    }
    
    .prompt-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-button {
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .exercise-section,
    .checkpoint-section {
        padding: 1.5rem;
    }
}

/* PRINT STYLES */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .site-header,
    .site-footer,
    .cta-button,
    .chat-interface,
    .copy-button {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
}
