/* Easy Does It Resume - Main App Layout */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background-color: #eeeafd;

    background-image:
        radial-gradient(
            circle at 5% 15%,
            rgba(79, 70, 229, 0.32) 0%,
            rgba(99, 102, 241, 0.16) 28%,
            transparent 50%
        ),
        radial-gradient(
            circle at 95% 35%,
            rgba(124, 58, 237, 0.28) 0%,
            rgba(139, 92, 246, 0.14) 30%,
            transparent 52%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(99, 102, 241, 0.18) 0%,
            transparent 48%
        ),
        linear-gradient(
            135deg,
            #e8e7ff 0%,
            #f0edff 45%,
            #e9e4ff 100%
        );

    background-attachment: fixed;

    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

body > h1,
body > p,
body > h2,
body > label,
body > textarea,
body > button {
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 8px;
}

h2 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 10px;
}

textarea {
    display: block;
    width: calc(100% - 40px);
    max-width: 900px;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
    resize: vertical;
}

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


#output-message {
    max-width: 900px;
    min-height: 70px;
    margin-top: 20px;
    padding: 28px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);

    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
}

#output-message h2,
#output-message h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}

#output-message strong {
    font-weight: bold;
}

.app-header {
    max-width: 900px;
    margin: 40px auto 20px;
    padding: 24px;
    background: linear-gradient(
    120deg,
    rgba(238, 235, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.97) 55%,
    rgba(245, 243, 255, 0.95) 100%
    );

    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.app-header h1 {
    margin: 0;
    font-size: 28px;
}

.app-header p {
    margin: 5px 0 0;
    color: #6b7280;
}

.app-container {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

#resume-button,
#cover-letter {
    padding: 10px 18px;
    margin-right: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

#resume-button:hover,
#cover-letter:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

#selection-message {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}

#resume-button.selected,
#cover-letter.selected {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

/* Main action buttons */

#generate-button,
#clear-button,
#copy-button,
#download-button,
#word-download-button {
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

/* Primary action */

#generate-button {
    background: #4f46e5;
    border: 1px solid #4f46e5;
    color: #ffffff;
}

#generate-button:hover {
    background: #4338ca;
    border-color: #4338ca;
}

/* Secondary actions */

#clear-button,
#copy-button,
#download-button,
#word-download-button {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
}

#clear-button:hover,
#copy-button:hover,
#download-button:hover,
#word-download-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

#generate-button:disabled {
    background: #4338ca;
    border-color: #4338ca;
    color: #ffffff;
    cursor: wait;
    opacity: 1;
    box-shadow: none;
    transform: none;
}

#generate-button:disabled {
    animation: generatingDots 1.2s steps(4, end) infinite;
}

@keyframes generatingDots {
    0% {
        letter-spacing: 0;
    }

    50% {
        letter-spacing: 1px;
    }

    100% {
        letter-spacing: 0;
    }
}


#generate-button:active,
#clear-button:active,
#copy-button:active,
#download-button:active,
#word-download-button:active {
    background: #4338ca;
    border-color: #4338ca;
    color: #ffffff;
    transform: translateY(1px);
}

#error-message:not(:empty) {
    max-width: 900px;
    margin: 16px 0;
    padding: 12px 16px;

    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #e11d48;
    border-radius: 10px;

    color: #9f1239;
    font-size: 14px;
    font-weight: 600;
}

.output-placeholder {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

/* ========================================
   LANDING PAGE HERO
======================================== */

.landing-hero {
    padding: 70px 24px;
    background: #f7f9fc;
    border-bottom: 1px solid #e5e7eb;
}

.landing-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
}

.landing-hero h2 {
    max-width: 760px;
    margin: 0 auto 20px;
    font-size: 42px;
    line-height: 1.15;
    color: #1f2937;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.primary-cta,
.secondary-cta {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.primary-cta {
    background: #2563eb;
    color: white;
}

.primary-cta:hover {
    background: #1d4ed8;
}

.secondary-cta {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.secondary-cta:hover {
    background: #eff6ff;
}

.hero-note {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 700px) {
    .landing-hero {
        padding: 48px 18px;
    }

    .landing-hero h2 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* ========================================
   FORM HELP TEXT
======================================== */

.field-help {
    max-width: 760px;
    margin: -4px 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* ========================================
   HOW IT WORKS
======================================== */

.how-it-works {
    padding: 60px 24px;
    background: #ffffff;
    text-align: center;
}

.how-it-works > h2 {
    margin: 0 0 32px;
    font-size: 32px;
    color: #1f2937;
}

.how-it-works-steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.how-step {
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
}

.how-step h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #1f2937;
}

.how-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

@media (max-width: 800px) {
    .how-it-works-steps {
        grid-template-columns: 1fr;
    }
}

/* Generate document actions */

.generate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

#generate-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#generate-button:hover {
    background: #1d4ed8;
}

#clear-button {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.generate-note {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}