/* ─────────────────────────────────────────────
   IHCP - CF PREMIUM BLOG SYSTEM
   Editorial Design for Haute Couture Excellence
───────────────────────────────────────────── */

:root {
  --ink: #0d0d0d;
  --parchment: #f9f6f2;
  --cream: #fdfcfa;
  --silk: #f0ece5;
  --gold: #ff881a;
  --gold-pale: #ffb46a;
  --gold-glow: rgba(255, 136, 26, 0.12);
  --green: #00ff01;
  --smoke: #7a7470;
  --border: rgba(255, 136, 26, 0.12);

  --serif-display: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;

  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-silk: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─────────────────────────────────────────────
   BLOG HERO
───────────────────────────────────────────── */
.blog-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transform: scale(1.1);
    transition: transform 8s var(--ease-luxury);
}

.blog-hero.visible .hero-bg {
    transform: scale(1);
}

/* ─────────────────────────────────────────────
   ARTICLES GRID & CARDS
───────────────────────────────────────────── */
.articles-section {
    padding: 140px 0;
    background: var(--cream);
}

.blog-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 80px 48px;
}

/* Premium Editorial Card */
.article-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.6s var(--ease-luxury);
}

.article-image-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--silk);
    margin-bottom: 32px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-luxury);
}

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

.article-category {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 16px;
    z-index: 2;
}

.article-content {
    padding-right: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-family: var(--sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--smoke);
}

.article-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.5;
}

.article-title {
    font-family: var(--serif-display);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 18px;
    transition: color 0.4s;
}

.article-card:hover .article-title {
    color: var(--gold);
}

.article-excerpt {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--smoke);
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.read-more {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ink);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.4s var(--ease-luxury);
}

.article-card:hover .read-more {
    gap: 20px;
    color: var(--gold);
}

.read-more .arrow {
    font-size: 1.1rem;
    transition: transform 0.4s var(--ease-luxury);
}

.article-card:hover .read-more .arrow {
    transform: translateX(5px);
}

/* ─────────────────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--ease-luxury), transform 1.2s var(--ease-luxury);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .blog-container { padding: 0 40px; }
    .articles-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
}

@media (max-width: 768px) {
    .blog-container { padding: 0 30px; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 1.8rem; }
    .blog-hero { height: 60vh; }
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 100px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }
