/* GestaltOrNot — Bauhaus Modernist Style */

:root {
    --black: #000000;
    --white: #FFFFFF;
    --red: #BE1E2D;
    --gray-light: #F5F5F5;
    --gray-mid: #888888;
    --gray-dark: #333333;
    --green: #2E7D32;
    --yellow: #F9A825;
    --font: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 3rem 2rem 2rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shape {
    width: 24px;
    height: 24px;
    background: var(--black);
}

.shape.circle {
    border-radius: 50%;
}

.shape.square {
    /* default */
}

.shape.triangle {
    background: transparent;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid var(--black);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 1.125rem;
    color: var(--gray-mid);
}

/* Main */
main {
    flex: 1;
    padding: 0 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Upload Area */
.upload-box {
    border: 2px dashed var(--black);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.upload-box:hover {
    background: var(--gray-light);
}

.upload-box.drag-over {
    background: var(--gray-light);
    border-style: solid;
}

.upload-box.has-image {
    padding: 1rem;
    border-style: solid;
}

.upload-content {
    transition: opacity 0.2s ease;
}

.upload-icon {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.upload-box p {
    margin-bottom: 0.25rem;
}

.subtle {
    color: var(--gray-mid);
    font-size: 0.875rem;
}

.formats {
    font-size: 0.75rem;
    color: var(--gray-mid);
    margin-top: 0.5rem;
}

.preview {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.preview.hidden {
    display: none;
}

.has-image .upload-content {
    display: none;
}

/* Button */
.btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--gray-dark);
}

.btn:disabled {
    background: var(--gray-mid);
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* Results */
.results {
    margin-top: 2rem;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--black);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Feedback Display */
.feedback {
    text-align: left;
}

.feedback-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--black);
}

.feedback-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.priorities {
    list-style: none;
    margin: 1rem 0;
}

.priorities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.priorities li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    background: var(--red);
}

.priorities li.working::before {
    background: var(--green);
}

.feedback-section {
    margin-bottom: 2rem;
}

.feedback-section h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.feedback-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.design-term {
    font-style: italic;
    color: var(--gray-dark);
}

.confidence {
    font-size: 0.875rem;
    color: var(--gray-mid);
    margin-top: 0.5rem;
}

.confidence.clear-problem {
    color: var(--red);
}

.confidence.worth-reconsidering {
    color: var(--yellow);
}

.confidence.just-thinking {
    color: var(--green);
}

/* Rate Limit */
.rate-limit {
    text-align: center;
    padding: 2rem;
    background: var(--gray-light);
    margin-top: 2rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid var(--gray-light);
}

footer p {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 600px) {
    header, main, footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .upload-box {
        padding: 2rem 1rem;
    }
}
