/* What's Your Poly Style? — Stylesheet */

#wyps-quiz-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: Georgia, 'Times New Roman', serif;
    color: #2a2a2a;
    padding: 20px;
}

/* ── Intro ── */
#wyps-intro {
    text-align: center;
    padding: 40px 20px;
}
#wyps-intro h2 {
    font-size: 2em;
    margin-bottom: 16px;
    color: #7b3f6e;
}
#wyps-intro p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #444;
}
.wyps-note {
    font-size: 0.85em !important;
    color: #888 !important;
    font-style: italic;
}

/* ── Buttons ── */
.wyps-btn {
    background: #7b3f6e;
    color: #fff;
    border: none;
    padding: 13px 32px;
    font-size: 1em;
    font-family: Georgia, serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 6px;
}
.wyps-btn:hover {
    background: #5e2e54;
}
.wyps-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.wyps-btn-secondary {
    background: transparent;
    color: #7b3f6e;
    border: 2px solid #7b3f6e;
}
.wyps-btn-secondary:hover {
    background: #f5edf3;
}

/* ── Progress ── */
#wyps-progress-bar-wrap {
    background: #e8d5e4;
    border-radius: 4px;
    height: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
#wyps-progress-bar {
    height: 6px;
    background: #7b3f6e;
    border-radius: 4px;
    transition: width 0.3s ease;
}
#wyps-progress-text {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 24px;
    font-family: Arial, sans-serif;
}

/* ── Question Card ── */
#wyps-question-card {
    background: #fdf8fc;
    border: 1px solid #e0cedd;
    border-radius: 8px;
    padding: 32px 28px;
    margin-bottom: 24px;
}
#wyps-question-text {
    font-size: 1.15em;
    line-height: 1.7;
    margin-bottom: 28px;
    color: #2a2a2a;
}

/* ── Answer Options ── */
#wyps-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wyps-option {
    background: #fff;
    border: 2px solid #d9c4d6;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1em;
    font-family: Georgia, serif;
    color: #2a2a2a;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.wyps-option:hover {
    border-color: #7b3f6e;
    background: #f9f0f7;
}
.wyps-option.selected {
    border-color: #7b3f6e;
    background: #7b3f6e;
    color: #fff;
}

/* ── Navigation ── */
#wyps-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* ── Results ── */
#wyps-results-wrap {
    padding: 20px 0;
}
#wyps-results-wrap h2 {
    font-size: 1.8em;
    color: #7b3f6e;
    margin-bottom: 8px;
}
.wyps-subtitle {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 28px;
}
.wyps-card {
    background: #fdf8fc;
    border: 1px solid #e0cedd;
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 28px;
}
.wyps-result-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}
.wyps-result-label {
    min-width: 240px;
    max-width: 240px;
    flex-shrink: 0;
}
.wyps-result-name {
    display: block;
    font-size: 0.95em;
    font-weight: bold;
    color: #2a2a2a;
    line-height: 1.3;
}
.wyps-result-cat {
    display: block;
    font-size: 0.75em;
    color: #999;
    font-family: Arial, sans-serif;
}
.wyps-bar-wrap {
    flex: 1;
    background: #ece1ea;
    border-radius: 4px;
    height: 18px;
    overflow: hidden;
}
.wyps-bar {
    height: 18px;
    background: #c4a0bb;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.wyps-bar.high {
    background: #9a5e8a;
}
.wyps-bar.top {
    background: #7b3f6e;
}
.wyps-pct {
    min-width: 42px;
    text-align: right;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}

/* ── Share wrap ── */
#wyps-share-wrap {
    text-align: center;
    padding: 16px 0;
}
#wyps-share-wrap p {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
}

/* ── Profile text block ── */
.wyps-profile-wrap {
    margin-top: 24px;
    text-align: center;
}
.wyps-profile-toggle {
    margin-bottom: 16px;
}
.wyps-profile-box {
    background: #111111;
    border-radius: 6px;
    padding: 24px 24px 0 24px;
    text-align: left;
    margin-bottom: 0;
}
.wyps-profile-box pre {
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.92em;
    line-height: 1.8;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}
.wyps-copy-wrap {
    background: #111111;
    border-radius: 0 0 6px 6px;
    padding: 16px 24px 20px 24px;
    text-align: left;
}
.wyps-copy-btn {
    display: inline-block;
    margin-right: 12px;
}
.wyps-copy-confirm {
    display: none;
    color: #7dca7d;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .wyps-result-label {
        min-width: 140px;
        max-width: 140px;
    }
    .wyps-result-name {
        font-size: 0.8em;
    }
    #wyps-question-card {
        padding: 20px 16px;
    }
}

/* Prevent theme from transforming profile text case */
.wyps-profile-box pre,
.wyps-profile-box pre * {
    text-transform: none !important;
    font-variant: normal !important;
}

/* ── Tooltips ── */
.wyps-has-tip {
    cursor: pointer;
}
.wyps-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c4a0bb;
    color: #fff;
    font-size: 0.65em;
    font-family: Arial, sans-serif;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}
.wyps-has-tip:hover .wyps-tip-icon {
    background: #7b3f6e;
}
.wyps-tooltip {
    display: none;
    position: absolute;
    max-width: 280px;
    background: #3a1f35;
    color: #f5eef3;
    font-family: Arial, sans-serif;
    font-size: 0.82em;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 100;
    pointer-events: none;
}
#wyps-quiz-wrap {
    position: relative;
}

/* ── Share buttons ── */
.wyps-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.wyps-email-btn {
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.wyps-share-link-box {
    background: #f5edf3;
    border: 1px solid #d9c4d6;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wyps-share-link-box input[type="text"] {
    flex: 1;
    min-width: 200px;
    font-family: 'Courier New', monospace;
    font-size: 0.82em;
    color: #4a2642;
    background: #fff;
    border: 1px solid #d9c4d6;
    border-radius: 4px;
    padding: 7px 10px;
    outline: none;
}
