@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --poppins: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --navy: #17394b;
    --blue: #4190dd; /* PANTONE 279 C */
    --pantone-279c: #4190dd;
    --pantone-dark: #317ac2;
    --pantone-light: #eaf3fb;
    --paper: #f5f0e7;
    --text-dark: #17394b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: var(--poppins);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, button, input, select, textarea, label, span, p, a {
    font-family: var(--poppins);
}

header {
    padding: 20px 6%;
    border-bottom: 1px solid #dcdedb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fffdf9ef;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    color: inherit;
    font-family: var(--poppins);
}

.brand img {
    width: 185px;
    height: auto;
    object-fit: contain;
    display: block;
}

.brand span {
    font-size: 11px;
    letter-spacing: 2px;
    border-left: 1px solid #c8d6df;
    padding-left: 20px;
    color: var(--navy);
    font-weight: 700;
    font-family: var(--poppins);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag {
    font-size: 12px;
    background: #e5edf8;
    color: var(--navy);
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--poppins);
}

.pantone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid #dcdedb;
    border-radius: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
    font-family: var(--poppins);
}

.pantone-badge:hover {
    border-color: var(--pantone-279c);
    color: var(--navy);
}

.pantone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pantone-279c);
    display: inline-block;
}

/* Backdrop with coffee illustration and awareness ring */
.backdrop {
    position: fixed;
    inset: 90px 0 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.backdrop img {
    position: absolute;
    width: 420px;
    left: -150px;
    bottom: -90px;
    opacity: 0.17;
    transform: rotate(-12deg);
}

.awareness-ring {
    position: absolute;
    right: -240px;
    top: 70px;
    width: 560px;
    height: 560px;
    border: 38px solid rgba(65, 144, 221, 0.22); /* PANTONE 279 C transparent ring */
    border-radius: 50%;
}

main {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 22px 50px;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: var(--poppins);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.25;
    margin: 18px 0;
    color: var(--navy);
}

h2 {
    font-family: var(--poppins);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.35;
    margin-top: 0;
}

p {
    margin: 12px 0;
}

.eyebrow {
    color: #5e7390;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: var(--poppins);
}

.muted {
    color: #61737c;
}

.notice {
    background: #eaf0f9;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--navy);
    line-height: 1.55;
    font-family: var(--poppins);
}

.progress {
    height: 6px;
    background: #e1e5e7;
    border-radius: 4px;
    margin: 24px 0 16px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: var(--pantone-279c);
    transition: width .35s ease;
}

/* SURVEY CARD (ANKET ALANI) - THEMED WITH PANTONE 279 C */
.card {
    background: var(--pantone-279c); /* Pantone 279 C Survey Area */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 34px 32px;
    margin: 22px 0;
    box-shadow: 0 16px 40px rgba(65, 144, 221, 0.24);
    position: relative;
    transition: background 0.3s, color 0.3s;
}

.card h2 {
    color: #ffffff;
    font-family: var(--poppins);
}

.card p {
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--poppins);
}

.card .muted {
    color: rgba(255, 255, 255, 0.85);
}

.card small {
    color: rgba(255, 255, 255, 0.88);
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-family: var(--poppins);
}

.card .ring {
    height: 72px;
    width: 72px;
    border: 8px solid #ffffff;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.card .notice {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
    backdrop-filter: blur(4px);
    margin: 18px 0;
    font-family: var(--poppins);
}

.card .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

/* DETAILS & SUMMARY (AÇILIR BİLGİ ALANLARI) */
details {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    padding: 13px 18px;
    margin: 16px 0 20px;
    backdrop-filter: blur(4px);
    font-family: var(--poppins);
    font-size: 14px;
    color: #ffffff;
    transition: all .2s ease;
}

details[open] {
    background: rgba(255, 255, 255, 0.22);
}

summary {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    font-family: var(--poppins);
    outline: none;
    color: #ffffff;
    display: list-item;
    font-size: 14.5px;
    transition: color .2s ease;
}

summary:hover {
    color: #f0f7ff;
}

details p {
    margin: 12px 0 4px;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--poppins);
}

details img, details svg {
    margin: 14px auto 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
    max-width: 100%;
    height: auto;
}

/* FORM INPUTS & SELECTS */
label.q {
    display: block;
    font-weight: 600;
    margin: 22px 0 6px;
    color: #ffffff;
    font-size: 15.5px;
    font-family: var(--poppins);
}

