/* MeritaSchimbi.ro — 2026 Modern Design - Green Theme */

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

html {
    font-size: 16px;
    background: linear-gradient(150deg, #ecfdf5 0%, #f0fdf4 40%, #f8fafc 100%);
    background-attachment: fixed;
    color-scheme: light;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: block;
    line-height: 0;
}

.site-logo img {
    height: 32px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #10b981;
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #10b981;
    text-decoration: none;
}

/* Main */
main {
    flex: 1;
    padding: 2.5rem 0 4rem;
}

/* Article container - white card for article pages */
.container.article-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.08);
    max-width: 800px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Intro paragraph */
main > .container > p:not(.page-subtitle):not(.result-text):not(.result-score),
.article-container > p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Snippet list - 2x2 grid cards */
.snippet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.snippet-list li {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    transition: all 0.25s ease;
    text-align: center;
}

.snippet-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.snippet-list li::before {
    display: none;
}

/* Tool Section (Card) */
.tool-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.08);
}

/* Error Box */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.error-box p {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.error-box ul {
    list-style: none;
    display: block;
}

.error-box li {
    color: #b91c1c;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
}

.error-box li:hover {
    transform: none;
    box-shadow: none;
}

/* Form */
.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.label-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.875rem;
}

.radio-group,
.checkbox-group {
    display: grid;
    gap: 0.625rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.5rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    background: #f0fdf4;
    border-color: #d1fae5;
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.radio-option input,
.checkbox-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span,
.checkbox-option span {
    color: #334155;
    font-size: 0.975rem;
    line-height: 1.5;
}

.radio-option:has(input:checked) span,
.checkbox-option:has(input:checked) span {
    color: #047857;
    font-weight: 600;
}

/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Result Section */
.result-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.result-nu {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 60%);
}

.result-asteapta {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
}

.result-da {
    border: 2px solid #f43f5e;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 60%);
}

.result-score {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.result-nu .result-title { color: #059669; }
.result-asteapta .result-title { color: #d97706; }
.result-da .result-title { color: #e11d48; }

.result-text {
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.result-reasons {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
}

.reasons-label {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-reasons ul {
    list-style: none;
    display: block;
}

.result-reasons li {
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.result-reasons li:last-child {
    border-bottom: none;
}

.result-reasons li:hover {
    transform: none;
}

.btn-restart {
    display: inline-flex;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #10b981;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.btn-restart:hover {
    background: #10b981;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #334155;
}

.content-section > p {
    color: #475569;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Content lists as GRID CARDS */
.content-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.content-section li {
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 16px;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    text-align: center;
}

.content-section li:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.content-section li a {
    font-weight: 600;
    color: #059669;
    display: block;
    margin-bottom: 0.25rem;
}

.content-section li a:hover {
    color: #047857;
    text-decoration: none;
}

/* Article page sections - no grid, simple list */
.container.article-container .content-section ul {
    display: block;
}

.container.article-container .content-section li {
    display: block;
    min-height: auto;
    text-align: left;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
}

.container.article-container .content-section li:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.container.article-container .content-section li:last-child {
    border-bottom: none;
}

/* Links */
a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    margin-top: auto;
}

.footer-links {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #64748b;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #10b981;
}

.footer-text {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

.contact-email {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.contact-email a {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .snippet-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .content-section ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .content-section li {
        padding: 1rem;
        min-height: 90px;
        font-size: 0.85rem;
    }

    .container.article-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 540px) {
    main {
        padding: 1.5rem 0 3rem;
    }

    .page-title {
        font-size: 1.875rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .snippet-list {
        grid-template-columns: 1fr;
    }

    .content-section ul {
        grid-template-columns: 1fr 1fr;
    }

    .tool-section,
    .result-section {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .container.article-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .result-title {
        font-size: 1.375rem;
    }
}

/* Models Grid - Homepage */
.models-section {
    margin-bottom: 2.5rem;
}

.models-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
}

.models-grid li {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.models-grid li:hover {
    border-color: var(--verde);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--verde-glow);
}

.models-grid li a {
    font-weight: 700;
    color: var(--verde);
    font-size: 0.95rem;
    text-decoration: none;
}

.models-grid li a:hover {
    color: var(--verde-hover);
    text-decoration: none;
}

.models-grid li span {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix header articole */
.site-header .container.article-container {
    background: transparent;
    border-radius: 0;
    padding: 0 1.5rem;
    box-shadow: none;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fix footer articole */
.site-footer .container.article-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-top: none;
}

/* Culoare verde din logo - override global */
:root {
    --verde: #299585;
    --verde-hover: #237a6d;
    --verde-light: #e8f5f3;
    --verde-glow: rgba(41, 149, 133, 0.15);
    --verde-shadow: rgba(41, 149, 133, 0.3);
}

.site-header { border-bottom-color: var(--verde); }
.site-nav a:hover { color: var(--verde); background: var(--verde-light); }
.container.article-container { border-top-color: var(--verde); }
.snippet-list li:hover { border-color: var(--verde); box-shadow: 0 8px 25px var(--verde-glow); }
.tool-section { border-top-color: var(--verde); }
.radio-option:hover, .checkbox-option:hover { border-color: var(--verde); }
.radio-option:has(input:checked), .checkbox-option:has(input:checked) { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(41, 149, 133, 0.1); }
.radio-option input, .checkbox-option input { accent-color: var(--verde); }
.radio-option:has(input:checked) span, .checkbox-option:has(input:checked) span { color: var(--verde-hover); }
.btn-submit { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-hover) 100%); box-shadow: 0 4px 15px var(--verde-shadow); }
.btn-submit:hover { background: linear-gradient(135deg, #2fa898 0%, var(--verde) 100%); box-shadow: 0 6px 25px rgba(41, 149, 133, 0.4); }
.result-nu { border-top-color: var(--verde); }
.result-nu .result-title { color: var(--verde); }
.result-reasons { border-left-color: var(--verde); }
.btn-restart { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-hover) 100%); box-shadow: 0 4px 15px var(--verde-shadow); }
.btn-restart:hover { background: linear-gradient(135deg, #2fa898 0%, var(--verde) 100%); box-shadow: 0 6px 25px rgba(41, 149, 133, 0.4); }
.content-section h2 { border-bottom-color: var(--verde); }
.content-section li:hover { border-color: var(--verde); box-shadow: 0 8px 25px var(--verde-glow); }
.content-section li a { color: var(--verde); }
.content-section li a:hover { color: var(--verde-hover); }
a { color: var(--verde); }
a:hover { color: var(--verde-hover); }
.footer-links a:hover { color: var(--verde); }

/* Titlu centrat cu linie */
.page-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--verde);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.page-subtitle {
    text-align: center;
    font-weight: 300;
    font-size: 1.25rem;
    color: #777;
    border-left: none;
    padding-left: 0;
}

/* Models Grid - Homepage */
.models-section {
    margin-bottom: 2.5rem;
}

.models-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
}

.models-grid li {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.models-grid li:hover {
    border-color: var(--verde);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--verde-glow);
}

.models-grid li a {
    font-weight: 700;
    color: var(--verde);
    font-size: 0.95rem;
    text-decoration: none;
}

.models-grid li a:hover {
    color: var(--verde-hover);
    text-decoration: none;
}

.models-grid li span {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}
html, body, main {
    background: #fafafa;
}

.site-header {
    background: #ffffff;
}
.container.article-container .btn-submit,
.container.article-container a.btn-restart {
    display: block;
    width: auto;
    max-width: 400px;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-hover) 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--verde-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}