/* ===================================================
   Sign Detail Page CSS
   =================================================== */

/* ── Signs Navigation Bar ── */
.signs-nav {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.signs-nav::-webkit-scrollbar { display: none; }
.signs-nav-inner {
    display: flex;
    min-width: max-content;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.snav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .55rem .75rem;
    font-size: .7rem;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    gap: .15rem;
    font-family: 'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif;
}
.snav-item:hover { color: #1a1a2e; border-bottom-color: #aaa; background: #f5f5f5; }
.snav-item.active { color: #1a1a2e; border-bottom-color: #FFD700; font-weight: 900; background: #fffde7; }
.snav-item span { font-family: 'Noto Sans JP', sans-serif; font-size: .65rem; }

/* ── Hero Section ── */
.sign-hero {
    color: white;
    padding: 2.5rem 0 2rem;
}
.sign-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 130px 1fr 180px;
    gap: 1.5rem;
    align-items: center;
}
.sign-hero-left {
    text-align: center;
}
.sign-hero-emoji {
    font-size: 5rem;
    line-height: 1;
    font-family: 'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif;
}
.sign-hero-symbol {
    font-size: 2.5rem;
    opacity: .7;
    margin-top: .25rem;
}
.sign-hero-center {}
.sign-hero-dates {
    font-size: .8rem;
    opacity: .75;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}
.sign-hero-name {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.sign-hero-en {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    opacity: .8;
    letter-spacing: .15em;
    margin-bottom: .75rem;
}
.sign-hero-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-badge {
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.3);
}

/* Today's rank widget */
.sign-today-rank {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(8px);
}
.str-label { font-size: .7rem; opacity: .75; margin-bottom: .3rem; }
.str-medal { font-size: 2.5rem; line-height: 1; font-family: 'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.str-rank  { font-size: 2.2rem; font-weight: 900; line-height: 1.1; }
.str-label-badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: white;
    margin: .4rem 0;
}
.str-stars { color: #FFD700; font-size: 1rem; letter-spacing: 2px; }

/* ── Content Layout ── */
.sign-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
.sign-section { margin: 2.5rem 0; }
.section-desc {
    text-align: center;
    color: #666;
    font-size: .9rem;
    margin-top: -.5rem;
    margin-bottom: 1.5rem;
}

/* ── Fortune Card ── */
.fortune-card {
    background: var(--bg-color, #f9f9ff);
    border: 2px solid var(--border-color, #ddd);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.fortune-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.fortune-rank-badge {
    padding: .3rem 1rem;
    border-radius: 999px;
    color: white;
    font-size: .8rem;
    font-weight: 700;
}
.fortune-stars { color: #FFD700; font-size: 1rem; letter-spacing: 2px; }
.fortune-avg { font-size: .75rem; color: #888; margin-left: auto; }
.fortune-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c2c2c;
    margin-bottom: 1rem;
}
.fortune-advice {
    background: #f0f4ff;
    border-left: 4px solid #1a1a2e;
    padding: .75rem 1rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.advice-label { font-weight: 700; color: #1a1a2e; white-space: nowrap; }

/* Lucky grid */
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
.lucky-card {
    background: white;
    border-radius: 10px;
    padding: .75rem .5rem;
    text-align: center;
    font-size: .75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.lucky-card span { color: #666; font-size: .7rem; }
.lucky-card strong { color: #1a1a2e; font-size: .85rem; }

/* ── Weekly Chart ── */
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid #e0e0e0;
}
.chart-info { margin-bottom: 1rem; }
.chart-info p { font-size: .85rem; color: #666; }
.chart-wrap { position: relative; }
.chart-legend {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    color: #888;
    margin-top: .75rem;
    justify-content: center;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Traits Grid ── */
.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.trait-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: transform .2s;
}
.trait-card:hover { transform: translateY(-4px); }
.trait-icon { font-size: 2rem; margin-bottom: .5rem; font-family: 'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.trait-card h3 { font-size: .85rem; color: #666; margin-bottom: .75rem; font-weight: 700; }
.trait-big { font-size: 1.4rem; font-weight: 900; color: #1a1a2e; }
.trait-sub { font-size: .75rem; color: #888; margin-top: .25rem; }
.trait-tags { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.trait-tag {
    padding: .2rem .65rem;
    border-radius: 999px;
    color: white;
    font-size: .72rem;
    font-weight: 600;
}

/* ── Compatibility Chart ── */
.compat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.compat-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    align-items: center;
    gap: 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.compat-row:last-child { border-bottom: none; }
.compat-sign {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
}
.compat-emoji { font-size: 1.2rem; font-family: 'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.compat-symbol { font-size: 1rem; color: #888; }
.compat-name { color: #1a1a2e; }
.compat-bar-wrap {
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}
.compat-bar {
    height: 100%;
    border-radius: 6px;
    transition: width .8s ease;
}
.compat-score-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: flex-end;
}
.compat-score { font-size: .9rem; font-weight: 700; }
.compat-label { font-size: .72rem; font-weight: 600; }

/* ── Sign prev/next nav ── */
.sign-prev-next {
    display: flex;
    gap: .5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sign-hero-inner {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
    }
    .sign-hero-right {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
    }
    .sign-today-rank { display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; }
    .str-medal { font-size: 1.8rem; }
    .str-rank { font-size: 1.6rem; }
    .sign-hero-name { font-size: 2rem; }
    .lucky-grid { grid-template-columns: repeat(2, 1fr); }
    .compat-row { grid-template-columns: 120px 1fr 130px; gap: .5rem; }
    .date-nav-inner { flex-wrap: wrap; gap: .5rem; justify-content: center; }
    .sign-prev-next { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .sign-hero-inner { grid-template-columns: 70px 1fr; }
    .sign-hero-emoji { font-size: 3.5rem; }
    .sign-hero-name { font-size: 1.6rem; }
    .compat-row { grid-template-columns: 100px 1fr; grid-template-rows: auto auto; }
    .compat-score-wrap { grid-column: 2; }
    .traits-grid { grid-template-columns: repeat(2, 1fr); }
    .lucky-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 24ソース統計情報セクション ── */
.stats-sources-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.stats-region {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
}
.stats-region-title {
    font-size: .95rem;
    font-weight: 700;
    padding: .6rem 1rem;
    background: linear-gradient(135deg, #f5f5f5, #ececec);
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}
.stats-table thead tr {
    background: #fafafa;
}
.stats-table th {
    padding: .45rem .75rem;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
.stats-table td {
    padding: .45rem .75rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: #fafafa; }
.src-name { color: #333; font-weight: 500; }
.src-rank {
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    min-width: 48px;
}
.src-rank-top { color: #E65100; }
.src-rank-mid { color: #2E7D32; }
.src-rank-low { color: #7986CB; }
.src-weight { min-width: 100px; }
.weight-bar-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.weight-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #42A5F5, #1565C0);
    flex-shrink: 0;
}
.weight-bar-wrap span {
    font-size: .75rem;
    color: #777;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .stats-sources-wrap { grid-template-columns: 1fr; }
    .stats-table { font-size: .78rem; }
}
