/* extra theme styles (kept separate for easy override) */



.sd-icon{width:18px; height:18px; display:inline-block; border-radius: 6px; background: rgba(11,18,32,.08)}



.sd-tabs{display:flex; gap:8px; flex-wrap:wrap}

.sd-tab{padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15,20,36,.55); font-size: 13px; color: #f1f1f1}

.sd-tab.is-active{background: rgba(49,199,255,.18); border-color: rgba(49,199,255,.32)}



.sd-alert{padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15,20,36,.62); font-size: 13px; color: #f1f1f1}

.sd-alert b{color: #ffffff}



.sd-protect{border-radius: 16px; border: 1px dashed rgba(255,255,255,.18); background: rgba(15,20,36,.45)}

.sd-protect .sd-pad{padding: 14px}



.sd-list{margin:0; padding-left: 18px; color: #f1f1f1}

.sd-list li{margin: 6px 0}





/* MemberPress helper nav (adds a safe way back to the site from checkout screens) */

.saydat-mepr-nav{

  display:flex;

  gap:10px;

  align-items:center;

  flex-wrap:wrap;

  margin: 12px 0 16px;

  padding: 10px 12px;

  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.12);

  background: rgba(15,20,36,.55);

}

.saydat-mepr-nav a{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  padding: 8px 12px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,.14);

  text-decoration:none;

  color: #ffffff;

  font-weight: 600;

}

.saydat-mepr-nav a:hover{ background: rgba(255,255,255,.06); }

.saydat-mepr-nav a.primary{

  border: 0;

  background: linear-gradient(90deg, rgba(123,92,255,.95), rgba(255,92,180,.95));

  color: #fff;

}





/* Light mode overrides for tabs, alerts, lists, and protected boxes */

body.saydat-light .sd-icon{

  background: rgba(15,23,42,.06);

}



body.saydat-light .sd-tab{

  background: var(--surface);

  border-color: var(--line);

  color: #1a1a1a;

}



body.saydat-light .sd-tab.is-active{

  background: rgba(49,199,255,.10);

  border-color: rgba(49,199,255,.30);

  color: var(--text);

}



body.saydat-light .sd-alert{

  background: var(--surface);

  border-color: var(--line);

  color: var(--text);

}



body.saydat-light .sd-alert b{

  color: var(--text);

}



body.saydat-light .sd-protect{

  background: var(--surface-2);

  border-color: rgba(15,23,42,.14);

}



body.saydat-light .sd-list{

  color: var(--muted);

}







/* --- SayDat Custom Theme Fixes --- */



/* Heading color fix for dark/light modes */

body:not(.saydat-light) h1,

body:not(.saydat-light) h2,

body:not(.saydat-light) h3,

body:not(.saydat-light) h4,

body:not(.saydat-light) h5,

body:not(.saydat-light) h6 {

  color: #f1f1f1 !important;

}



body.saydat-light h1,

body.saydat-light h2,

body.saydat-light h3,

body.saydat-light h4,

body.saydat-light h5,

body.saydat-light h6 {

  color: #1a1a1a !important;

}



/* Pricing card & button fixes */

