/* Shared styles for hub pages */

/* Publication cards (matching /publications page style) */
.pub-card {
    display: block;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.pub-card:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.pub-card-meta {
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pub-card-badge { margin-left: 0; }
.pub-card-badge-granted { color: #22c55e; }
.pub-card-badge-granted::before { content: '● '; }
.pub-card-badge-filed { color: #f59e0b; }
.pub-card-badge-filed::before { content: '● '; }
.pub-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.pub-card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.hub-header {
    padding: 80px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0;
}

.hub-header .section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 12px;
}

.hub-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hub-header .subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 680px;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    margin-top: 40px;
}

.hub-stat {
    background: #fff;
    padding: 24px 20px;
}

.hub-stat-number {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.hub-stat-label {
    font-size: 12px;
    color: #666;
}

.hub-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.hub-section:last-of-type {
    border-bottom: none;
}

.hub-section h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

/* Patent cards */
.patent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.patent-card {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
}

.patent-card:last-child { border-bottom: none; }

.patent-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.patent-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 3px;
}

.patent-badge-granted { background: #dcfce7; color: #166534; }
.patent-badge-filed { background: #fef3c7; color: #92400e; }

.patent-card-company {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    text-decoration: none;
}

.patent-card-company:hover { color: #666; }

.patent-card-category {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    padding: 1px 8px;
    border-radius: 3px;
}

.patent-card-category:hover { border-color: #000; color: #000; }

.patent-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
}

a.patent-card-title:hover { color: #666; }

.patent-card-pitch {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.patent-card-scores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.patent-score {
    font-size: 11px;
    color: #999;
    font-variant-numeric: tabular-nums;
}

/* Tab nav (leaderboards) */
.tab-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
}

.tab-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tab-nav a:hover { color: #000; background: #f5f5f5; }
.tab-nav a.active { color: #000; background: #f0f0f0; font-weight: 600; }

/* Category nav (sidebar-style links) */
.cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.cat-nav a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.cat-nav a:hover { border-color: #000; color: #000; }
.cat-nav a.active { background: #000; color: #fff; border-color: #000; }

/* Applications list */
.app-row {
    display: grid;
    grid-template-columns: 1fr 80px 200px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-row:last-child { border-bottom: none; }

.app-name {
    font-size: 15px;
    font-weight: 500;
}

.app-count {
    font-size: 14px;
    color: #666;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.app-companies {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Trends table */
.trends-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.trends-table th,
.trends-table td {
    text-align: right;
    padding: 12px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.trends-table th {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.trends-table td:first-child,
.trends-table th:first-child {
    text-align: left;
    font-weight: 500;
    padding-left: 0;
}

.trends-table td:first-child a {
    color: #000;
    text-decoration: none;
}

.trends-table td:first-child a:hover { color: #666; }

.trends-table .trend-up { color: #166534; }
.trends-table .trend-down { color: #991b1b; }
.trends-table .trend-na { color: #ccc; }

/* Cross-links section */
.cross-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.cross-links a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.cross-links a:hover { border-color: #000; color: #000; }

/* Responsive */
@media (max-width: 1024px) {
    .hub-header h1 { font-size: 40px; }
    .app-row { grid-template-columns: 1fr 60px; }
    .app-companies { display: none; }
}

@media (max-width: 640px) {
    .hub-header { padding: 48px 24px 32px; }
    .hub-header h1 { font-size: 32px; }
    .hub-section { padding: 40px 24px; }
    .hub-stats { grid-template-columns: repeat(2, 1fr); }
    .tab-nav { gap: 2px; }
    .tab-nav a { font-size: 12px; padding: 4px 10px; }
    .trends-table { font-size: 11px; }
    .trends-table th, .trends-table td { padding: 8px 6px; }
}
