/**
 * BMGJET Website Styles
 * Modern Dark Theme for Rust Plugin Developer
 * PHP 5.4 Compatible
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    
    /* Dark Theme Colors */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-light: #f8fafc;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-hero: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

pre {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo i {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

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

.nav-link i {
    font-size: 0.9em;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--text-primary);
    background: var(--primary-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Main Content ===== */
.main-content {
    min-height: 100vh;
    padding-top: 70px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.hero-stats-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    opacity: 0.8;
}

.hero-stats-note i {
    color: #ff0000;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.code-content .keyword { color: #c084fc; }
.code-content .class-name { color: #60a5fa; }
.code-content .method { color: #67e8f9; }
.code-content .string { color: #a3e635; }
.code-content .comment { color: #64748b; }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-link i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-github {
    background: #24292e;
    color: white;
}

.btn-github:hover {
    background: #2f363d;
    color: white;
}

.btn-youtube {
    background: #ff0000;
    color: white;
}

.btn-youtube:hover {
    background: #cc0000;
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-outline-light {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.btn-light {
    background: white;
    color: var(--bg-dark);
}

.btn-light:hover {
    background: var(--text-secondary);
    color: var(--bg-dark);
}

/* ===== Sections ===== */
.section-container {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-header.light .section-title,
.section-header.light .section-description {
    color: var(--text-primary);
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

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

/* ===== Features Section ===== */
.features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Featured Plugins Section ===== */
.featured-plugins {
    background: var(--bg-dark);
}

.plugins-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.plugin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.plugin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
}

.plugin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plugin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--primary-color);
}

.plugin-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plugin-badge.utility { background: rgba(6, 182, 212, 0.1); color: var(--accent-color); }
.plugin-badge.gameplay { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.plugin-badge.performance { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.plugin-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.plugin-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.plugin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.plugin-price {
    font-weight: 600;
    color: var(--success);
}

.plugin-links {
    display: flex;
    gap: 8px;
}

.plugin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.plugin-link:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== YouTube Section ===== */
.youtube-section {
    background: var(--bg-card);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.youtube-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.youtube-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

.youtube-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.youtube-card:hover .youtube-overlay {
    opacity: 1;
}

.youtube-overlay i {
    font-size: 4rem;
    color: white;
}

.youtube-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.youtube-info {
    padding: 16px;
}

.youtube-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.youtube-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.youtube-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.youtube-meta i {
    margin-right: 4px;
}

/* ===== YouTube Video Embed ===== */
.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== YouTube Page Header ===== */
.youtube-header .youtube-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.youtube-header .page-title i {
    color: #ff0000;
}

/* ===== Video Cards Full ===== */
.youtube-card-full {
    display: flex;
    flex-direction: column;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.video-overlay i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.video-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-meta {
    margin-bottom: 16px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.video-features {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-features h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.video-features ul {
    list-style: none;
}

.video-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.video-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* ===== YouTube CTA ===== */
.youtube-cta .more-plugins-content {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(204, 0, 0, 0.05) 100%);
    border-color: rgba(255, 0, 0, 0.3);
}

.youtube-cta .more-plugins-content i {
    color: #ff0000;
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

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

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    padding: 80px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.page-header-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-title i {
    color: var(--primary-color);
    margin-right: 12px;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== Plugins Page ===== */
.plugins-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.plugin-item {
    display: block;
}

.plugin-card-full {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.plugin-card-full:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
}

.plugin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plugin-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.plugin-image-container {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.plugin-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plugin-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.plugin-price-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.plugin-price-tag.free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.plugin-price-tag.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.plugin-category-tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--bg-dark);
    color: var(--text-muted);
}

.plugin-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.plugin-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.plugin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.plugin-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.plugin-stats {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plugin-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.more-plugins {
    margin-top: 60px;
}

.more-plugins-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    border: 2px dashed rgba(99, 102, 241, 0.3);
}

.more-plugins-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.more-plugins-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.more-plugins-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Marketplace Section ===== */
.marketplace-section {
    background: var(--bg-card);
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.marketplace-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.marketplace-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
}

.marketplace-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 20px;
}

.marketplace-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.marketplace-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-marketplace {
    background: var(--primary-color);
    color: white;
}

.btn-marketplace:hover {
    background: var(--primary-hover);
    color: white;
}

/* ===== GitHub Page ===== */
.github-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.github-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #24292e;
    border-radius: var(--radius-lg);
    font-size: 3rem;
    color: white;
    margin: 0 auto 24px;
}

.github-header .btn {
    margin-top: 24px;
}

.github-stats {
    background: var(--bg-card);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-dark);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info .stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

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

.repositories-section {
    background: var(--bg-dark);
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.repo-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.repo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.2);
}

.repo-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.repo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.repo-title-section {
    flex: 1;
}

.repo-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.repo-visibility {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.repo-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.repo-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.language-dot.csharp { background: #178600; }

.repo-stars, .repo-forks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.repo-stars i, .repo-forks i {
    color: var(--text-muted);
}

.btn-repo {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-repo:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.contributing-section {
    background: var(--bg-card);
    padding: 80px 0;
}

.contributing-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contributing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    font-size: 2rem;
    color: var(--success);
    margin: 0 auto 24px;
}

.contributing-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contributing-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contributing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Contact Page ===== */
.contact-section {
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(5px);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.method-content p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.method-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--accent-color);
}

/* ===== FAQ Section ===== */
.faq-section {
    background: var(--bg-card);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== API Page ===== */
.api-section {
    background: var(--bg-dark);
}

.api-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.api-info-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.api-info-card .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 auto 16px;
}

.api-info-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.code-block {
    display: block;
    background: var(--bg-dark);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--accent-color);
    overflow-x: auto;
    margin: 8px 0;
}

.api-documentation {
    margin-bottom: 60px;
}

.endpoint-doc {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method.get { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.method.post { background: rgba(99, 102, 241, 0.2); color: var(--primary-color); }

.endpoint-url {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-primary);
}

.endpoint-description {
    margin-bottom: 16px;
}

.endpoint-description p {
    color: var(--text-secondary);
}

.endpoint-example,
.endpoint-response,
.endpoint-notes {
    margin-top: 16px;
}

.endpoint-example h4,
.endpoint-response h4,
.endpoint-notes h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.endpoint-notes ul {
    list-style: disc;
    padding-left: 20px;
}

.endpoint-notes li {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.error-handling {
    margin-bottom: 60px;
}

.error-table table {
    width: 100%;
    border-collapse: collapse;
}

.error-table th,
.error-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.error-table th {
    background: var(--bg-card);
    font-weight: 600;
}

.error-code {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.integration-examples {
    margin-bottom: 60px;
}

.example-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-section h3 i {
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-links i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--primary-color);
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-copyright {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-credit i {
    color: var(--danger);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .code-window {
        max-width: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .repos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-social {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .plugins-showcase,
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .plugins-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .filter-btn i {
        display: none;
    }
}

/* ===== Plugin Detail Page ===== */
.plugin-header.plugin-header {
    padding: 40px 0 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

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

.plugin-header-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.plugin-icon-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.plugin-header-info {
    flex: 1;
}

.plugin-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.plugin-type-badge,
.plugin-cat-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plugin-type-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.plugin-cat-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
}

.plugin-title-xl {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.plugin-desc-xl {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 600px;
}

.plugin-price-xl {
    margin-bottom: 24px;
}

.price-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warning);
}

.plugin-actions-xl {
    display: flex;
    gap: 16px;
}

/* Plugin Content Section */
.plugin-content-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.plugin-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.plugin-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.content-title i {
    color: var(--primary-color);
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--success);
    margin-top: 4px;
}

/* Plugin Sidebar */
.plugin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 500;
    font-size: 0.875rem;
}

.info-value a {
    color: var(--primary-color);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-warning i { color: var(--warning); }

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Related Section */
.related-section {
    background: var(--bg-card);
    padding: 60px 0;
}

.related-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card .plugin-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Tools Page ===== */
.github-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.github-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    font-size: 3rem;
    color: white;
    margin: 0 auto 24px;
}

.github-header .btn {
    margin-top: 24px;
}

/* Premium badge */
.plugin-price-tag.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.plugin-badge.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Plugin category tags */
.plugin-category-tag.electrical {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.plugin-category-tag.premium {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

.plugin-category-tag.tools {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
}

.plugin-category-tag.hardware {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

@media (max-width: 1024px) {
    .plugin-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .plugin-badges {
        justify-content: center;
    }
    
    .plugin-desc-xl {
        max-width: 100%;
    }
    
    .plugin-price-xl {
        display: flex;
        justify-content: center;
    }
    
    .plugin-actions-xl {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .plugin-content-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .plugin-icon-xl {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .plugin-title-xl {
        font-size: 1.5rem;
    }
    
    .plugin-actions-xl {
        flex-direction: column;
    }
    
    .plugin-actions-xl .btn {
        width: 100%;
    }
}