select, input[type=number] {
    width: 100%;
    font-family: var(--poppins);
    padding: 13px 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy);
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all .2s;
    margin-top: 6px;
}

select:focus, input[type=number]:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(23, 57, 75, 0.3);
}

input[type=checkbox] {
    accent-color: var(--navy);
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
    color: #ffffff;
    font-size: 14.5px;
    user-select: none;
    font-family: var(--poppins);
}

/* BUTTONS */
button {
    font-family: var(--poppins);
    border: 0;
    border-radius: 10px;
    padding: 13px 26px;
    cursor: pointer;
    background: var(--navy);
    color: white;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(23, 57, 75, 0.25);
    transition: all .2s ease;
}

button:hover:not(:disabled) {
    background: #0f2633;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

button.secondary {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

button.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.32);
}

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.error {
    color: #ffffff;
    background-color: #ff2d2cad !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 16px 0 0;
    border: 1px solid rgba(255, 45, 44, 0.4);
    font-family: var(--poppins);
}

.error:empty {
    display: none;
}

/* RESULT VIEW */
.score {
    font-family: var(--poppins);
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: #ffffff;
    margin: 14px 0 10px;
}

.score small {
    display: inline;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--poppins);
}

.pill {
    display: inline-block;
    padding: 6px 16px;
    background: #ffffff;
    color: var(--navy);
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 8px 0 16px;
    font-family: var(--poppins);
}

.participant-badge {
    background: rgba(23, 57, 75, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 15px;
    color: #ffffff;
    display: inline-block;
    margin-top: 4px;
}

/* LIGHT CARD THEME ALTERNATIVE (IF TOGGLED VIA BADGE) */
body.theme-light-card .card {
    background: #ffffffF5;
    color: var(--navy);
    border-color: #e1e3df;
    box-shadow: 0 8px 30px rgba(24, 59, 77, 0.06);
}
body.theme-light-card .card h2 { color: var(--navy); }
body.theme-light-card .card p { color: var(--navy); }
body.theme-light-card .card .muted { color: #61737c; }
body.theme-light-card .card small { color: #61737c; }
body.theme-light-card .card .ring { border-color: var(--pantone-279c); box-shadow: none; }
body.theme-light-card .card .notice { background: #eaf0f9; border: none; color: var(--navy); }
body.theme-light-card .card .eyebrow { color: #5e7390; }
body.theme-light-card label.q { color: var(--navy); }
body.theme-light-card select, body.theme-light-card input[type=number] {
    border: 1px solid #cbd4d8;
}
body.theme-light-card .checkbox-label { color: var(--navy); }
body.theme-light-card input[type=checkbox] { accent-color: var(--pantone-279c); }
body.theme-light-card button.secondary {
    background: #eaf0f3;
    color: var(--navy);
    border: none;
}
body.theme-light-card .score { color: var(--pantone-279c); }
body.theme-light-card .score small { color: #61737c; }
body.theme-light-card .pill { background: #eaf0f9; color: var(--navy); }
body.theme-light-card .participant-badge { background: #eaf0f9; color: var(--navy); }
body.theme-light-card details { background: #f5f7fa; border: 1px solid #dce4ec; color: var(--navy); }
body.theme-light-card summary { color: var(--navy); }
body.theme-light-card details p { color: var(--navy); }
body.theme-light-card details img { background: #ffffff; border: 1px solid #e2e8f0; }

/* FOOTER */
.foot {
    font-size: 12.5px;
    border-top: 1px solid #dde1df;
    padding-top: 18px;
    margin-top: 35px;
    color: #61737c;
    line-height: 1.6;
    font-family: var(--poppins);
}

.foot a {
    color: #2b6cb0;
    text-decoration: underline;
}

.foot a:hover {
    color: var(--navy);
}

.foot-links {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pantone-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 11.5px;
    font-family: var(--poppins);
}

/* RESPONSIVE */
@media(max-width: 650px) {
    h1 { font-size: 30px; }
    h2 { font-size: 22px; }
    .card { padding: 24px 20px; border-radius: 18px; }
    main { margin-top: 25px; padding: 0 16px 40px; }
    header { padding: 14px 18px; }
    .brand img { width: 140px; }
    .brand span { display: none; }
    .backdrop img { width: 270px; left: -140px; }
    .awareness-ring { width: 340px; height: 340px; border-width: 24px; right: -240px; }
    .tag { font-size: 11px; padding: 4px 10px; }
    .grid { grid-template-columns: 1fr; }
    .actions { flex-direction: column-reverse; }
    .actions button { width: 100%; }
}
