:root {
    --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-font-monospace: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    
    /* Linux-themed color palette */
    --linux-orange: #ff6600;
    --linux-blue: #0066cc;
    --linux-green: #00cc66;
    --linux-purple: #6600cc;
    --linux-dark: #1a1a1a;
    --linux-darker: #0d1117;
    --linux-light: #f6f8fa;
    --linux-gray: #6e7681;
    --linux-border: #30363d;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--linux-orange) 0%, var(--linux-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--linux-green) 0%, var(--linux-purple) 100%);
    --gradient-dark: linear-gradient(135deg, var(--linux-darker) 0%, var(--linux-dark) 100%);
}

body {
    font-family: var(--bs-font-sans-serif);
    background: var(--gradient-dark);
    color: var(--linux-light);
    overflow-x: hidden;
    line-height: 1.7;
}

.navbar {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--linux-border);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link {
    color: var(--linux-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--linux-orange) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--linux-light);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--linux-orange);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #c9d1d9;
}

.card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--linux-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--linux-orange);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

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

.btn-outline-primary {
    border: 2px solid var(--linux-orange);
    color: var(--linux-orange);
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--linux-orange);
    color: var(--linux-dark);
    transform: translateY(-2px);
}

.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(248, 81, 73, 0.1);
    border-left: 4px solid #f85149;
    color: #f85149;
}

.alert-warning {
    background: rgba(255, 188, 0, 0.1);
    border-left: 4px solid #ffbc00;
    color: #ffbc00;
}

.alert-primary {
    background: rgba(0, 102, 204, 0.1);
    border-left: 4px solid var(--linux-blue);
    color: var(--linux-blue);
}

.list-unstyled li {
    margin-bottom: 1rem;
}

.list-unstyled a {
    color: var(--linux-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid transparent;
}

.list-unstyled a:hover {
    color: var(--linux-orange);
    background: rgba(255, 102, 0, 0.1);
    border-color: var(--linux-orange);
    transform: translateX(5px);
}

.hero-section {
    background: var(--gradient-dark);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2330363d" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.code-block {
    background: var(--linux-darker);
    border: 1px solid var(--linux-border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--bs-font-monospace);
    font-size: 0.9rem;
    color: var(--linux-green);
    overflow-x: auto;
}

.terminal-prompt::before {
    content: '$ ';
    color: var(--linux-orange);
    font-weight: bold;
}

.linux-icon {
    color: var(--linux-orange);
    margin-right: 0.25rem;
    font-size: 0.9em;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.article-meta {
    color: var(--linux-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c9d1d9;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h2 {
    border-bottom: 2px solid var(--linux-border);
    padding-bottom: 0.5rem;
}

.article-content code {
    background: var(--linux-darker);
    color: var(--linux-green);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--bs-font-monospace);
    font-size: 0.9em;
}

.article-content pre {
    background: var(--linux-darker);
    border: 1px solid var(--linux-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

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

.article-content blockquote {
    border-left: 4px solid var(--linux-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--linux-gray);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.like-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--linux-border);
    border-bottom: 1px solid var(--linux-border);
    margin: 2rem 0;
}

.like-btn {
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 204, 102, 0.3);
}

.like-count {
    background: rgba(0, 204, 102, 0.1);
    color: var(--linux-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 1rem;
}

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

.sticky-top {
    position: sticky;
    top: 2rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.text-muted {
    color: var(--linux-gray) !important;
}

.text-decoration-none:hover {
    color: var(--linux-orange) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem !important;
    }
}
