/*
Theme Name: NXT Look
Author: Eva Rich
Description: Custom fashion news theme
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #FF3EA5;
  --yellow: #FFD600;
  --black: #111111;
  --white: #ffffff;
  --gray: #f4f4f4;
  --text: #1a1a1a;
  --muted: #666;
  --font-display: 'Anton', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
.site-header {
  background: var(--pink);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 90px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--black);
  line-height: 1;
  letter-spacing: -1px;
}
.logo span { color: var(--white); }

.subscribe-btn {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.subscribe-btn:hover { background: #333; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid #eee;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 20px;
}
.nav-inner a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.nav-inner a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-inner a:hover { color: var(--pink); }
.nav-inner a:hover::after { transform: scaleX(1); }

/* mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 20px;
  border-bottom: 2px solid var(--pink);
}
.mobile-nav a {
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: var(--text);
}
.mobile-nav.open { display: flex; }

/* ── WRAPPER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 320px;
  margin: 0;
}

.hero-main {
  position: relative;
  background: var(--black);
  overflow: hidden;
  min-height: 300px;
}
.hero-main img { position: absolute; inset: 0; opacity: 0.6; }
.hero-main-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 300px;
}
.hero-main-content h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: normal;
  color: var(--yellow);
  line-height: 1.05;
  margin-bottom: 12px;
  max-width: 420px;
}
.hero-main-content p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 16px;
}
.hero-byline {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
}

/* featured sidebar */
.hero-featured {
  background: var(--white);
  border-left: 3px solid var(--pink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.featured-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.featured-item {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: opacity 0.2s;
}
.featured-item:last-child { border-bottom: none; }
.featured-item:hover { opacity: 0.75; }
.featured-item-img {
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.feat-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.feat-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.feat-author {
  font-size: 11px;
  color: var(--muted);
}

/* ── SECTION LABEL ── */
.section-bar {
  background: var(--yellow);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--black);
}

/* ── TRENDING GRID ── */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 2px solid var(--black);
  padding: 24px;
  background: var(--gray);
}
.trending-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid #eee;
}
.trending-card-img {
  height: 200px;
  overflow: hidden;
  background: #ccc;
}
.trending-card-img img { transition: transform 0.4s ease; }
.trending-card:hover .trending-card-img img { transform: scale(1.05); }
.trending-card-info {
  padding: 12px;
  background: var(--white);
}
.card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
  color: var(--text);
}
.card-author {
  font-size: 12px;
  color: var(--muted);
}

/* ── POPULAR NEWS SLIDER ── */
.popular-bar {
  background: var(--pink);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.popular-slider-wrap {
  position: relative;
  background: var(--gray);
  overflow: hidden;
  padding: 24px 60px;
}

.popular-slider {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.popular-card {
  flex: 0 0 calc(25% - 15px);
  cursor: pointer;
}
.popular-card-img {
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  background: #ccc;
  margin-bottom: 10px;
}
.popular-card-img img { transition: transform 0.4s; }
.popular-card:hover .popular-card-img img { transform: scale(1.05); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover { background: var(--pink); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--yellow);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1;
  color: var(--black);
  flex-shrink: 0;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 400px;
}
.newsletter-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.newsletter-form input {
  padding: 12px 16px;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--pink); }
.newsletter-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.newsletter-form button:hover { background: var(--pink); }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--pink);
  letter-spacing: -1px;
}
.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--white);
  font-weight: 700;
}
.social-icon:hover { background: var(--pink); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.footer-links a {
  font-size: 13px;
  color: #aaa;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink); }
.footer-bottom {
  max-width: 1200px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #666; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--pink); }

/* ── ARTICLE ACTIONS ── */
.article-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.action-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  transition: all 0.2s;
}
.action-btn:hover { border-color: var(--pink); color: var(--pink); }
.action-btn.liked { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* ── ARTICLE PAGE ── */
.article-category-bar {
  background: var(--pink);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-hero-img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #ccc;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-caption {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 20px;
  background: var(--gray);
}
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: normal;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--yellow);
  flex-wrap: wrap;
}
.article-author { font-size: 14px; font-weight: 600; color: var(--text); }
.article-date { font-size: 13px; color: var(--muted); }
.article-share-inline { display: flex; gap: 8px; margin-left: auto; }
.share-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}
.share-icon:hover { background: var(--pink); }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body p { margin-bottom: 20px; }
.article-inline-img {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 6px;
  margin: 28px 0;
  background: #ccc;
}
.article-inline-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── COMMENTS ── */
.comments-section { max-width: 720px; margin: 0 auto; padding: 0 20px 40px; }
.comments-title { font-family: var(--font-display); font-size: 20px; margin-bottom: 20px; color: var(--black); }
.comment-item { display: flex; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
}
.comment-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.comment-date { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-like {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  margin-top: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.comment-like:hover { color: var(--pink); }
.comment-form { margin-top: 24px; }
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form textarea:focus { border-color: var(--pink); }
.comment-form button {
  margin-top: 10px;
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.comment-form button:hover { background: var(--black); }

/* ── RELATED ARTICLES ── */
.related-section { background: var(--gray); padding: 40px 20px; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 24px; color: var(--black); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #eee;
  transition: opacity 0.2s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { opacity: 0.85; }
.related-card-img { height: 140px; overflow: hidden; background: #ccc; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-info { padding: 10px 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-featured { border-left: none; border-top: 3px solid var(--pink); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .featured-label { grid-column: 1/-1; }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-card { flex: 0 0 calc(50% - 10px); }
  .newsletter { flex-direction: column; gap: 24px; padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1/-1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero-img { height: 260px; }
}

@media (max-width: 600px) {
  .hamburger { display: flex; }
  .nav-inner { display: none; }
  .trending-grid { grid-template-columns: 1fr; }
  .popular-card { flex: 0 0 100%; }
  .popular-slider-wrap { padding: 16px 48px; }
  .hero-featured { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .newsletter h2 { font-size: 42px; }
  .article-hero-img { height: 200px; }
  .article-share-inline { margin-left: 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}