/* sst-validation.css - SST Validation page specific styles */
/* Aligned with moni1000.css design language */

/* Override main width to match moni1000.html */
main {
    max-width: 900px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Header (moni1000 style) */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    line-height: 1.3;
}

body.ja .page-header h1 {
    font-size: 1.5rem;
}

.page-header .lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero Section - moni1000 style */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.75), rgba(43, 108, 176, 0.6)), url("../images/bg-sst-validation.webp");
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    background-size: cover;
    background-position: center;
}

.hero-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.ja .hero-tagline {
    font-size: 1.3rem;
}

/* Hero stats row */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 100px;
}

.hero-stat-card .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    display: block;
}

.hero-stat-card .label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

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

.content-section h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.content-section p {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Comparison Table */
.comparison-table {
    margin: 1.5rem 0;
}

.comparison-row {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

@media (max-width: 640px) {
    .comparison-row {
        flex-direction: column;
    }
}

.comparison-item {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.comparison-item.satellite {
    border-left: 4px solid #d63031;
}

.comparison-item.insitu {
    border-left: 4px solid #0066aa;
}

.comparison-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comparison-item p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-item ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comparison-item li {
    margin-bottom: 0.25rem;
}

.comparison-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

@media (max-width: 640px) {
    .comparison-vs {
        padding: 0.5rem 0;
    }
}

/* Figure Container */
.figure-container {
    margin: 1.5rem 0;
}

.main-figure {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.figure-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

@media (max-width: 640px) {
    .map-container {
        height: 350px;
    }
}

/* Region Cards - moni1000 style */
.region-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .region-cards {
        grid-template-columns: 1fr;
    }
}

.region-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
}

.region-card.honshu {
    border-top: 4px solid #2563eb;
}

.region-card.okinawa {
    border-top: 4px solid #16a34a;
}

.region-card.sakishima {
    border-top: 4px solid #ea580c;
}

.region-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.region-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.region-card.honshu .region-dot { background: #2563eb; }
.region-card.okinawa .region-dot { background: #16a34a; }
.region-card.sakishima .region-dot { background: #ea580c; }

.region-header h4 {
    margin: 0;
    font-size: 0.9rem;
}

.region-stats {
    text-align: center;
    margin-bottom: 0.75rem;
}

.region-slope {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.region-card.honshu .region-slope { color: #2563eb; }
.region-card.okinawa .region-slope { color: #16a34a; }
.region-card.sakishima .region-slope { color: #ea580c; }

.region-range {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.region-sites {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Concept Figure */
.concept-figure {
    margin: 1.5rem 0;
    text-align: center;
}

.concept-svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Explanation Points */
.explanation-points {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.explanation-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.point-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.point-content h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
}

.point-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Implication Box - moni1000 acknowledgment style */
.implication-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.implication-box p {
    margin: 0;
    line-height: 1.7;
    color: #1e40af;
}

.implication-box strong {
    color: #1e3a8a;
}

/* Technical Details */
.technical-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.technical-details summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.technical-details summary::-webkit-details-marker {
    display: none;
}

.technical-details summary::before {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.technical-details[open] summary::before {
    transform: rotate(90deg);
}

.details-content {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.details-content h4 {
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
}

.details-content h4:first-child {
    margin-top: 1rem;
}

.details-content pre {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.details-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.details-content li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.details-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sources Section */
.sources-section {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sources-section h2 {
    margin-bottom: 1rem;
}

.source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.source-list a {
    color: var(--accent-primary);
}

/* Page Navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .page-nav {
        flex-direction: column;
    }
}

.page-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.page-nav .nav-link:hover {
    border-color: var(--accent-primary);
    background: white;
}

.nav-direction {
    color: var(--text-muted);
}

.nav-title {
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-back-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-back-link:hover {
    text-decoration: underline;
}

/* Mobile-optimized hero */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(43, 108, 176, 0.7)), url("../images/bg-sst-validation-mobile.webp") !important;
        background-size: cover !important;
        background-position: center !important;
        padding: 2rem 1.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    body.ja .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-stat-card {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }

    .hero-stat-card .number {
        font-size: 1.4rem;
    }

    .hero-stat-card .label {
        font-size: 0.7rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    body.ja .page-header h1 {
        font-size: 1.25rem;
    }
}


/* Region meaning - added for clarity */
.region-meaning {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.75rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid currentColor;
    font-weight: 500;
}

.region-card.honshu .region-meaning { border-color: #2563eb; }
.region-card.okinawa .region-meaning { border-color: #16a34a; }
.region-card.sakishima .region-meaning { border-color: #ea580c; }

/* ===========================================
   Limitations Section (added 2026-01-30)
   =========================================== */

.limitation-item {
    background: var(--bg-secondary, #f8f9fa);
    border-left: 4px solid var(--accent-primary, #0d6efd);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.limitation-item h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary, #212529);
    font-size: 1rem;
}

.limitation-item p {
    margin: 0;
    line-height: 1.7;
}

/* Can/Cannot Grid */
.can-cannot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .can-cannot-grid {
        grid-template-columns: 1fr;
    }
}

.can-box, .cannot-box {
    padding: 1.5rem;
    border-radius: 12px;
}

.can-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
}

.can-box h4 {
    color: #155724;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cannot-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
}

.cannot-box h4 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 1rem;
}

.can-box ul, .cannot-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.can-box li, .cannot-box li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.can-box li:last-child, .cannot-box li:last-child {
    margin-bottom: 0;
}
