/*
Theme Name: Erotica
Theme URI: https://trainedwives.com
Author: Grok
Description: Luxe erotic wife-sharing catalog theme. Dark hypnotic purple & gold with soft pink polaroid cards. Matches the premium sensual reference design. Fully functional anonymous posting, multi-photo polaroid collages, moderation, and replies.
Version: 1.0
License: GPL-2.0-or-later
*/

:root {
  --bg-deep: #0c0814;
  --bg-header: #1a1226;
  --gold: #d4af77;
  --gold-dark: #b38a55;
  --pink-card: #f7e4f2;
  --pink-card-dark: #f0d0e8;
  --text-dark: #2f2433;
  --text-cream: #f5e9d9;
  --accent-rose: #c4457d;
  --border-subtle: #3a2a45;
}

body {
  background: var(--bg-deep);
  color: var(--text-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 0;
  background-image: 
    radial-gradient(circle at 25% 30%, rgba(196,69,125,0.06) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(212,175,119,0.05) 0%, transparent 55%);
}

/* Top elegant header bar - close match to reference */
#site-header {
  background: #120c1b;
  border-bottom: 2px solid #d4af77;
  padding: 11px 18px;
  position: relative;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand .ws {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  color: #d4af77;
  letter-spacing: 0.5px;
}

.brand .ws-slash {
  font-size: 17px;
  color: #a88a5f;
  margin-right: 1px;
}

.brand .title {
  font-size: 13.5px;
  letter-spacing: 2.2px;
  color: #d4af77;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 3px;
}

.brand .icon {
  font-size: 14px;
  margin-left: 4px;
  color: #d4af77;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #a88a5f;
}

.header-right .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-right nav a {
  color: #d4af77;
  margin: 0 5px;
  text-decoration: none;
  font-size: 11.5px;
}

.header-right nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Decorative divider with spiral (reference style) */
.divider {
  text-align: center;
  padding: 8px 0 4px;
  position: relative;
  background: #0c0814;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4af77, transparent);
  opacity: 0.7;
}

.divider::before { left: 6%; }
.divider::after { right: 6%; }

.divider .center {
  display: inline-block;
  background: #0c0814;
  padding: 0 14px;
  font-size: 20px;
  color: #d4af77;
  position: relative;
  z-index: 1;
}

/* CATALOG title */
.catalog-title {
  text-align: center;
  font-size: 14px;
  letter-spacing: 3.5px;
  color: #d4af77;
  margin: 2px 0 14px;
  font-weight: 600;
}

/* Main layout: sidebar form + grid */
.main-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}

@media (max-width: 860px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }
}

/* Share Her form card (left sidebar - matches reference dark elegant box) */
.share-her {
  background: #1a1226;
  border: 2px solid #d4af77;
  border-radius: 8px;
  padding: 16px 14px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
  align-self: start;
}

.share-her h3 {
  margin: 0 0 11px;
  color: #d4af77;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}

.share-her form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-her input[type="text"],
.share-her textarea {
  background: #110c1b;
  border: 1px solid #46365a;
  color: #f5e9d9;
  padding: 7px 9px;
  font-family: Georgia, serif;
  font-size: 12.5px;
  border-radius: 3px;
}

.share-her textarea {
  min-height: 88px;
  resize: vertical;
}

.share-her .file-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2a2138;
  border: 1px solid #d4af77;
  color: #d4af77;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  width: fit-content;
  margin-top: 2px;
}

.share-her .file-label:hover {
  background: #d4af77;
  color: #110c1b;
}

.share-her input[type="file"] {
  display: none;
}

.share-her .post-btn {
  background: #c4457d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 2px 6px rgba(196,69,125,0.3);
  transition: all 0.2s;
}

.share-her .post-btn:hover {
  background: #a63a68;
  transform: translateY(-1px);
}

/* Catalog grid of pink cards - matches reference */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 18px;
}

@media (max-width: 860px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
}

/* Pink erotic card (soft pink like the screenshot) */
.erotica-card {
  background: #f8e9f4;
  color: #2f2433;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(50, 25, 45, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8c8dc;
}

