/* ========================================
   Resume Geni Blog CSS
   ========================================
   TRUE ADDON to dark-theme.css - Uses parent styles, only adds blog-specific.

   INHERITED from dark-theme.css:
   - All CSS variables (--bg-*, --text-*, --accent-*, --border-*, --glass-*)
   - .card-glass (liquid glass cards)
   - .btn-glow, .btn-glass (buttons)
   - Form inputs, navbar, footer, theme toggle

   THIS FILE provides:
   - Blog layout containers
   - Post cards and grids
   - Article typography
   - Industry badges
   - Hub page styling
   ======================================== */

/* ========================================
   BLOG-SPECIFIC VARIABLES
   ======================================== */

:root {
    --blog-content-max: 800px;
    --blog-container-max: 1200px;
}

/* ========================================
   LAYOUT
   ======================================== */

.blog-layout {
    padding-top: 24px;
    min-height: calc(100vh - 300px);
}

.blog-container {
    max-width: var(--blog-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.blog-container-narrow {
    max-width: var(--blog-content-max);
    margin: 0 auto;
    padding: 0 24px;
}

.blog-main {
    padding: 64px 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.blog-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 48px;
    line-height: 1.5;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: var(--text-on-accent);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-glass:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   BLOG GLASS CARD
   Matches .card-glass from dark-theme.css for unified styling
   ======================================== */

.blog-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-glass-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   POST CARDS
   ======================================== */

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-card .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.post-card .post-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.post-card .post-category {
    background: rgba(255, 138, 76, 0.15);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.post-card .post-category:hover {
    background: rgba(255, 138, 76, 0.25);
}

.post-card .post-date {
    color: var(--text-muted);
}

.post-card .post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card .post-title a:hover {
    color: var(--accent-primary);
}

.post-card .post-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.post-card .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   INDUSTRY BADGES
   ======================================== */

.industry-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.industry-healthcare { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }
.industry-tech { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.industry-trades { background: rgba(243, 156, 18, 0.1); color: #f39c12; }
.industry-business { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.industry-hospitality { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.industry-creative { background: rgba(233, 30, 99, 0.1); color: #e91e63; }
.industry-education { background: rgba(0, 188, 212, 0.1); color: #00bcd4; }
.industry-transportation { background: rgba(121, 85, 72, 0.1); color: #795548; }

[data-theme="light"] .industry-badge { background: rgba(99, 102, 241, 0.12); }
[data-theme="light"] .industry-healthcare { background: rgba(231, 76, 60, 0.12); }
[data-theme="light"] .industry-tech { background: rgba(52, 152, 219, 0.12); }
[data-theme="light"] .industry-trades { background: rgba(243, 156, 18, 0.12); }
[data-theme="light"] .industry-business { background: rgba(46, 204, 113, 0.12); }
[data-theme="light"] .industry-hospitality { background: rgba(155, 89, 182, 0.12); }
[data-theme="light"] .industry-creative { background: rgba(233, 30, 99, 0.12); }
[data-theme="light"] .industry-education { background: rgba(0, 188, 212, 0.12); }
[data-theme="light"] .industry-transportation { background: rgba(121, 85, 72, 0.12); }

/* ========================================
   REGIONAL VARIANTS
   ======================================== */

.regional-variants {
    margin: 32px 0;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.regional-variants h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

.regional-variants ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.regional-variants li {
    margin: 0;
}

.regional-variants a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.regional-variants a:hover {
    background: var(--accent-primary);
    color: white;
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts {
    margin-top: 48px;
}

.related-posts h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.related-card-content {
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-arrow {
    color: var(--accent-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */

.article-header {
    margin-bottom: 48px;
}

.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2,
.article-content h3 {
    color: var(--text-primary);
    margin: 48px 0 24px;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.35rem;
}

.article-content p {
    margin: 0 0 24px;
}

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

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-primary);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--text-primary);
    font-style: italic;
}

.article-content code {
    background: var(--glass-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-footer {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    margin-top: 48px;
}

/* ========================================
   ARTICLE TABLES
   ======================================== */

.article-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.article-content > table {
    margin: 32px 0;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.article-content thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.article-content th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.article-content th:first-child {
    border-top-left-radius: 15px;
}

.article-content th:last-child {
    border-top-right-radius: 15px;
}

.article-content td {
    padding: 14px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.article-content tbody tr:nth-child(even) {
    background: var(--glass-bg);
}

.article-content tbody tr:hover {
    background: rgba(255, 138, 76, 0.08);
}

.article-content tbody tr:hover td {
    color: var(--text-primary);
}

.article-content tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.article-content tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   FOOTNOTES
   ======================================== */

.article-content .footnote-ref {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
    margin-left: 2px;
}

.article-content .footnote-ref a {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0 2px;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}

.article-content .footnote-ref a:hover {
    background-color: rgba(255, 138, 76, 0.2);
    text-decoration: none;
}

.article-content .footnotes-sep {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 48px 0 24px;
}

.article-content .footnotes {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.article-content .footnotes-list {
    padding-left: 24px;
    margin: 0;
}

.article-content .footnote-item {
    margin-bottom: 12px;
    padding-left: 8px;
}

.article-content .footnote-item p {
    margin: 0;
    display: inline;
}

.article-content .footnote-backref {
    color: var(--accent-primary);
    text-decoration: none;
    margin-left: 6px;
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.article-content .footnote-backref:hover {
    opacity: 1;
    text-decoration: none;
}

.article-content .footnotes a:not(.footnote-backref) {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.article-content .footnotes a:not(.footnote-backref):hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ========================================
   SEARCH
   ======================================== */

.search-section {
    margin-bottom: 32px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 14px 20px 14px 52px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(255, 138, 76, 0.25);
}

.search-input:focus + .search-icon,
.search-container:focus-within .search-icon {
    color: var(--accent-primary);
}

/* ========================================
   TAGS & FILTERS
   ======================================== */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--glass-bg);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    margin: 0 8px 8px 0;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(255, 138, 76, 0.15);
    color: var(--accent-primary);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.filter-badge .label {
    color: var(--text-secondary);
}

.filter-badge .value {
    color: var(--text-primary);
    font-weight: 500;
}

.filter-badge .clear {
    color: var(--accent-primary);
    text-decoration: none;
    margin-left: 8px;
}

.filter-badge .clear:hover {
    text-decoration: underline;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination .page-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .page-info {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   GRID LAYOUT
   ======================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    text-align: center;
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ========================================
   VIDEO PLAY OVERLAY
   ======================================== */

.post-media {
    position: relative;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.post-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

/* Simple breadcrumbs (used by _breadcrumbs.html component) */
.breadcrumbs {
    margin-bottom: 24px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li::after {
    content: '/';
    color: var(--text-muted);
    margin-left: 8px;
    opacity: 0.5;
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs li:last-child {
    color: var(--text-secondary);
}

/* Detailed breadcrumbs (used by post.html) */
.breadcrumb-nav {
    margin-bottom: 24px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 4px;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* ========================================
   BLOG HERO
   ======================================== */

.blog-hero {
    padding: 48px 0;
    text-align: center;
}

.blog-hero .blog-title {
    margin-bottom: 16px;
}

.blog-hero .blog-subtitle {
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Blog Hero Stats */
.blog-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
}

.blog-stat {
    text-align: center;
}

.blog-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.blog-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   INDEX PAGE - INDUSTRY CARDS
   ======================================== */

.industry-section {
    margin-bottom: 48px;
}

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

.section-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    text-decoration: underline;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.industry-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.industry-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.industry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.industry-content {
    flex: 1;
    min-width: 0;
}

.industry-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.industry-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.industry-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.industry-card:hover .industry-arrow {
    opacity: 1;
    color: var(--accent-primary);
}

/* ========================================
   INDEX PAGE - QUICK LINKS
   ======================================== */

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.quick-link i {
    font-size: 1rem;
}

/* ========================================
   INDEX PAGE - RECENT SECTION
   ======================================== */

.recent-section {
    margin-bottom: 48px;
}

/* ========================================
   HUB PAGES - HERO
   ======================================== */

.hub-hero {
    text-align: center;
    margin-bottom: 48px;
}

.hub-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hub-hero p,
.hub-hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.hub-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.hub-stat {
    text-align: center;
}

.hub-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.hub-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   HUB PAGES - INDUSTRY GRID
   ======================================== */

.hub-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.hub-industry-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.hub-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.hub-industry-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.hub-industry-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hub-industry-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 12px;
}

.hub-post-count {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* ========================================
   HUB PAGES - POSTS LIST
   ======================================== */

.posts-list {
    display: grid;
    gap: 16px;
}

.post-list-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.post-list-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.post-list-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.post-list-item .meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-list-item .arrow {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* ========================================
   HUB PAGES - REGION BADGE
   ======================================== */

.region-badge {
    display: inline-block;
    background: rgba(255, 138, 76, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ========================================
   HUB PAGES - TOPIC STATS
   ======================================== */

.topic-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.topic-stat {
    background: rgba(255, 138, 76, 0.1);
    padding: 16px 32px;
    border-radius: 12px;
    text-align: center;
}

.topic-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.topic-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   LISTING PAGES - BACK LINK
   ======================================== */

.back-link-container {
    margin-bottom: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.back-link:hover {
    background: var(--bg-hover);
}

/* ========================================
   LISTING PAGES - HEADER
   ======================================== */

.listing-header {
    text-align: center;
    margin-bottom: 48px;
}

.listing-header .blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.listing-header .blog-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   A-Z DIRECTORY - HERO
   ======================================== */

.directory-hero {
    text-align: center;
    margin-bottom: 32px;
}

.directory-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.directory-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   A-Z DIRECTORY - ALPHABET NAVIGATION
   ======================================== */

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: sticky;
    top: 80px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alphabet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.alphabet-link:hover {
    background: rgba(255, 138, 76, 0.2);
    color: var(--accent-primary);
}

.alphabet-link.active {
    background: var(--accent-primary);
    color: white;
}

.alphabet-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ========================================
   A-Z DIRECTORY - LETTER SECTIONS
   ======================================== */

.letter-section {
    margin-bottom: 48px;
    scroll-margin-top: 140px;
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.letter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: var(--accent-primary);
    border-radius: 12px;
}

.letter-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.letter-posts {
    display: grid;
    gap: 8px;
}

.letter-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--glass-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.letter-post-link:hover {
    background: var(--bg-hover);
}

.letter-post-link .title {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.letter-post-link .meta {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* ========================================
   LEGACY COMPATIBILITY (.blog-content)
   ======================================== */

.blog-content {
    line-height: 1.8;
    font-size: 18px;
    color: var(--text-secondary);
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.blog-content h1 { font-size: 2.5rem; }
.blog-content h2 { font-size: 1.75rem; }
.blog-content h3 { font-size: 1.35rem; }

.blog-content p {
    margin-bottom: 24px;
}

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

.blog-content a:hover {
    text-decoration: underline;
}

.blog-content blockquote {
    border-left: 3px solid var(--accent-primary);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--text-primary);
    font-style: italic;
}

.blog-content pre {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

.blog-content code {
    background: var(--glass-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

    .blog-main {
        padding: 40px 0;
    }

    .blog-title {
        font-size: 2rem;
    }

    .post-card .post-body {
        padding: 20px;
    }

    .article-content table {
        min-width: 500px;
    }

    .article-content th,
    .article-content td {
        padding: 12px 14px;
        font-size: 14px;
    }

    .article-content th {
        font-size: 12px;
    }

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

    .alphabet-nav {
        gap: 4px;
    }

    .alphabet-link {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .hub-stats,
    .topic-stats,
    .blog-stats {
        flex-direction: row;
        gap: 32px;
    }

    .blog-stat-value {
        font-size: 1.5rem;
    }

    .search-container {
        max-width: 100%;
    }
}

/* ========================================
   BLOG FOOTER
   ======================================== */

.blog-footer {
    margin-top: 64px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.blog-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.blog-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.blog-footer .footer-links a:hover {
    color: var(--accent-primary);
}

.blog-footer .footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}
