/* ==========================================================================
   Spooky & Beautiful Halloween Theme - sexyhalloweens.com
   ========================================================================== */

:root {
  --primary-color: #ff6600;      /* Neon Orange */
  --accent-color: #ff9933;       /* Bright Orange Accent */
  --secondary-color: #b39ddb;    /* Lavender/Light Violet */
  --bg-gradient: linear-gradient(135deg, #0a0710 0%, #160c25 50%, #200f35 100%);
  --sidebar-bg: rgba(28, 16, 48, 0.65);
  --panel-bg: rgba(18, 11, 32, 0.55);
  --panel-border: rgba(255, 102, 0, 0.18);
  --text-primary: #f5f5f5;
  --text-muted: #b0a8c0;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0a0710;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#bg {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  padding: 0 14px 28px 14px;
}

#shadow {
  max-width: 1300px;
  margin: 0 auto;
  background: rgba(10, 6, 18, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  will-change: transform;
  border: 1px solid var(--panel-border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0 28px 28px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #ffffff;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
}

/* Global Navigation Menu */
#nav {
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#nav a:hover {
  color: var(--primary-color) !important;
}

/* Layout Containers */
#container {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

#left-col {
  flex: 3;
  min-width: 0; /* Prevents flex items from overflowing */
}

#sidebar {
  flex: 1;
  min-width: 280px;
}

/* Posts / Content Styling */
.post {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  will-change: transform;
}

.entry_header h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 28px;
  line-height: 1.3;
}

.entry_header h2.home a {
  color: #ffffff;
}

.entry_header h2.home a:hover {
  color: var(--primary-color);
}

.entry_content {
  font-size: 16px;
  color: #e0dced;
}

.entry_content p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Formatted Images inside content */
.entry_content img,
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 0, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  display: block;
}

/* Buy Now Button Hover Effect */
.buy-now-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 102, 0, 0.6) !important;
  opacity: 0.95;
}

.buy-now-button:active {
  transform: translateY(0);
}

/* WordPress elements compatibility */
.aligncenter {
  display: block;
  margin: 0 auto 20px auto;
}

/* Sidebar Widgets */
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget {
  background: var(--sidebar-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  will-change: transform;
}

.widget h2 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(255, 102, 0, 0.3);
  padding-bottom: 8px;
}

/* Captcha & General forms */
input, select, textarea {
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 8px;
  background: rgba(10, 6, 18, 0.6);
  color: #ffffff;
  padding: 8px 12px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25);
}

button, input[type="submit"] {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover, input[type="submit"]:hover {
  background: var(--accent-color);
}

button:active, input[type="submit"]:active {
  transform: scale(0.98);
}

/* Responsiveness */
@media (max-width: 1024px) {
  #container {
    flex-direction: column;
    gap: 20px;
  }
  
  #sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #shadow {
    padding: 0 14px 14px 14px;
    border-radius: 0 0 16px 16px;
  }
  
  .entry_header h2 {
    font-size: 24px;
  }
  
  .post {
    padding: 18px;
  }
}

/* Articles List Page Styling */
.articles-list-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border-color: var(--primary-color);
}

.article-item h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  line-height: 1.4;
}

.article-item h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-item h3 a:hover {
  color: var(--primary-color);
}

.article-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 15px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
}

.pagination a {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  text-decoration: none;
}

.pagination a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.35);
  transform: translateY(-1px);
}

.pagination span.active {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.35);
}

.pagination span.dots {
  color: var(--text-muted);
  border: none;
  background: none;
}

/* Home Page Full-Width overrides */
body.is-home-page #sidebar {
  display: none !important;
}

body.is-home-page #left-col {
  flex: 1 !important;
}

body.is-home-page .post {
  padding: 30px;
}

/* Costume Gallery Grid */
.costume-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .costume-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .costume-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.costume-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.costume-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.costume-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  background: rgba(0,0,0,0.15);
  overflow: hidden;
}

.costume-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.costume-card:hover .costume-thumbnail {
  transform: scale(1.05);
}

.costume-buy-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6600 0%, #ff3300 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 102, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.costume-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.costume-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
}

.costume-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.costume-title a:hover {
  color: var(--primary-color);
}

.costume-excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.costume-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.costume-view-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.costume-view-link:hover {
  text-decoration: underline;
}

/* Product Gallery */
.product-gallery {
  margin-top: 40px;
  border-top: 1px solid var(--panel-border);
  padding-top: 30px;
}

.product-gallery h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 102, 0, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

