/* Landing page styles */
.landing-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Breadcrumbs */
.landing-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.landing-breadcrumbs li + li::before {
    content: "›";
    margin: 0 0.5rem;
}

.landing-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.landing-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Hero header */
.landing-header {
    position: relative;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    text-align: center;
    padding: 48px 32px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.landing-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.landing-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.landing-stats {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Intro callout */
.landing-intro {
    background: rgba(8, 145, 178, 0.08);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Content sections */
.landing-section {
    margin: 2rem 0;
}

.landing-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.landing-section p {
    line-height: 1.6;
    color: var(--text-secondary, var(--text-primary));
}

/* Trends section card */
.landing-trends {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    padding: 24px;
}

.landing-trends h2 {
    color: var(--primary-color);
}

/* Table section */
.landing-table-section {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    padding: 24px;
    margin: 1.5rem 0 2rem;
}

.landing-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landing-result-count {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.landing-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.landing-sort select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--surface);
    font-size: 0.875rem;
}

.landing-sort-dir {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
    font-size: 0.875rem;
}

/* Tables (both SSR and Alpine) */
.landing-ssr-table,
.landing-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.landing-ssr-table th,
.landing-results-table th {
    text-align: left;
    padding: 0.625rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    background: var(--gray-50);
}

.landing-ssr-table td,
.landing-results-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.landing-ssr-table tr:hover td,
.landing-results-table tr:hover td {
    background: var(--gray-50);
}

.landing-ssr-table a,
.landing-results-table a {
    color: var(--primary-color);
    text-decoration: none;
}

.landing-ssr-table a:hover,
.landing-results-table a:hover {
    text-decoration: underline;
}

/* Pagination */
.landing-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 0;
}

.landing-page-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.landing-page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.landing-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.landing-page-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.landing-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Market Snapshot */
.landing-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.landing-snapshot-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.landing-snapshot-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.landing-snapshot-stat:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.landing-snapshot-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.landing-snapshot-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* FAQ */
.landing-faq {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    padding: 24px;
}

.landing-faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.landing-faq-item summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.25rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary::before {
    content: "›";
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.landing-faq-item[open] summary::before {
    transform: rotate(90deg);
}

.landing-faq-item[open] summary {
    color: var(--primary-color);
}

.landing-faq-item summary:hover {
    color: var(--primary-color);
}

.landing-faq-item p {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Search suggestion chips */
.landing-search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landing-suggestion-chip {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(8, 145, 178, 0.1);
    border: none;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.landing-suggestion-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* CTA */
.landing-cta {
    text-align: center;
    padding: 40px;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--ocean-light), rgba(8, 145, 178, 0.12));
    border: none;
    border-radius: 12px;
}

.landing-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.landing-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
}

.landing-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Related pages */
.landing-related {
    margin: 2.5rem 0;
}

.landing-related h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.landing-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.landing-related-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.landing-related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.landing-related-title {
    font-weight: 500;
}

.landing-related-count {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .landing-header {
        padding: 32px 20px;
    }

    .landing-header h1 {
        font-size: 1.5rem;
    }

    .landing-ssr-table th:nth-child(3),
    .landing-ssr-table td:nth-child(3),
    .landing-results-table th:nth-child(3),
    .landing-results-table td:nth-child(3) {
        display: none;
    }

    .landing-related-grid {
        grid-template-columns: 1fr;
    }
}
