/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #4a5568;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border: 2px solid #2563eb;
    color: #2563eb;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.post-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: white;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.card-body {
    padding: 1.5rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.bg-primary-subtle {
    background-color: #dbeafe;
}

.text-primary {
    color: #2563eb;
}

.bg-success-subtle {
    background-color: #d1fae5;
}

.text-success {
    color: #059669;
}

.bg-warning-subtle {
    background-color: #fef3c7;
}

.text-warning {
    color: #d97706;
}

.bg-info-subtle {
    background-color: #e0f2fe;
}

.text-info {
    color: #0284c7;
}

.bg-danger-subtle {
    background-color: #fee2e2;
}

.text-danger {
    color: #dc2626;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    font-weight: 600;
    color: #1e293b;
}

.article-content a {
    color: #2563eb;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1d4ed8;
}

/* Code Blocks */
.code-block {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    padding: 0;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Blockquotes */
.blockquote-custom {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #475569;
    margin: 2rem 0;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.page-link:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
}

.page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}

.page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Forms */
.form-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5,
footer h6 {
    color: white;
}

footer a:hover {
    color: white !important;
    opacity: 0.8;
}

/* Utility Classes */
.hover-bg-light {
    transition: background-color 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8fafc;
}

/* Progress Bars */
.progress {
    border-radius: 6px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 6px;
}

/* Comments Section */
.comment-item {
    padding: 1rem 0;
}

.avatar-placeholder {
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .code-block {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.75rem;
    }
}

/* Featured Image */
.featured-image-placeholder {
    overflow: hidden;
}

/* Icon Box */
.icon-box {
    font-size: 1.5rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: #dbeafe;
    color: #1e293b;
}