/* Snapshot Theme - Photo-Focused Social Feed Style */
/* Clean grid, visual stories, modern social aesthetic */

@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&display=swap');

:root {
  --primary: #0095F6;
  --primary-rgb: 0, 149, 246;
  --primary-dark: #0074CC;
  --hov-primary: #0074CC;
  --soft-primary: rgba(0, 149, 246, 0.1);
  --secondary: #262626;
  --accent: #E1306C;
  --gradient-1: #F58529;
  --gradient-2: #DD2A7B;
  --gradient-3: #8134AF;
  --gradient-4: #515BD4;
  --success: #58C322;
  --warning: #FEDA77;
  --danger: #ED4956;
  --light: #FAFAFA;
  --dark: #262626;
  --gray: #8E8E8E;
  --gray-light: #C7C7C7;
  --border: #DBDBDB;
  --border-color: #DBDBDB;
  --border-radius: 8px;
  --background: #FAFAFA;
  --card-bg: #FFFFFF;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font-primary);
  background: var(--background);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
}

.btn-primary {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 16px;
}

.btn-primary:hover {
  background: #1877F2;
}

/* Gradient button for special actions */
.btn-gradient {
  background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.card:hover {
  box-shadow: none;
  border-color: var(--border);
}

/* Square grid for products (Instagram-style) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (max-width: 768px) {
  .products-grid {
    gap: 2px;
  }
}

.product-card {
  background: var(--card-bg);
  border: none;
  border-radius: 0;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

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

.product-card:hover img {
  transform: scale(1.02);
}

/* Overlay on hover */
.product-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .overlay {
  opacity: 1;
}

.product-card .overlay span {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Story-style circles for categories */
.story-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
  cursor: pointer;
}

.story-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

/* Profile header */
.profile-header {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1rem 0;
}

.profile-stats span {
  font-weight: 400;
  color: var(--dark);
}

.profile-stats strong {
  font-weight: 600;
}

/* Action icons */
.action-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-icon:hover {
  transform: scale(1.1);
}

.action-icon.liked {
  color: var(--danger);
}

/* Post-style product detail */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 470px;
  margin: 0 auto;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}

.post-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.post-header .username {
  font-weight: 600;
  font-size: 14px;
}

/* Links */
a {
  color: var(--dark);
  text-decoration: none;
}

a:hover {
  color: var(--dark);
  text-decoration: underline;
}

.link-primary {
  color: var(--primary);
}

.link-primary:hover {
  color: #00376B;
}


/* ── Storefront navbar tokens (auto-added: contrast-correct header) ── */
:root {
  --header-bg: #FFFFFF;
  --header-fg: #262626;
  --header-muted: var(--gray, #6B7280);
  --header-border: var(--border-color, #E5E7EB);
}
