/* ============================================================
   Pipu Celebrity Tools – Shared Styles
   ============================================================ */

.pipu-tool {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    max-width: 620px;
    margin: 24px auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.pipu-tool h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pipu-tool .pipu-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 22px;
}

.pipu-tool label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.pipu-tool input[type="date"],
.pipu-tool input[type="number"],
.pipu-tool input[type="text"],
.pipu-tool select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111;
    background: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pipu-tool input:focus,
.pipu-tool select:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
}

.pipu-tool .pipu-field {
    margin-bottom: 16px;
}

.pipu-tool .pipu-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pipu-tool button {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.pipu-tool button:hover {
    background: #4f46e5;
}

.pipu-result {
    margin-top: 22px;
    padding: 18px 20px;
    background: #f5f3ff;
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    display: none;
}

.pipu-result.visible {
    display: block;
}

.pipu-result .pipu-result-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 6px;
}

.pipu-result .pipu-result-sub {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.pipu-result .pipu-result-sub span {
    display: inline-block;
    background: #ede9fe;
    color: #4f46e5;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 3px 3px 0 0;
}

.pipu-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.pipu-error.visible {
    display: block;
}

/* Stat grid for multi-value results */
.pipu-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.pipu-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.pipu-stat-card .stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4f46e5;
}

.pipu-stat-card .stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 3px;
}

/* Zodiac badge */
.pipu-zodiac-badge {
    font-size: 3rem;
    text-align: center;
    margin: 10px 0 6px;
}

/* Net worth bars */
.pipu-bar-wrap {
    margin: 8px 0;
}
.pipu-bar-label {
    font-size: 0.82rem;
    color: #374151;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}
.pipu-bar-track {
    background: #e5e7eb;
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
}
.pipu-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 99px;
    transition: width 0.6s ease;
}

@media (max-width: 500px) {
    .pipu-tool { padding: 20px 16px; }
    .pipu-tool .pipu-row { grid-template-columns: 1fr; }
    .pipu-result .pipu-result-main { font-size: 1.3rem; }
}

/* ============================================================
   Quiz Tool
   ============================================================ */

.pipu-quiz-tool { max-width: 680px; }

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

.pq-celeb-tag {
    background: #ede9fe;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 20px;
}

.pq-progress {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.pq-question-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.pq-question-box p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.5;
}

.pq-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.pq-option {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1.4;
}

.pq-option:hover:not(:disabled) {
    border-color: #6366f1;
    background: #f5f3ff;
    color: #4f46e5;
}

.pq-option.pq-correct {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #15803d;
}

.pq-option.pq-wrong {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
}

.pq-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 4px;
    display: none;
}

.pq-fb-correct {
    background: #f0fdf4;
    color: #15803d;
}

.pq-fb-wrong {
    background: #fef2f2;
    color: #dc2626;
}

.pq-result-wrap {
    text-align: center;
    padding: 10px 0;
}

.pq-result-emoji {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.pq-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.pq-btn-secondary:hover {
    background: #e5e7eb;
}

@media (max-width: 500px) {
    .pq-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Net Worth Calculator
   ============================================================ */

.pipu-nwc-tool { max-width: 680px; }

.pnwc-section {
    margin-bottom: 22px;
}

.pnwc-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
}

.pnwc-assets-title {
    background: #f0fdf4;
    color: #15803d;
}

.pnwc-liab-title {
    background: #fef2f2;
    color: #dc2626;
}

.pnwc-total {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: monospace;
}

.pnwc-row-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pnwc-item-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;
    gap: 10px;
}

.pnwc-item-label {
    font-size: 0.88rem;
    color: #374151;
}

.pnwc-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.9rem;
    background: #f9fafb;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.pnwc-input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
}

.pnwc-compare {
    margin-top: 14px;
}

.pnwc-compare-box {
    background: #ede9fe;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 500px) {
    .pnwc-item-row { grid-template-columns: 1fr; }
    .pnwc-item-label { font-size: 0.82rem; }
}
