/* Developer-Focused Blog Theme */
/* Modern, clean design with code-friendly aesthetics */

:root {
    /* Modern Developer Color Palette */
    --dev-primary: #0066cc;
    --dev-primary-dark: #004999;
    --dev-primary-light: #3385d6;
    --dev-accent: #00d4aa;
    --dev-accent-dark: #00a885;
    --dev-secondary: #6366f1;
    --dev-dark: #1e293b;
    --dev-darker: #0f172a;
    --dev-light: #f8fafc;
    --dev-gray: #64748b;
    --dev-gray-light: #e2e8f0;
    --dev-code-bg: #f1f5f9;
    --dev-border: #cbd5e1;
    --dev-success: #10b981;
    --dev-warning: #f59e0b;
    --dev-danger: #ef4444;
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    
    /* 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);
}

/* Enhanced Typography */
body {
    font-family: var(--font-body);
    color: var(--dev-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 0.9375rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dev-darker);
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }

/* Enhanced Navigation */
.topnav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dev-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, var(--dev-primary) 0%, var(--dev-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500 !important;
    color: var(--dev-gray) !important;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--dev-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--dev-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Featured Hero Section */
.featured-hero {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.featured-hero .btn-primary {
    background: var(--dev-primary);
    border: none;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Legacy Hero/Featured Section */
.hero-featured {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    color: white;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.7;
}

.hero-image {
    background-size: cover;
    background-position: center;
    min-height: 450px;
}

.hero-featured .btn-primary {
    background: white;
    color: #1e3a8a;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hero-featured .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #3730a3;
}

/* Legacy Jumbotron kept for compatibility */
.jumbotron {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.jumbotron h1 {
    color: white !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    font-weight: 800 !important;
}

.jumbotron p {
    color: white !important;
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.jumbotron .btn {
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.jumbotron .btn-light {
    background: white;
    color: #5a67d8;
    border: none;
    font-weight: 700;
}

.jumbotron .btn-light:hover {
    background: white;
    color: #6b46c1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.jumbotron .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Enhancements */
.card {
    border: 1px solid var(--dev-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--dev-primary-light);
}

.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-weight: 700;
    color: var(--dev-darker);
    font-size: 1.25rem;
}

.card-title a {
    color: var(--dev-darker);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--dev-primary);
    text-decoration: none;
}

.card-text {
    color: var(--dev-gray);
    line-height: 1.6;
}

/* Button Enhancements */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--dev-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--dev-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background: var(--dev-darker);
    color: white;
}

.btn-dark:hover {
    background: var(--dev-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--dev-accent);
    color: white;
}

.btn-success:hover {
    background: var(--dev-accent-dark);
}

/* Code Styling */
pre, code, kbd, samp {
    font-family: var(--font-mono);
    background: var(--dev-code-bg);
    border: 1px solid var(--dev-border);
    border-radius: 6px;
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    color: var(--dev-secondary);
}

pre {
    padding: 1.25rem;
    overflow-x: auto;
    line-height: 1.6;
    background: var(--dev-darker);
    color: #e2e8f0;
    border: none;
}

pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

/* Subscribe Box Enhancement */
.bg-lightblue {
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%) !important;
    border: 1px solid var(--dev-border);
    border-radius: 12px !important;
    box-shadow: var(--shadow-md);
}

.form-control {
    border: 2px solid var(--dev-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--dev-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Section Headers */
.spanborder {
    border-bottom: 1px solid var(--dev-border);
    margin-bottom: 2rem;
}

.spanborder span {
    border-bottom: 3px solid var(--dev-primary);
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: -1px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dev-darker);
}

/* Footer Enhancement */
footer {
    background: var(--dev-light) !important;
    border-top: 1px solid var(--dev-border) !important;
    padding: 2rem 0 !important;
}

footer a {
    color: var(--dev-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--dev-primary-dark);
    text-decoration: underline;
}

/* Badge/Tag Styling */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-size: 0.85em;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--dev-primary);
}

.badge-secondary {
    background: var(--dev-secondary);
}

/* Link Styling */
a {
    color: var(--dev-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dev-primary-dark);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--dev-primary) 0%, var(--dev-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dev-shadow-sm { box-shadow: var(--shadow-sm); }
.dev-shadow-md { box-shadow: var(--shadow-md); }
.dev-shadow-lg { box-shadow: var(--shadow-lg); }
.dev-shadow-xl { box-shadow: var(--shadow-xl); }

/* Responsive Improvements */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .jumbotron {
        border-radius: 12px !important;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--dev-primary);
    color: white;
}

::-moz-selection {
    background: var(--dev-primary);
    color: white;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Improved Table Styling (for blog content) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--dev-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

th {
    background: var(--dev-light);
    font-weight: 600;
    color: var(--dev-darker);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--dev-border);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dev-gray-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--dev-light);
}

/* Blockquote Enhancement */
blockquote {
    border-left: 4px solid var(--dev-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--dev-gray);
    background: var(--dev-light);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Image Enhancement */
img {
    border-radius: 8px;
}

/* Dark mode support (optional, can be enabled later) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Blog Post List Hover Effect */
.hover-shadow:hover {
    background: var(--dev-light);
    border-color: var(--dev-border) !important;
    box-shadow: var(--shadow-sm);
}
/* Article/Blog Post Content */
.article-post {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dev-dark);
}

.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-post h1 { font-size: 1.75rem; }
.article-post h2 { font-size: 1.5rem; }
.article-post h3 { font-size: 1.25rem; }
.article-post h4 { font-size: 1.125rem; }

.article-post p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.article-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}