
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
  /* Colors */
  --primary: #00f0ff;
  --primary-dark: #00c3ff;
  --secondary: #0f172a;
  --accent: #ff0055;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #007bff 100%);
  --grad-dark: radial-gradient(circle at 0% 0%, #202028 0%, #101014 100%);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --line-height: 1.6;
  
  /* Spacing & Sizes */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-main);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================
   2. Layout & Container
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* =========================================
   3. Header Styles
   ========================================= */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.9);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-branding {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--secondary);
}

/* Search Form */
.mob-search {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--background);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.search-form__text {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  outline: none;
  width: 200px;
  color: var(--text-main);
}

.search-form__submit {
  background: var(--secondary);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-form__submit::before {
  content: "🔍";
  font-size: 0.9rem;
}

.search-form__submit:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Hamburger */
.mob-hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.mob-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: relative;
}

.mob-hamburger span::before,
.mob-hamburger span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  left: 0;
  transition: 0.3s;
}

.mob-hamburger span::before { top: -8px; }
.mob-hamburger span::after { top: 8px; }

/* =========================================
   4. Content & Typography
   ========================================= */
.site-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
  flex: 1;
}

.entry-header {
  margin-bottom: 2rem;
  text-align: center;
}

.entry-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.entry-content h2, 
.entry-content h3 {
  color: var(--secondary);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }

/* Images */
.wp-block-image {
  margin: 2.5rem 0;
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.wp-block-image img:hover {
  transform: scale(1.01);
}

/* Buttons inside content */
.btn-box {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--surface);
  background: var(--grad-primary);
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
  color: #fff;
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

/* Lists */
.wp-block-list {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.wp-block-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.wp-block-list li::marker {
  color: var(--primary-dark);
  font-weight: bold;
}

/* =========================================
   5. Comments Section
   ========================================= */
.comments-area {
  max-width: 800px;
  margin: 4rem auto 0;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.comment-form p {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
  background: var(--surface);
}

.form-submit .submit {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-submit .submit:hover {
  background: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.comment-smiles {
  margin-bottom: 1rem;
}
.comment-smiles img {
  cursor: pointer;
  transition: transform 0.2s;
}
.comment-smiles img:hover {
  transform: scale(1.3);
}

/* =========================================
   6. Footer
   ========================================= */
.site-footer {
  background: var(--secondary);
  color: var(--text-muted);
  padding: 3rem 0;
  margin-top: auto;
}

.site-footer-inner {
  text-align: center;
  font-size: var(--font-size-sm);
}

.scrolltop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.scrolltop::after {
  content: '↑';
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.5rem;
}

.scrolltop.is-visible { /* Class added via JS usually */
  opacity: 1;
  visibility: visible;
}

.scrolltop:hover {
  transform: translateY(-5px);
  background: #fff;
}

/* =========================================
   7. Override / Fix Modal Specifics (Enhancement)
   ========================================= */
/* 
   Since the modal uses !important heavily in inline styles within the HTML block,
   we need high specificity or !important to refine it if we want to change it.
   Below are styles that complement the existing inline ones without breaking them,
   but adding responsiveness.
*/

#promo-overlay .promoX_9b2f_btnMain {
  position: relative;
  overflow: hidden;
}
#promo-overlay .promoX_9b2f_btnMain::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  from { transform: translateX(-100%) rotate(30deg); }
  to { transform: translateX(100%) rotate(30deg); }
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 1rem;
  }
  
  .mob-hamburger {
    display: block;
    margin-right: 1rem;
  }
  
  .mob-search {
    display: none; /* Hide search on mobile header to save space, maybe toggle */
  }

  .entry-title {
    font-size: 2.5rem;
  }
  
  .wp-block-image {
    margin: 1.5rem -1.5rem; /* Full width on mobile */
    width: calc(100% + 3rem);
  }
  
  .wp-block-image img {
    border-radius: 0;
  }
  
  .btn {
    width: 100%;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .entry-content {
    font-size: 1rem;
  }
  
  .entry-title {
    font-size: 2rem;
  }

  .comments-area {
    padding: 1.5rem;
  }
}
