.social-recipes-wrapper {
  --sr-text: #000000;
  --sr-muted: #9A9A98;
  --sr-accent: #CF2E2E;
  --sr-line: #e8e8e8;

  color: var(--sr-text);
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Base resets only applied within the wrapper */
.social-recipes-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.social-recipes-wrapper .page-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 8px;
  color: var(--sr-text);
  font-weight: 700;
}

.social-recipes-wrapper .page-subtitle {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sr-muted);
  margin-bottom: 36px;
}

.social-recipes-wrapper .search-row {
  width: 100%;
  margin: 0 auto 16px;
}

.social-recipes-wrapper .search-wrap {
  width: 100%;
  position: relative;
}

.social-recipes-wrapper .stats-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 24px;
  width: 100%;
  align-items: stretch;
  flex-wrap: wrap;
}

.social-recipes-wrapper .social-platforms-badge {
  flex: 2 1 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--sr-line);
  border-radius: 2px;
  color: var(--sr-text);
  font-size: 0.80rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: #fff;
  min-height: 48px;
  box-sizing: border-box;
}

.social-recipes-wrapper .social-platforms-badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sr-text);
  text-decoration: none;
  transition: color .2s ease;
  font-weight: 600;
}

.social-recipes-wrapper .social-platforms-badge a:hover {
  color: var(--sr-accent);
}

.social-recipes-wrapper .social-platforms-badge svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.social-recipes-wrapper .social-platforms-badge .sep {
  color: var(--sr-line);
}

.social-recipes-wrapper .social-platforms-badge .lbl {
  color: var(--sr-muted);
  font-size: 0.72rem;
  margin-left: 2px;
}

.social-recipes-wrapper .recipes-badge {
  flex: 1 1 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--sr-line);
  border-radius: 2px;
  color: var(--sr-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fff;
  min-height: 48px;
  box-sizing: border-box;
  cursor: default;
}

.social-recipes-wrapper .recipes-badge svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.social-recipes-wrapper .recipes-badge .stat-value {
  font-weight: 600;
  font-size: inherit;
}

.social-recipes-wrapper .recipes-badge .stat-label {
  font-size: 0.72rem;
  margin-left: 2px;
}

.social-recipes-wrapper #social-recipes-search {
  width: 100%;
  padding: 14px 40px 14px 18px;
  font-size: 1rem;
  border: 1px solid var(--sr-line);
  border-radius: 2px;
  outline: none;
  background: #fff;
  color: var(--sr-text);
  transition: border-color .2s;
}

.social-recipes-wrapper #social-recipes-search:focus {
  border-color: var(--sr-accent);
}

.social-recipes-wrapper #social-recipes-search::-webkit-search-cancel-button,
.social-recipes-wrapper #social-recipes-search::-webkit-search-decoration,
.social-recipes-wrapper #social-recipes-search::-webkit-search-results-button,
.social-recipes-wrapper #social-recipes-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.social-recipes-wrapper #social-recipes-clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--sr-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color .2s;
}

.social-recipes-wrapper #social-recipes-clear-search:hover {
  color: var(--sr-accent);
}

.social-recipes-wrapper .filters {
  width: 100%;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-recipes-wrapper .filters button {
  flex: 1 1 auto;
  white-space: nowrap;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--sr-line);
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.2;
  text-align: center;
}

.social-recipes-wrapper .filters button:hover {
  border-color: var(--sr-accent);
  color: var(--sr-accent);
}

.social-recipes-wrapper .filters button.active {
  background: var(--sr-accent);
  color: #fff;
  font-weight: 600;
}

.social-recipes-wrapper .recipe {
  padding: 40px 0;
  border-bottom: 1px solid var(--sr-line);
  text-align: left;
}

.social-recipes-wrapper .recipe-name {
  font-size: 1.45rem;
  margin-bottom: 5px;
}

.social-recipes-wrapper .recipe-name a {
  color: var(--sr-text);
  text-decoration: none;
  transition: color .2s;
}

.social-recipes-wrapper .recipe-name a:hover {
  color: var(--sr-accent);
}

.social-recipes-wrapper .recipe-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  margin: 6px 0 14px;
}

.social-recipes-wrapper .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  justify-content: flex-start;
}

.social-recipes-wrapper .tag {
  font-size: 0.88rem;
  padding: 4px 12px;
  border: 1px solid var(--sr-line);
  border-radius: 20px;
  color: #222222;
  cursor: pointer;
  transition: all .2s;
  line-height: 1.2;
}