.erotica-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(50, 25, 45, 0.38);
}

.erotica-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Photo area with proper polaroid frame look */
.card-photo {
  position: relative;
  background: #fff;           /* white polaroid base */
  padding: 7px;
  box-shadow: inset 0 0 0 1px #e5d0da, 0 3px 8px rgba(0,0,0,0.18);
  min-height: 162px;
  overflow: hidden;
}

.card-photo::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #f0d8e2;
  pointer-events: none;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Stacked polaroid effect for multi-photo posts (like the reference) */
.polaroid-stack {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 54px;
  height: 54px;
  z-index: 10;
}

.polaroid-stack img {
  position: absolute;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 2px 3px 7px rgba(0,0,0,0.35);
  background: #fff;
}

.polaroid-stack img:nth-child(1) { 
  transform: rotate(-9deg); 
  z-index: 3; 
  right: 0;
  bottom: 0;
}
.polaroid-stack img:nth-child(2) { 
  transform: rotate(8deg); 
  right: 5px; 
  bottom: 3px; 
  z-index: 2; 
}
.polaroid-stack img:nth-child(3) { 
  transform: rotate(-4deg); 
  right: -1px; 
  bottom: 7px; 
  z-index: 1; 
}

.card-body {
  padding: 9px 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8e9f4;
}

.card-id {
  font-size: 9.5px;
  color: #6b5a6b;
  margin-bottom: 1px;
  letter-spacing: 0.5px;
  font-family: "Courier New", monospace;
}

.card-title {
  font-size: 12.5px;
  line-height: 1.22;
  color: #2f2433;
  font-weight: 600;
  margin-bottom: 5px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 10px;
  color: #6b5a6b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-meta .replies {
  color: #c4457d;
  font-weight: 600;
}

.card-meta .heart {
  color: #c4457d;
  font-size: 12px;
}

/* Single thread view */
.thread-view {
  max-width: 820px;
  margin: 20px auto;
  padding: 0 16px;
}

.op {
  background: #1f1629;
  border: 1px solid var(--gold);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.op h2 {
  color: var(--gold);
  margin: 0 0 6px;
  font-size: 20px;
}

.op .meta {
  color: #a88a5f;
  font-size: 11px;
  margin-bottom: 10px;
}

.op img.main-photo {
  max-width: 100%;
  border: 6px solid #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,0.45), inset 0 0 0 1px #f0d8e2;
  margin-bottom: 14px;
  display: block;
}

.op .text {
  color: var(--text-cream);
  white-space: pre-wrap;
  line-height: 1.5;
}

.reply {
  background: #1f1629;
  border: 1px solid #46365a;
  padding: 10px 13px;
  margin: 8px 0 8px 24px;
  border-radius: 6px;
}

.reply .meta {
  font-size: 10px;
  color: #a88a5f;
  margin-bottom: 4px;
}

.reply img {
  max-width: 220px;
  border: 2px solid #fff;
  margin: 4px 0;
}

/* Reply form (consistent with Share Her) */
#reply-form {
  background: #1a1226;
  border: 2px solid #d4af77;
  padding: 14px 13px 16px;
  border-radius: 6px;
  max-width: 480px;
}

#reply-form input, #reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #110c1b;
  border: 1px solid #46365a;
  color: #f5e9d9;
  padding: 7px 9px;
  margin-bottom: 7px;
  font-family: Georgia, serif;
  font-size: 12.5px;
  border-radius: 3px;
}

#reply-form button {
  background: #c4457d;
  color: white;
  border: 0;
  padding: 7px 16px;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(196,69,125,0.3);
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 24px 0;
  color: #a88a5f;
}

.pagination a {
  color: var(--gold);
  margin: 0 4px;
  padding: 2px 7px;
}

.pagination a.current {
  color: #fff;
  background: var(--gold);
  border-radius: 3px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 10px 30px;
  font-size: 11px;
  color: #66556e;
  border-top: 1px solid #2a2238;
  margin-top: 30px;
}

/* Hide WP admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }