/* ================================================
   QuirkyThrift - Final Unified Style.css
   Works with both index.html and featured.html
   ================================================ */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f4f4f4;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background: #ffffff;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo2 img {
  height: 62px;
  width: auto;
}

/* ==================== MENU BAR ==================== */
.menu-bar {
  background: #1a1a1a;
  color: white;
  padding: 0 5%;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 62px;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.main-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.main-menu a:hover,
.main-menu a.active {
  color: #00b894;
}

.vinted-link a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border: 2px solid #00b894;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.vinted-link a:hover {
  background: #00b894;
  color: #1a1a1a;
}

/* ==================== HERO SECTION ==================== */
.hero {
  background: linear-gradient(rgba(26,26,26,0.88), rgba(26,26,26,0.92));
  color: white;
  text-align: center;
  padding: 110px 5% 90px;
  margin-bottom: 3rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 2.2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button, .secondary-button, .refresh-button {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
}

.cta-button, .refresh-button {
  background: #00b894;
  color: white;
}

.cta-button:hover, .refresh-button:hover {
  background: #00a07e;
  transform: translateY(-3px);
}

.secondary-button {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.secondary-button:hover {
  background: white;
  color: #1a1a1a;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  background: white;
  padding: 2.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #1a1a1a;
  text-align: center;
  font-weight: 700;
}

/* Values Section */
.values-section {
  padding: 4rem 5%;
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.value-card {
  background: white;
  padding: 2rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
}

.value-card h3 {
  color: #00b894;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

/* ==================== HOMEPAGE FEATURED - 2x2 GRID ==================== */
.items-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.item-card-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.item-card-2x2:hover {
  transform: translateY(-8px);
}

.photo-side img,
.video-side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.item-info-2x2 {
  grid-column: 1 / -1;
  padding: 1.2rem;
  text-align: center;
  background: #fafafa;
}

.item-info-2x2 h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.item-price {
  font-size: 1.35rem;
  font-weight: bold;
  color: #00b894;
  margin-bottom: 1rem;
}

.view-btn {
  background: #1a1a1a;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
}

.view-btn:hover {
  background: #00b894;
}

/* ==================== FEATURED PAGE - SINGLE COLUMN WITH OVERLAY ==================== */
.featured-section {
  padding: 4rem 5%;
  background: white;
}

.items-grid-single {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 520px;
  margin: 0 auto;
}

.item-card-single {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.item-card-single:hover {
  transform: translateY(-8px);
}

/* Video Container - Smaller Size */
.video-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Real Photo Overlay - Top Left Corner */
.photo-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border: 4px solid white;
  z-index: 10;
}

.photo-overlay img {
  width: 100%;
  height: auto;
  display: block;
}

/* Unmute Button */
.unmute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.unmute-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}

/* Item Info */
.item-info-single {
  padding: 1.8rem 1.2rem;
  text-align: center;
  background: #fafafa;
}

.item-info-single h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.item-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00b894;
  margin-bottom: 1.2rem;
}

.view-btn {
  background: #1a1a1a;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
}

.view-btn:hover {
  background: #00b894;
}

/* Refresh Button */
.refresh-container {
  text-align: center;
  margin-bottom: 2.5rem;
}

.refresh-button {
  background: #00b894;
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1.05rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-button:hover {
  background: #00a07e;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 2.2rem 1rem;
  font-size: 0.96rem;
  margin-top: auto;
}

.footer a {
  color: #00b894;
}

.footer a:hover {
  color: #00d4a8;
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .menu-container {
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
  }

  .items-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .photo-side img, .video-side video {
    min-height: 200px;
  }

  .photo-overlay {
    width: 48%;
    top: 14px;
    left: 14px;
  }

  .video-container {
    max-width: 340px;
  }

  .hero {
    padding: 80px 6% 70px;
  }
}