/* OpsHero Blog — matches opshero.ai design system */

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-dark: #0A1E3D;
    --navy-mid: #1a2847;
    --accent-orange: #FF6B35;
    --accent-blue: #2E5CFF;
    --accent-cyan: #00D9FF;
    --white: #FFFFFF;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-80: rgba(255, 255, 255, 0.8);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-60: rgba(255, 255, 255, 0.6);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --max-width: 1440px;
    --content-width: 760px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(to bottom right, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--navy-dark) 100%);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 30, 61, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .nav-container { padding: 0 3rem; }
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--white);
}

.logo-accent {
    color: var(--accent-orange);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
}

.nav-link {
    color: var(--white-80);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link-active {
    color: var(--white);
}

.nav-cta-wrap {
    display: none;
}

@media (min-width: 1024px) {
    .nav-cta-wrap { display: block; }
}

.nav-cta {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-orange);
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-toggle { display: none; }
}

.mobile-menu {
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--white-70);
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-link:hover,
.mobile-link-active {
    color: var(--white);
}

.mobile-cta {
    display: block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    transition: background 0.2s;
}

.mobile-cta:hover {
    background: var(--accent-orange);
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .page-container { padding: 0 3rem; }
}

/* ─── Blog Hero ─────────────────────────────────────────────── */
.blog-hero {
    text-align: center;
    padding: 5rem 0 3rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.75rem; }
}

.text-accent {
    color: var(--accent-orange);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--white-70);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Articles Grid ─────────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy-mid);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(46, 92, 255, 0.15);
    border: 1px solid rgba(46, 92, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: lowercase;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.card-description {
    font-size: 0.875rem;
    color: var(--white-60);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--white-50);
}

.card-dot {
    color: var(--white-30, rgba(255,255,255,0.3));
}

/* ─── Article Page ──────────────────────────────────────────── */
.article-page {
    padding-bottom: 5rem;
}

.article-hero {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 480px;
}

.article-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .article-title { font-size: 2.75rem; }
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 600;
    color: var(--white);
}

.author-title {
    font-size: 0.875rem;
    color: var(--white-60);
}

.article-date {
    font-size: 0.875rem;
    color: var(--white-50);
}

/* ─── Article Body ──────────────────────────────────────────── */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--white-90);
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--white);
    letter-spacing: -0.015em;
}

.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--white);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-body a:hover {
    color: var(--accent-orange);
}

.article-body blockquote {
    border-left: 3px solid var(--accent-orange);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--glass-bg);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--white-80);
}

.article-body ul,
.article-body ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

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

.article-body strong {
    color: var(--white);
    font-weight: 600;
}

/* ─── Citations ─────────────────────────────────────────────── */
.article-citations {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.article-citations h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-citations ul {
    list-style: none;
    padding: 0;
}

.article-citations li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--white-05);
    font-size: 0.875rem;
    color: var(--white-60);
}

.article-citations a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-citations a:hover {
    color: var(--accent-orange);
}

/* ─── Share ─────────────────────────────────────────────────── */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.share-label {
    font-size: 0.875rem;
    color: var(--white-60);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-60);
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

/* ─── Related Articles ──────────────────────────────────────── */
.related-section {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
}

.related-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .related-container { padding: 0 3rem; }
}

.related-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    grid-column: 1 / -1;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

.empty-state h1,
.empty-state h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--white-60);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--accent-orange);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .footer-container { padding: 0 3rem; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo-link {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.footer-desc {
    color: var(--white-70);
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-60);
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-link {
    color: var(--white-60);
    padding: 0.375rem 0;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--white-50);
}
