/* ============================================
   DevOpsInfo.in — shadcn/ui Zinc Theme
   ============================================ */

:root, [data-theme="light"] {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    /* shadcn/ui Zinc Light Colors */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 3.9%;

    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --max-width: 768px;
    --transition: 0.15s ease-in-out;
}

[data-theme="dark"] {
    /* shadcn/ui Zinc Dark Colors */
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
}

/* Base Styles */
*, *::before, *::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    cursor: auto; /* Remove custom trailing cursor */
}

::selection { background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* Hide Custom Cursor completely */
.cursor-dot, .cursor-ring { display: none !important; }

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    margin-top: 2rem; margin-bottom: 1rem;
    font-weight: 600; line-height: 1.25;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}
h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.5rem; border-bottom: 1px solid hsl(var(--border)); padding-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1.5rem; leading: 1.75; }
strong { font-weight: 600; color: hsl(var(--foreground)); }
em { font-style: italic; }

/* ============ Links ============ */
a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--transition);
}
a:hover { text-decoration-color: hsl(var(--primary)); }

/* ============ Code ============ */
code {
    font-family: var(--font-mono);
    background-color: hsl(var(--muted));
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    color: hsl(var(--foreground));
    font-weight: 600;
}
pre {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
pre code { background: transparent; padding: 0; font-weight: 400; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ============ Blockquotes ============ */
blockquote {
    border-left: 2px solid hsl(var(--border));
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

/* ============ Tables ============ */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem; }
thead { border-bottom: 1px solid hsl(var(--border)); }
th, td { padding: 0.75rem 1rem; text-align: left; }
th { font-weight: 600; color: hsl(var(--foreground)); }
tbody tr:not(:last-child) { border-bottom: 1px solid hsl(var(--border)); }

/* ============ Header & Navigation ============ */
.header {
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
    position: sticky; top: 0;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(8px);
    z-index: 50;
}
.navbar { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-lg); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { flex-shrink: 0; }
.nav-logo a {
    font-weight: 600; font-size: 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
}
.nav-menu { display: flex; list-style: none; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.nav-item { margin-bottom: 0; }
.nav-link {
    font-size: 0.875rem; font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color var(--transition);
}
.nav-link:hover { color: hsl(var(--foreground)); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* shadcn button variants */
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500;
    height: 2.25rem; padding: 0 0.75rem;
    color: hsl(var(--foreground)); background: transparent;
    transition: background-color var(--transition);
    text-decoration: none; border: none; cursor: pointer;
}
.btn-ghost:hover { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-icon { width: 2.25rem; padding: 0; }

/* Theme Toggle */
.theme-toggle { border: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Menu Toggle (Mobile) */
.menu-toggle { display: none; }

/* Social Icons */
.nav-social { display: flex; align-items: center; }
.social-icon-link { display: inline-flex; }

/* ============ Main Container ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem var(--spacing-lg); min-height: 60vh; }

/* ============ Hero Section ============ */
.hero-section { padding: 4rem 0 2rem; }
.hero-section h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; margin-top: 0; }
.hero-section p { max-width: 600px; font-size: 1.25rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; }

/* ============ Single Post ============ */
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 2.5rem; margin-top: 0; margin-bottom: 0.5rem; font-weight: 800; letter-spacing: -0.04em; }
.post-metadata { display: flex; gap: 1rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }
.publish-date, .post-author, .reading-time { display: inline-block; }

/* Featured Image */
.post-featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); }
.post-featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Tags */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag, .tag-link {
    display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid hsl(var(--border));
    background-color: transparent; padding: 0.1rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    color: hsl(var(--foreground)); text-decoration: none; transition: background-color var(--transition);
}
.tag:hover, .tag-link:hover { background-color: hsl(var(--secondary)); }

/* Post Content */
.post-content { line-height: 1.75; font-size: 1.0625rem; }
.post-content p { color: hsl(var(--foreground)); }
.post-content img { display: block; max-width: 100%; height: auto; margin: 2rem auto; border-radius: var(--radius); border: 1px solid hsl(var(--border)); }

/* Post Nav */
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border)); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-prev, .nav-next {
    flex: 1; padding: 1.5rem;
    border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    text-decoration: none; color: hsl(var(--muted-foreground));
    transition: background-color var(--transition);
    box-shadow: var(--shadow-sm);
}
.nav-prev:hover, .nav-next:hover { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }

/* ============ Cards (shadcn style) ============ */
.archive-section { margin-top: 3rem; }
.archive-title { margin-bottom: 2rem; }
.posts-grid { display: flex; flex-direction: column; gap: 1.5rem; }

.post-card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.post-card:hover { border-color: hsl(var(--primary) / 0.5); }
.post-card-image-link { display: block; text-decoration: none; border: none; }
.post-card-image { width: 100%; height: 200px; border-bottom: 1px solid hsl(var(--border)); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.02); }

.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.post-card-meta { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.post-card-title { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.025em; border: none; }
.post-card-title a { color: hsl(var(--foreground)); text-decoration: none; }
.post-card-summary { color: hsl(var(--muted-foreground)); font-size: 0.875rem; line-height: 1.5; margin: 0; }

.post-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-top: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
}
.post-card-tags { display: flex; gap: 0.5rem; }
.read-more { font-size: 0.875rem; font-weight: 500; color: hsl(var(--primary)); text-decoration: none; }

.empty-state { text-align: center; padding: 4rem 0; color: hsl(var(--muted-foreground)); }

/* ============ Footer ============ */
.footer { border-top: 1px solid hsl(var(--border)); margin-top: 4rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer-content {
    max-width: var(--max-width); margin: 0 auto; padding: 0 var(--spacing-lg);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-section h4 { font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); margin-top: 0; }
.footer-section p, .footer-section a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-decoration: none; }
.footer-section a:hover { color: hsl(var(--foreground)); text-decoration: underline; }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-bottom {
    max-width: var(--max-width); margin: 3rem auto 0; padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
    text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground));
}

/* ============ Resume & Buttons ============ */
.resume-container { 
    background-color: hsl(var(--card)); 
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}
.resume-container h2 { border-bottom: 1px solid hsl(var(--border)); padding-bottom: 1rem; margin-top: 0; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500;
    height: 2.5rem; padding: 0 1rem;
    background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    border: none; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.download-button { 
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem; font-weight: 500;
    height: 2.5rem; padding: 0 1rem;
    background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    border: none; cursor: pointer; text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem; 
}
.download-button:hover { opacity: 0.9; text-decoration: none; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .container { padding: 2rem 1rem; }
    .hero-section { padding: 2rem 0; }
    .hero-section h1 { font-size: 2.25rem; }
    .page-title { font-size: 2rem; }
    
    .navbar { padding: 0 1rem; }
    .nav-menu { display: none; } /* Add slide down logic in JS if needed */
    .menu-toggle { display: inline-flex; }
    
    .nav-actions { margin-left: auto; }
    .nav-social { display: none; }
}
