/* ============================================================
   Blokify Website — style.css
   Matched to the classic www.blokify.com design
   ============================================================ */

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

:root {
  --dark:      #1a1a2e;
  --dark2:     #16213e;
  --teal:      #00C2B5;
  --teal-dark: #0D7A70;
  --pink:      #E91E8C;
  --orange:    #FF6B35;
  --white:     #ffffff;
  --gray-100:  #f8f9fa;
  --gray-200:  #e9ecef;
  --gray-400:  #adb5bd;
  --gray-600:  #6c757d;
  --gray-800:  #343a40;
  --shadow:    0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.25);
  --radius:    12px;
  --radius-lg: 20px;

  /* Classic blokify.com row colors */
  --row-teal:      #52d9b4;
  --row-pink:      #d72e79;
  --row-dark-teal: #0c454e;
}

html { scroll-behavior: smooth; }

body {
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 300;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Top Section (nav + hero) ── */
.top-section {
  background: url('assets/images/bg/top_bg.jpg');
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 5%;
}

.blokify-logo { width: 250px; }

.nav-links {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.nav-links a:hover { text-decoration: underline; }
.nav-links .divider { padding: 0 0.35rem; opacity: 0.5; }

.hero-inner {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.apple-download { width: 120px; }

/* ── Color Rows ── */
.color-row {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.color-row h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.color-row p {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.teal      { background-color: #52d9b4; }
.pink      { background-color: #d72e79; }
.dark-teal { background-color: #0c454e; }

/* ── Print Section ── */
.print-section {
  background: url('assets/images/bg/print_bg.jpg');
  padding: 4rem 1.5rem;
  text-align: center;
}

.print-image { margin: 0 auto; }

/* ── Guided Section: CSS-only auto-advancing slideshow ── */
.guided-section {
  background: url('assets/images/bg/guided_bg.jpg');
  padding: 4rem 1.5rem;
}

.slideshow {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  box-shadow: var(--shadow-lg);
}

/* First slide stays in flow to set the container height;
   the rest stack on top and crossfade on a 20s cycle (5s each). */
.slideshow img {
  width: 100%;
  opacity: 0;
  animation: slide-fade 20s infinite;
}
.slideshow img:first-child { position: relative; }
.slideshow img + img {
  position: absolute;
  top: 0;
  left: 0;
}
.slideshow img:nth-child(2) { animation-delay: 5s; }
.slideshow img:nth-child(3) { animation-delay: 10s; }
.slideshow img:nth-child(4) { animation-delay: 15s; }

@keyframes slide-fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Section utilities (used by the Community Feed) ── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Community Feed ── */
.feed-section { background: var(--dark); }

.feed-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.feed-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tab-btn {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ── Model Card Grid ── */
.feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.model-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--gray-800);
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--teal-dark), var(--dark2));
}

.card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--dark2), var(--teal-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.card-thumb-placeholder .placeholder-icon { font-size: 3rem; }
.card-thumb-placeholder .placeholder-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0.8;
}

.card-body {
  padding: 1rem 1.25rem;
}

.card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 600;
}

.card-fav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #e74c3c;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skel-thumb {
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.05);
}

.skel-body { padding: 1rem 1.25rem; }

.skel-line {
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.skel-line-short { width: 60%; }
.skel-line-xshort { width: 40%; }

/* ── Feed Error / Empty ── */
.feed-message {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.5);
  grid-column: 1 / -1;
}

.feed-message .msg-icon { font-size: 3rem; margin-bottom: 1rem; }
.feed-message p { font-size: 1rem; margin-bottom: 1rem; }

.btn-retry {
  background: var(--teal);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-retry:hover { background: var(--teal-dark); }

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ── Responsive ── */
@media (min-width: 640px) {
  .feed-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

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