.social-recipes-wrapper .tag:hover {
  border-color: var(--sr-accent);
  color: var(--sr-accent);
}

.social-recipes-wrapper .recipe-body {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}

.social-recipes-wrapper .recipe-embed {
  flex: 1 0 360px;
  max-width: 600px;
  width: 100%;
}

.social-recipes-wrapper .recipe-embed blockquote.instagram-media {
  margin: 0 !important;
  min-width: unset !important;
  width: 100% !important;
}

.social-recipes-wrapper .recipe-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 3px;
  display: block;
}

.social-recipes-wrapper .embed-placeholder {
  width: 100%;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--sr-line);
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-recipes-wrapper .embed-placeholder:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-recipes-wrapper .youtube-placeholder {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.social-recipes-wrapper .youtube-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease;
}

.social-recipes-wrapper .youtube-placeholder:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.social-recipes-wrapper .instagram-placeholder {
  aspect-ratio: 1 / 1;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 20px;
  color: #fff;
}

.social-recipes-wrapper .embed-btn {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 10px 18px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-radius: 20px;
  color: var(--sr-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.social-recipes-wrapper .embed-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: inline-block;
}

.social-recipes-wrapper .youtube-placeholder .embed-btn {
  background: var(--sr-accent);
  color: #fff;
}

.social-recipes-wrapper .youtube-placeholder .embed-btn:hover {
  background: color-mix(in srgb, var(--sr-accent) 80%, white);
  transform: scale(1.05);
}

.social-recipes-wrapper .instagram-placeholder .embed-btn {
  color: #bc1888;
}

.social-recipes-wrapper .instagram-placeholder .embed-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.social-recipes-wrapper .embed-info {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  opacity: 0.9;
}

.social-recipes-wrapper .youtube-placeholder .embed-info {
  color: #fff;
}

.social-recipes-wrapper .instagram-placeholder .embed-info {
  color: #fff;
}

.social-recipes-wrapper .recipe-caption {
  flex: 2 1 400px;
  min-width: 280px;
  white-space: pre-line;
}

.social-recipes-wrapper .recipe-caption .caption-title {
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 10px;
  color: var(--sr-text);
}

@media (max-width: 760px) {
  .social-recipes-wrapper .recipe-embed {
    flex: 1 0 100%;
    max-width: 100%;
  }
}

.social-recipes-wrapper .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.social-recipes-wrapper .pagination button {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--sr-line);
  border-radius: 2px;
  color: var(--sr-text);
  cursor: pointer;
  transition: all .2s;
  line-height: 1.2;
}

.social-recipes-wrapper .pagination button:hover:not(:disabled) {
  border-color: var(--sr-accent);
  color: var(--sr-accent);
}

.social-recipes-wrapper .pagination button.current {
  border-color: var(--sr-text);
  background: var(--sr-text);
  color: #fff;
  cursor: default;
}

.social-recipes-wrapper .pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.social-recipes-wrapper .no-result {
  text-align: center;
  color: var(--sr-muted);
  padding: 60px 0;
  font-style: italic;
  font-size: 1.1rem;
  display: none;
}

.social-recipes-wrapper .social-recipes-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--sr-line);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sr-muted);
  margin-top: 40px;
}

.social-recipes-wrapper .social-recipes-footer a {
  color: var(--sr-muted);
  text-decoration: underline;
  cursor: pointer;
}

.social-recipes-wrapper .social-recipes-footer a:hover {
  color: var(--sr-accent);
}

/* Cookie Consent Banner - scoped to fix positioning relative to window, but styled locally */
.social-recipes-wrapper .cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--sr-line);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-recipes-wrapper .cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.social-recipes-wrapper .cookie-banner-text {
  font-size: 0.92rem;
  color: var(--sr-text);
  line-height: 1.5;
  text-align: left;
}

.social-recipes-wrapper .cookie-banner-text strong {
  font-weight: 600;
}

.social-recipes-wrapper .cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.social-recipes-wrapper .cookie-banner-actions button {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  line-height: 1.2;
}

.social-recipes-wrapper .cookie-btn-accept {
  background: var(--sr-text);
  color: #fff;
  border: 1px solid var(--sr-text);
}

.social-recipes-wrapper .cookie-btn-accept:hover {
  background: var(--sr-accent);
  border-color: var(--sr-accent);
}

.social-recipes-wrapper .cookie-btn-decline {
  background: #fff;
  border: 1px solid var(--sr-line);
}

.social-recipes-wrapper .cookie-btn-decline:hover {
  color: var(--sr-text);
  border-color: var(--sr-text);
}