.sd-pricing-card {

  background: linear-gradient(145deg, #1f1f2f, #2b2b3b);

  border-radius: 16px;

  padding: 20px;

  text-align: center;

  color: #fff;

  box-shadow: 0 0 15px rgba(0,0,0,0.2);

}



.sd-pricing-card h2 {

  font-size: 20px;

  margin-bottom: 10px;

}



.sd-pricing-card .sd-price {

  font-size: 18px;

  font-weight: bold;

  margin-bottom: 16px;

}



.sd-pricing-card .sd-signup-btn {

  display: inline-block;

  background: linear-gradient(90deg, #7b5cff, #ff5cb4);

  color: #fff;

  padding: 10px 18px;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 600;

}



.sd-pricing-card .sd-signup-btn:hover {

  opacity: 0.9;

}







/* --- Light Theme Fixes for SayDat --- */



/* Sidebar badges (left menu in dashboard) */

body.saydat-light .sd-badge {

  background-color: #e0e0e0 !important;

  color: #1a1a1a !important;

}



/* Post count badges on pricing */

body.saydat-light .sd-badge.good {

  background-color: #4caf50 !important;

  color: #ffffff !important;

}



body.saydat-light .sd-badge.warn {

  background-color: #ff9800 !important;

  color: #ffffff !important;

}



/* Sign Up buttons */

body.saydat-light .sd-signup-btn {

  color: #ffffff !important;

  text-shadow: 0 0 1px #000000;

}



/* Newsletter two-column layout (left: copy, right: images) */
.sd-news-two{
  display:flex;
  gap:18px;
  align-items:flex-start;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sd-news-left{
  flex: 1 1 560px;
  min-width: 280px;
}

.sd-news-right{
  flex: 0 0 340px;
  max-width: 340px;
  min-width: 240px;
}

.sd-news-posterstack{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.sd-news-poster{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

/* Make sure any image inside the poster card stays small and contained */
.sd-news-poster img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

@media (max-width: 900px){
  .sd-news-right{
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------
   Template: Sidebar (User Info + Rotating Ads)
------------------------------------------------------------------- */
.sd-grid.sd-grid-sidebar-ads{
  /* Two-column layout: sidebar + main */
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
}

.sd-grid.sd-grid-sidebar-ads .sd-left,
.sd-grid.sd-grid-sidebar-ads .sd-main{
  min-width: 0; /* prevent overflow that can block clicks */
}

.sd-grid.sd-grid-sidebar-ads .sd-left{
  z-index: 1;
}

.sd-grid.sd-grid-sidebar-ads .sd-main{
  position: relative;
  z-index: 2; /* ensure main sits above any sidebar shadows */
}

@media (max-width: 1100px){
  .sd-grid.sd-grid-sidebar-ads{ grid-template-columns: 1fr; }
  .sd-grid.sd-grid-sidebar-ads .sd-left{ position: static; }
}


.sd-userbox .sd-user-avatar{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display:block;
}

.sd-userbox .sd-user-avatar--ghost{
  background: rgba(255,255,255,0.04);
}

.sd-userbox-name{
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.15;
}

.sd-userbox-tier{
  margin-top: 4px;
  font-size: 12px;
  opacity: .9;
}

.sd-userbox-bio{
  font-size: 13px;
  opacity: .95;
  line-height: 1.45;
}

.sd-adrotator-frame{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

/*
  Poster fit rules:
  - aspect-ratio ensures consistent box sizing
  - object-fit ensures slightly-off images still fill the box nicely
*/
.sd-adrotator-img{
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  opacity: 1; /* always visible */
  transition: opacity 220ms ease;
}

.sd-adrotator-img.is-fading{ opacity: 0; }


/* Front-end Create page editor (TinyMCE) */
.sd-form{display:flex; flex-direction:column; gap:10px}
.sd-label{font-size: 13px; font-weight: 700; color: rgba(245,247,255,.86)}
.sd-input, .sd-textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15,20,36,.55);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.sd-input:focus, .sd-textarea:focus{
  outline: none;
  border-color: rgba(49,199,255,.35);
  box-shadow: 0 0 0 3px rgba(49,199,255,.12);
}
.sd-textarea{min-height: 240px; resize: vertical}

.sd-editor .wp-editor-wrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(15,20,36,.55);
}
.sd-editor .wp-editor-container{
  border: 0 !important;
  background: rgba(15,20,36,.45);
}
.sd-editor iframe{background: transparent}
.sd-editor .mce-top-part::before{display:none}
.sd-editor .mce-toolbar-grp{
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(15,20,36,.72) !important;
}
.sd-editor .mce-btn button{color: rgba(245,247,255,.9)}
.sd-editor .mce-btn:hover,
.sd-editor .mce-btn:focus{
  background: rgba(255,255,255,.06) !important;
}
.sd-editor .quicktags-toolbar{
  background: rgba(15,20,36,.72);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.sd-editor .quicktags-toolbar input.button{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(245,247,255,.9);
  border-radius: 10px;
  padding: 6px 10px;
}
.sd-editor .quicktags-toolbar input.button:hover{
  background: rgba(255,255,255,.10);
}


/* TinyMCE / Quicktags frontend editor contrast fixes */
.sd-editor .mce-ico,
.sd-editor .mce-txt,
.sd-editor .mce-caret{
  color: rgba(245,247,255,.92) !important;
}
.sd-editor .mce-caret{
  border-top-color: rgba(245,247,255,.92) !important;
}
.sd-editor .mce-btn button,
.sd-editor .mce-listbox button{
  color: rgba(245,247,255,.92) !important;
}
.sd-editor .mce-btn button{
  text-shadow: none !important;
}
.sd-editor .mce-listbox button{
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.sd-editor .mce-listbox:hover button,
.sd-editor .mce-btn:hover{
  background: rgba(255,255,255,.08) !important;
}
.sd-editor .mce-btn.mce-active,
.sd-editor .mce-btn.mce-active:hover{
  background: rgba(49,199,255,.18) !important;
}
.sd-editor .mce-btn.mce-disabled button,
.sd-editor .mce-btn.mce-disabled .mce-ico{
  opacity: .45 !important;
}

/* Dropdown menus / popups */
.sd-editor .mce-floatpanel,
.sd-editor .mce-menu,
.sd-editor .mce-panel,
.sd-editor .mce-window{
  background: rgba(15,20,36,.96) !important;
  border-color: rgba(255,255,255,.12) !important;
}
.sd-editor .mce-menu-item .mce-text,
.sd-editor .mce-menu-item .mce-ico{
  color: rgba(245,247,255,.92) !important;
}
.sd-editor .mce-menu-item:hover,
.sd-editor .mce-menu-item.mce-selected{
  background: rgba(255,255,255,.08) !important;
}
.sd-editor .mce-menu-item.mce-disabled{
  opacity: .55 !important;
}

/* Editor tabs + media button */
.sd-editor .wp-switch-editor{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(245,247,255,.92) !important;
}
.sd-editor .wp-switch-editor:hover{
  background: rgba(255,255,255,.10) !important;
}
.sd-editor .wp-switch-editor.switch-tmce,
.sd-editor .wp-switch-editor.switch-html{
  border-bottom: 0 !important;
}
.sd-editor .wp-editor-tabs .wp-switch-editor.wp-switch-editor-active{
  background: rgba(15,20,36,.85) !important;
}
.sd-editor .wp-media-buttons .button{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(245,247,255,.92) !important;
  border-radius: 10px !important;
}
.sd-editor .wp-media-buttons .button:hover{
  background: rgba(255,255,255,.10) !important;
}

/* Light mode overrides */
body.saydat-light .sd-editor .mce-toolbar-grp{background:#f7f7fb !important;}
body.saydat-light .sd-editor .mce-ico,
body.saydat-light .sd-editor .mce-txt,
body.saydat-light .sd-editor .mce-btn button,
body.saydat-light .sd-editor .mce-listbox button{
  color: rgba(20,24,34,.92) !important;
}
body.saydat-light .sd-editor .mce-caret{
  border-top-color: rgba(20,24,34,.92) !important;
}
body.saydat-light .sd-editor .mce-listbox button{
  background: #fff !important;
  border-color: rgba(20,24,34,.14) !important;
}
body.saydat-light .sd-editor .mce-floatpanel,
body.saydat-light .sd-editor .mce-menu,
body.saydat-light .sd-editor .mce-panel,
body.saydat-light .sd-editor .mce-window{
  background: #fff !important;
  border-color: rgba(20,24,34,.14) !important;
}
body.saydat-light .sd-editor .mce-menu-item .mce-text,
body.saydat-light .sd-editor .mce-menu-item .mce-ico{
  color: rgba(20,24,34,.92) !important;
}
body.saydat-light .sd-input,
body.saydat-light .sd-textarea,
body.saydat-light .sd-editor .wp-editor-wrap{
  background: #fff;
}
body.saydat-light .sd-editor .mce-toolbar-grp,
body.saydat-light .sd-editor .quicktags-toolbar{
  background: #f7f7fb !important;
}


/* Front-end Create page help/instructions */
.sd-create-help{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(245,247,255,.78);
  font-size: 12.5px;
  line-height: 1.45;
}
.sd-create-help h3{
  margin: 0 0 8px 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(245,247,255,.92);
}
.sd-create-help ul{
  margin: 0;
  padding-left: 18px;
}
.sd-create-help li{ margin: 6px 0; }
.sd-create-help code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(245,247,255,.92);
}
.sd-create-help kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(245,247,255,.92);
}
.sd-create-help__note{
  margin: 10px 0 0 0;
  color: rgba(245,247,255,.68);
}

/* Light mode */
body.saydat-light .sd-create-help{
  border-top-color: rgba(20,24,34,.12);
  color: rgba(20,24,34,.72);
}
body.saydat-light .sd-create-help h3{ color: rgba(20,24,34,.92); }
body.saydat-light .sd-create-help code{
  background: rgba(20,24,34,.04);
  border-color: rgba(20,24,34,.10);
  color: rgba(20,24,34,.92);
}
body.saydat-light .sd-create-help kbd{
  background: rgba(20,24,34,.06);
  border-color: rgba(20,24,34,.16);
  color: rgba(20,24,34,.92);
}
body.saydat-light .sd-create-help__note{ color: rgba(20,24,34,.62); }


/* Support page promo image (respectful sizing) */
.sd-adwrap{margin: 0 auto; max-width: 820px;}
.sd-support-ad{
  width: 100%;
  height: auto;
  max-height: 420px;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: contain;
}


/* Support page: make Contact Form 7 match theme */
.sd-support-formcard .wpcf7 form,
.sd-support-formcard .wpcf7{
  max-width: 720px;
  margin: 0 auto;
}

.sd-support-formcard .wpcf7 input[type="text"],
.sd-support-formcard .wpcf7 input[type="email"],
.sd-support-formcard .wpcf7 input[type="url"],
.sd-support-formcard .wpcf7 input[type="tel"],
.sd-support-formcard .wpcf7 input[type="number"],
.sd-support-formcard .wpcf7 textarea,
.sd-support-formcard .wpcf7 select{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sd-support-formcard .wpcf7 textarea{
  min-height: 140px;
}

.sd-support-formcard .wpcf7 input[type="submit"]{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(120,140,255,.18);
  color: var(--text);
}

/* Support page promo image (respectful sizing) */
.sd-adwrap{margin: 0 auto; max-width: 860px;}
.sd-support-ad{
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: contain;
}
