/* TechCrunch-Inspired Design System */
:root {
    /* Color Palette - TechCrunch Style */
    --tc-green: #00d084;
    --tc-green-dark: #00b570;
    --tc-blue: #0070f3;
    --tc-dark: #1a1a1a;
    --tc-gray-900: #111111;
    --tc-gray-800: #1f1f1f;
    --tc-gray-700: #2a2a2a;
    --tc-gray-600: #666666;
    --tc-gray-500: #888888;
    --tc-gray-400: #aaaaaa;
    --tc-gray-300: #cccccc;
    --tc-gray-200: #e5e5e5;
    --tc-gray-100: #f5f5f5;
    --tc-gray-50: #fafafa;
    
    /* Semantic Colors */
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-muted: #888888;
    --text-inverse: #ffffff;
    --background-primary: #ffffff;
    --background-secondary: #fafafa;
    --background-tertiary: #f5f5f5;
    --border-light: #e5e5e5;
    --border-medium: #cccccc;
    --accent-primary: var(--tc-green);
    --accent-secondary: var(--tc-blue);
    
    /* Category Colors */
    --category-ai: #ff6b6b;
    --category-startup: #4ecdc4;
    --category-tech: #45b7d1;
    --category-security: #f39c12;
    --category-apps: #9b59b6;
    --category-hardware: #e67e22;
    --category-default: var(--tc-gray-600);
    
    /* Typography - TechCrunch Style */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Typography Scale */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    
    /* Spacing System */
    --space-1: 0.25rem;     /* 4px */
    --space-2: 0.5rem;      /* 8px */
    --space-3: 0.75rem;     /* 12px */
    --space-4: 1rem;        /* 16px */
    --space-5: 1.25rem;     /* 20px */
    --space-6: 1.5rem;      /* 24px */
    --space-8: 2rem;        /* 32px */
    --space-10: 2.5rem;     /* 40px */
    --space-12: 3rem;       /* 48px */
    --space-16: 4rem;       /* 64px */
    --space-20: 5rem;       /* 80px */
    
    /* Shadows - Subtle TechCrunch Style */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Layout */
    --max-width-content: 1200px;
    --max-width-wide: 1400px;
    --header-height: 60px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Blog Post Structure and Layout */
.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.post-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--border-light);
}

