/* Blog Frontend Styles - Aligned with INPERITIA Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #0f172a;
    line-height: 1.375;
    font-size: 14px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .nav-link, .logo-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Links */
a {
    color: #50a2d5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f58220;
}

/* Utility Classes from INPERITIA */
.color-in-gray { color: #94a3b8; }
.color-peritia-gray { color: #1e293b; }
.accent-monika { color: #f58220; }
.accent-wojciech { color: #50a2d5; }

/* Geometric Shapes Background */
/* Removed - backgrounds are now per-article only */

/* Article Grid Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Markdown Content Styles */
.prose {
    color: #0f172a;
    line-height: 1.6;
}

.prose p {
    margin: 1.5em 0;
    color: #334155;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.5em 0 0.75em 0;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.prose h1 {
    font-size: 2rem;
    margin-top: 2em;
}

.prose h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5em;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose h4 {
    font-size: 1.1rem;
}

.prose ul,
.prose ol {
    margin: 1.5em 0 1.5em 2em;
    color: #334155;
}

.prose li {
    margin: 0.5em 0;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #50a2d5;
    background-color: #f8fafc;
    color: #334155;
    font-style: italic;
}

.prose code {
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 2px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.prose pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 2px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

.prose a {
    color: #50a2d5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.prose a:hover {
    color: #f58220;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 1.5em 0;
}

.prose strong {
    font-weight: 700;
    color: #0f172a;
}

.prose em {
    font-style: italic;
}

/* Blog Container */
.blog-container {
    position: relative;
    z-index: 10;
    background: white;
    min-height: 100vh;
    padding-top: 4rem; /* 64px - height of fixed nav */
}

/* Article Not Found */
.article-not-found {
    background: white;
}

/* Hover Effects */
.group-hover\:scale-105:group-hover {
    transform: scale(1.05);
}

.group-hover\:text-slate-600:group-hover {
    color: #475569;
}

/* Responsive Utilities */
@media (max-width: 1024px) {
    .lg\:hidden {
        display: block !important;
    }
    
    .lg\:grid {
        display: block !important;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    
    .lg\:block {
        display: block !important;
    }
    
    .lg\:grid {
        display: grid !important;
    }
    
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }
    
    .lg\:col-span-4 {
        grid-column: span 4 / span 4 !important;
    }
    
    .lg\:col-span-8 {
        grid-column: span 8 / span 8 !important;
    }
}

/* Spacing Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }

.pt-32 { padding-top: 8rem; }
.pt-8 { padding-top: 2rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }

.p-8 { padding: 2rem; }

/* Gap Utilities */
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Width Utilities */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }

/* Height Utilities */
.h-16 { height: 4rem; }
.h-2 { height: 0.5rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Flexbox Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }

/* Display Utilities */
.block { display: block; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hidden { display: none; }
.no-underline { text-decoration: none; }
.sticky { position: sticky; }
.top-32 { top: 8rem; }

/* Border & Rounded */
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-l-4 { border-left: 4px solid; }
.border-slate-900 { border-color: #0f172a; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.border-orange-500 { border-color: #f58220; }
.border-blue-500 { border-color: #3b82f6; }
.rounded-sm { border-radius: 2px; }
.rounded-full { border-radius: 9999px; }

/* Blog avatar sizing and rings */
.blog-avatar { width: 34px; height: 34px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.avatar-ring-orange { box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #f58220; }
.avatar-ring-blue { box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #50a2d5; }

/* Ring utilities for article backgrounds */
.ring-2 { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); }
.ring-4 { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }
.ring-orange-500 { box-shadow: 0 0 0 4px #f58220; }
.ring-blue-500 { box-shadow: 0 0 0 4px #3b82f6; }

/* Background Utilities */
.bg-white { background-color: #ffffff; }
.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-slate-900 { --tw-gradient-from: #0f172a var(--tw-gradient-stops); }
.from-slate-200 { --tw-gradient-from: #e2e8f0 var(--tw-gradient-stops); }
.from-blue-500 { --tw-gradient-from: #3b82f6 var(--tw-gradient-stops); }
.to-slate-800 { --tw-gradient-to: #1e293b; }
.to-slate-300 { --tw-gradient-to: #cbd5e1; }
.to-orange-500 { --tw-gradient-to: #f58220; }
.to-transparent { --tw-gradient-to: transparent; }
.opacity-40 { opacity: 0.4; }

/* Text Utilities */
.text-white { color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-200 { color: #e2e8f0; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }

.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.font-400 { font-weight: 400; }
.font-300 { font-weight: 300; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover States */
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Blur Utilities */
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Max Width */
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

/* Flex Grow */
.flex-shrink-0 { flex-shrink: 0; }

/* Space Between */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Margin Auto */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Additional footer utilities */
.text-orange-500 { color: #f58220; }
.text-blue-500 { color: #3b82f6; }
.bg-slate-900 { background-color: #0f172a; }

/* Consultant-specific accent colors */
.border-orange-500 { border-color: #f58220; }
.border-blue-500 { border-color: #50a2d5; }

/* Accent color styles */
.article-card-monika:hover {
    border-color: #fed7aa;
    box-shadow: 0 10px 30px rgba(245, 130, 32, 0.15);
}

.article-card-wojciech:hover {
    border-color: #bae6fd;
    box-shadow: 0 10px 30px rgba(80, 162, 213, 0.15);
}

/* Footer styles */
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Blog Tag Filtering Styles */
.tag-btn {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #475569;
}

.tag-btn.active {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.reset-btn {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.reset-btn.active {
    background-color: #0f172a;
    color: #ffffff;
}

/* Article Card - Hidden when filtered */
.blog-article-card.article-hidden {
    display: none;
}

/* Ring utilities for avatars */
.ring-2 { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px currentColor; }
.ring-orange-500 { border-color: #f58220; }
.ring-blue-500 { border-color: #50a2d5; }

/* FHD+ screens - limit page width to prevent excessive expansion */
@media (min-width: 1920px) {
    body {
        margin: 0 auto;
        width: 100%;
        max-width: 1920px;
    }
    
    nav {
        left: 50%;
        transform: translateX(-50%);
        width: 1920px;
    }
    
    nav > div {
        margin-left: auto;
        margin-right: auto;
    }
    
    section {
        margin-left: auto;
        margin-right: auto;
    }
}
