/* style.css - Refined Premium Design with Results Overhaul */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700&family=Roboto:wght@400;700&family=PT+Serif:italic&display=swap');

:root {
    --primary: #E8C283;
    /* Yellow */
    --primary-dark: #d4a96a;
    --secondary: #274D42;
    /* Green */
    --bg-gradient: linear-gradient(135deg, #D1E2E9 0%, #F6E1BE 100%);
    --bg-light: #ffffff;
    --text-main: #4a4e57;
    --text-dark: #1d1d1d;
    --text-muted: #888;
    --white: #ffffff;
    --radius-lg: 30px;
    --radius-md: 10px;
    --radius-sm: 5px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* New Score Colors - Classic Traffic Light */
    --good: #4CAF50;
    /* Green - Gut genährt */
    --medium: #FFC107;
    /* Yellow - Erhöhter Bedarf */
    --bad: #F44336;
    /* Red - Akuter Mangel */
}

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

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    font-size: 18px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: auto;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Archivo', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

h1 {
    font-size: 38px;
    text-align: center;
}

h2 {
    font-size: 32px;
}

/* Left aligned headers for specific screens */
.left-align h1,
.left-align h2 {
    text-align: left;
}

p {
    margin-bottom: 25px;
}

.accent-text {
    font-family: 'PT Serif', serif;
    font-style: italic;
    color: var(--secondary);
    font-size: 1.3em;
}

.highlight-box {
    display: block;
    margin: 0 0 20px;
    padding: 16px 20px;
    background: rgba(232, 194, 131, 0.2);
    border-left: 4px solid var(--secondary);
    border-radius: 6px;
    font-family: 'PT Serif', serif;
    font-style: italic;
    color: var(--primary);
    font-size: 1.15em;
}

/* Screens */
.screen {
    display: none;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 20px 35px;
    font-family: 'Archivo', sans-serif;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 15px;
}

.btn.primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn.primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 194, 131, 0.4);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 12px 19px;
    margin-top: 10px;
    width: auto;
    /* Override global 100% width */
}

.back-btn-container {
    text-align: left;
    /* Alignment of the button inside */
    width: 100%;
    margin-top: 20px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc;
    color: #666;
}

.btn.option-btn {
    background-color: #fcfcfc;
    border: 2px solid #eee;
    color: var(--text-main);
    padding: 18px 30px;
    font-size: 18px;
    margin-bottom: 15px;
}

.btn.option-btn:hover {
    background-color: #fff;
    border-color: var(--primary);
    color: var(--text-dark);
    transform: translateX(5px);
}

/* Profile Image */
.profile-image-container {
    margin-bottom: 30px;
}

.profile-img {
    width: 180px;
}

.flex-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.flex-text {
    flex: 1;
}

/* Quiz UI */
.progress-container {
    margin-bottom: 50px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.question-container {
    min-height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.question-text {
    font-size: 28px;
    text-align: center;
    margin: 0;
    color: var(--secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

input {
    width: 100%;
    padding: 18px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

/* Results Content */
.results-intro {
    text-align: center;
    margin-bottom: 40px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    font-size: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.dot.blooming {
    background-color: var(--good);
}

.dot.wilting {
    background-color: var(--medium);
}

.dot.dried {
    background-color: var(--bad);
}

.result-card {
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s;
    border-left: 10px solid transparent;
}

.result-card.state-blooming {
    background: #e8f5e9;
    border-left-color: var(--good);
}

.result-card.state-wilting {
    background: #fffde7;
    border-left-color: var(--medium);
}

.result-card.state-dried {
    background: #ffebee;
    border-left-color: var(--bad);
}

.result-card h6 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-dark);
    margin: 20px 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    color: var(--secondary);
}

.result-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

.result-title-group h4 {
    margin-bottom: 8px;
    font-size: 22px;
}

.result-badges-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-body-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.result-image-container {
    flex-shrink: 0;
}

.plant-img-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: normal;
}

.score-badge-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ... existing status-badge color classes ... */
.status-badge.blooming {
    background-color: var(--good);
    color: white;
}

.status-badge.wilting {
    background-color: var(--medium);
    color: var(--text-dark);
}

.status-badge.dried {
    background-color: var(--bad);
    color: white;
}

.result-content {
    flex-grow: 1;
}

@media (max-width: 600px) {
    .result-body-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-image-container {
        margin-bottom: 15px;
    }
}

.pitch-container {
    text-align: left;
    margin-top: 80px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-img-cta {
    width: 150px;
    height: auto;
    border: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.pitch-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.pitch-header-content {
    flex: 1;
}

.pitch-container h2 {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.pitch-container p {
    color: var(--text-dark);
}

.pitch-container .btn {
    margin-top: 30px;
    align-self: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }

    .container {
        padding: 40px 25px;
    }

    .flex-content {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    .profile-image-container {
        text-align: center;
        width: 100%;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 26px;
    }

    .question-text {
        font-size: 24px;
    }

    .pitch-container {
        padding: 40px 20px;
    }
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
    margin-top: 60px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer .footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.7;
}

.site-footer .footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}