.post-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.post-meta .type {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.post-meta .date,
.post-meta .author,
.post-meta .read-time {
    color: var(--text-muted);
}

.tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

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

.tag.ai {
    background: var(--category-ai);
    color: white;
    border-color: var(--category-ai);
}

.tag.tech {
    background: var(--category-tech);
    color: white;
    border-color: var(--category-tech);
}

/* Blog Post Typography and Spacing */
.post-body {
    line-height: 1.7;
    color: var(--text-primary);
}

.post-body p {
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
}

.post-body h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.post-body h4 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.post-body ul, .post-body ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.post-body li {
    margin-bottom: var(--space-2);
}

.post-body section {
    margin-bottom: var(--space-12);
}

.post-body pre {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-6) 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.post-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.post-body p code {
    background: var(--background-tertiary);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.post-body .note-box {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.post-body .note-box h4 {
    color: var(--accent-primary);
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
}

.post-body .note-box p {
    margin-bottom: 0;
}

.post-body .note-box ul {
    margin-bottom: 0;
}

.post-body .note-box li:last-child {
    margin-bottom: 0;
}

.post-body .table-of-contents {
    background: var(--background-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.post-body .table-of-contents h2 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.post-body .table-of-contents ul {
    margin-bottom: 0;
    list-style-type: none;
    padding-left: 0;
}

.post-body .table-of-contents li {
    margin-bottom: var(--space-2);
}

.post-body .table-of-contents a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-body .table-of-contents a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.post-body .related-resources {
    background: var(--background-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    margin-top: var(--space-12);
}

.post-body .related-resources h2 {
    margin-top: 0;
    color: var(--text-primary);
}

.post-body .conclusion {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-light);
}

/* Header Styles - TechCrunch Inspired */
.header {
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
}

.nav {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand h1 {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    margin: 0;
    background: linear-gradient(135deg, var(--tc-green), var(--tc-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast);
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-primary);
    font-weight: var(--font-weight-semibold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content - TechCrunch Style */
.main {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    min-height: calc(100vh - var(--header-height) - 100px);
}

.section {
    margin-bottom: 3rem;
}

.hero {
    text-align: left;
    margin-bottom: var(--space-16);
    padding: var(--space-16) 0;
    background: var(--background-primary);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tc-green), var(--tc-blue));
}

.hero h2 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
    line-height: 1.1;
    max-width: 800px;
}

.hero p {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

/* Home Page Layout - TechCrunch Grid Style */
.home-content {
    margin-top: var(--space-12);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
}

.trending-section-home,
.latest-blogs-section,
.latest-courses-section,
.featured-videos-section {
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: box-shadow var(--transition-base);
}

.trending-section-home:hover,
.latest-blogs-section:hover,
.latest-courses-section:hover,
.featured-videos-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    margin-bottom: var(--space-8);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-4);
}

.section-header h3 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.feed-container, .posts-container {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

/* Remove extra padding when containers are inside section boxes */
.trending-section-home .feed-container,
.latest-blogs-section .posts-container,
.latest-courses-section .posts-container,
.featured-videos-section .videos-container {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.feed-container:hover, .posts-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* Feed Item Styles */
.feed-item {
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4) 0;
    transition: transform var(--transition-base);
}

.feed-item:hover {
    transform: translateY(-1px);
}

.feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure no extra bottom spacing on cards */
.post-card:last-child,
.course-card:last-child,
.video-card:last-child {
    margin-bottom: 0;
}


.feed-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
}

.feed-item h4 a {
    text-decoration: none;
    color: inherit;
}

.feed-item h4 a:hover {
    color: var(--tc-green);
}

.feed-item p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.feed-item .meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feed-item-compact {
    padding: var(--space-3) 0;
}

.feed-item-compact h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.feed-item-compact .meta {
    font-size: var(--text-xs);
}

/* Videos Section Styles */
.videos-intro {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.video-card {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 1rem;
}

.video-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-source .source-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.video-duration {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
}

.video-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

.play-overlay::after {
    content: '▶';
    color: white;
    font-size: 18px;
    margin-left: 2px;
}

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

/* Video Player Section Styles */
.video-player-section {
    padding: var(--space-8);
}

.video-player-content {
    max-width: 1200px;
    margin: 0 auto;
}

.video-player-header {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.video-player-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.video-player-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-player-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-embed-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.video-description {
    background: var(--background-primary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-8);
}

.video-description h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.video-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.video-tags .tag {
    background: var(--background-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
}

.related-videos {
    background: var(--background-primary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.related-videos h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.related-video-card {
    display: flex;
    gap: 1rem;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-video-card:hover {
    background: var(--background-tertiary);
}

.related-video-thumbnail {
    width: 120px;
    height: 68px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.related-video-info h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-video-info .channel {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.related-video-info .duration {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Post Card Styles - TechCrunch Inspired */
.post-card {
    background: var(--background-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tc-green), var(--tc-blue));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    flex-grow: 1;
}

.post-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.5;
    font-size: var(--text-sm);
}

.post-card .tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
    margin-top: auto;
}

.tag {
    background: var(--tc-gray-100);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.tag:hover {
    background: var(--tc-gray-200);
    border-color: var(--border-medium);
}

/* Category-specific tag colors */
.tag.ai {
    background: var(--category-ai);
    color: white;
    border-color: var(--category-ai);
}

.tag.startup,
.tag.startups {
    background: var(--category-startup);
    color: white;
    border-color: var(--category-startup);
}

.tag.tech,
.tag.technology {
    background: var(--category-tech);
    color: white;
    border-color: var(--category-tech);
}

.tag.security {
    background: var(--category-security);
    color: white;
    border-color: var(--category-security);
}

.tag.apps {
    background: var(--category-apps);
    color: white;
    border-color: var(--category-apps);
}

.tag.hardware {
    background: var(--category-hardware);
    color: white;
    border-color: var(--category-hardware);
}

.tag.python {
    background: #3776ab;
    color: white;
    border-color: #3776ab;
}

.tag.java {
    background: #ed8b00;
    color: white;
    border-color: #ed8b00;
}

.tag.docker {
    background: #2496ed;
    color: white;
    border-color: #2496ed;
}

.tag.devops {
    background: #326ce5;
    color: white;
    border-color: #326ce5;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-red);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--error-red);
    font-weight: 500;
}

.fallback-notice {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-orange);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--warning-orange);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.fallback-notice p {
    margin: 0;
    font-size: 0.9rem;
}

/* Back Button */
.back-button {
    background: var(--accent-secondary);
    color: white;
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--space-8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.back-button:hover {
    background: var(--tc-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Footer - TechCrunch Style */
.footer {
    background: var(--tc-gray-900);
    color: var(--text-inverse);
    text-align: center;
    padding: var(--space-12) 0;
    margin-top: var(--space-16);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-links {
    margin-top: var(--space-4);
    display: flex;
    justify-content: center;
    gap: var(--space-8);
}

.footer-links a {
    color: var(--tc-gray-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--tc-green);
}

/* TechCrunch-Style Components */
.tc-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    background: var(--tc-green);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-right: var(--space-2);
}

.tc-badge.breaking {
    background: #ff4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.tc-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.tc-meta .author {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.tc-meta .date {
    position: relative;
}

.tc-meta .date::before {
    content: '•';
    margin-right: var(--space-2);
}

/* Responsive Design - TechCrunch Style */
@media screen and (max-width: 768px) {
    /* Blog Post Responsive */
    .post-article {
        margin: var(--space-4);
        padding: var(--space-6);
        max-width: none;
    }
    
    .post-header h1 {
        font-size: var(--text-3xl);
        line-height: 1.3;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .tags {
        margin-top: var(--space-2);
    }
    
    /* Navigation Responsive */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--background-primary);
        width: 100%;
        text-align: center;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--space-8) 0;
        border-top: 1px solid var(--border-light);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: var(--space-2) 0;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-brand h1 {
        font-size: var(--text-xl);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .main {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero {
        padding: var(--space-12) 0;
        text-align: center;
    }
    
    .hero h2 {
        font-size: var(--text-3xl);
    }
    
    .hero p {
        font-size: var(--text-lg);
        margin: 0 auto;
    }
    
    .section-grid {
        gap: var(--space-12);
    }
    
    .trending-section-home,
    .latest-blogs-section,
    .latest-courses-section,
    .featured-videos-section {
        padding: var(--space-6);
    }
    
    .section-header h3 {
        font-size: var(--text-xl);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .content-filters {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .video-player-section {
        padding: var(--space-4);
    }
    
    .video-player-header,
    .video-description,
    .related-videos {
        padding: var(--space-6);
    }
    
    .related-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .related-video-card {
        flex-direction: column;
        text-align: center;
    }
    
    .related-video-thumbnail {
        width: 100%;
        height: 150px;
    }
}

/* Content Filtering Styles - TechCrunch Style */
.section-header-with-filters {
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-6);
}

.section-title {
    margin-bottom: var(--space-6);
}

.section-title h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.025em;
}

.content-filters {
    background: var(--background-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-6);
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 150px;
}

.filter-group label {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--background-primary);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--tc-green);
}

.filter-select:focus {
    outline: none;
    border-color: var(--tc-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.clear-filters-btn {
    background: var(--tc-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #d63850;
    transform: translateY(-1px);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.no-results h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.no-results p {
    margin-bottom: 1.5rem;
}

/* Enhanced Video Card with More Metadata */
.video-card-enhanced {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.video-card-enhanced:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.video-card-enhanced .video-info {
    padding: var(--space-6);
}

.video-metadata-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.video-platform-badge {
    background: #ff0000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}


.video-tags-row {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.video-tag {
    background: var(--background-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .content-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .section-header-with-filters {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav {
        padding: 0 var(--space-4);
    }

    .hero h2 {
        font-size: var(--text-2xl);
    }

    .main {
        padding: var(--space-4) var(--space-3);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .section-header {
        text-align: center;
    }
    
    .tc-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}

/* Large screens - TechCrunch wide layout */
@media screen and (min-width: 1200px) {
    .section-grid {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-16);
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .hero {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--space-12);
        align-items: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}