/* secretmsg.css - styles for Secret Message child theme pages */

/* Container */
.sm-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero */
.sm-hero-inner { text-align: center; margin-bottom: 22px; }
.sm-hero-inner h1 { font-size: 36px; margin-bottom:8px; }
.sm-hero-inner p { color:#666; margin:0; }

/* Row layout */
.sm-row { display:flex; gap:30px; align-items:flex-start; justify-content:center; }

/* Columns */
.sm-col { box-sizing:border-box; }
.sm-col-main { flex: 0 0 55%; max-width:55%; }
.sm-col-board { flex: 0 0 38%; max-width:38%; }

/* Cards */
.sm-card { background:#fff; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.sm-card-board { padding:18px; }

/* Inputs + buttons */
.sm-input { width:100%; padding:12px; border-radius:25px; border:1px solid #e6e6e6; box-sizing:border-box; }
.sm-share-input { flex:1; }
.sm-tnc-wrapper { display:block; margin-top:12px; color:#333; font-size:14px; }
.sm-cta { background:#1f1f1f; color:#fff; border:none; padding:10px 14px; border-radius:28px; cursor:pointer; width: 100%; font-weight: 600;}
.sm-cpylink{background: #1f1f1f; color: #fff; border: none; padding: 10px 14px; border-radius: 28px; cursor: pointer; font-weight: 600;}

.sm-cred-btn { background:#4a4a4a; color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; }

/* Labels, small text */
.sm-label { display:block; margin-bottom:8px; font-weight:600; }
.sm-small { font-size:13px; color:#666; margin-top:12px; }

/* Social buttons */
.sm-social { background:#eee; border:none; border-radius:8px; padding:8px 10px; margin-right:8px; cursor:pointer; }

/* Message board */
.sm-message-board h3 { margin-top:0; display:flex; align-items:center; gap:8px; justify-content:space-between; }
.sm-refresh { background:#4a4a4a; color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; }

/* Modal */
.sm-modal { position:fixed; left:0; top:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.45); z-index:9999; }
.sm-modal-content { background:#fff; padding:20px; border-radius:10px; width:320px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Message cards inside board */
.sm-msg-card { margin-bottom:10px; padding:12px; border-radius:8px; }


/* Copy confirmation style (temporary) */
.sm-copy-confirm { position:relative; }
.sm-copy-confirm .copied-tip {
  position:absolute; right:10px; top:-32px; background:#333; color:#fff; padding:6px 8px; border-radius:6px; font-size:13px;
  display:inline-block; opacity:0; transform:translateY(6px); transition:opacity .12s ease, transform .12s ease;
}
.sm-copy-confirm.show .copied-tip { opacity:1; transform:translateY(0); }

/* Responsive: stack columns on narrow screens */
@media (max-width: 880px) {
  .sm-row { flex-direction:column; gap:18px; }
  .sm-col-main, .sm-col-board { max-width:100%; flex: 1 1 100%; }
}


/* === HERO - dark rounded header area (matches your screenshot) === */
.sm-hero {
  background: #1f1f1f;        /* dark header */
  color: #fff;
  padding: 15px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  margin-bottom: 5px;
}
.sm-hero-inner { max-width: 760px; margin: 0 auto; }
.sm-hero-inner h1 { font-size: 30px; margin: 0 0 6px 0; font-weight:700; }
.sm-hero-inner p, .sm-hero-inner .entry-content { color: #e9e9e9; margin: 0; }

/* Make the create/share card visually separate and slightly overlapping (optional) */
.sm-card-main {
  margin-top: -16px;  /* gentle overlap with hero */
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* === Share header - match hero look (dark mini-header inside share area) === */
.sm-share-area .share-header {
  background: #1f1f1f;    /* same dark color as hero */
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* ensure share header text & buttons are readable */
.sm-share-area .share-header h3,
.sm-share-area .share-header p { color: #fff; margin:0; }

/* style for Take Screenshot button to match dark theme (invert style) */
.sm-cred-btn {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* keep share input visually clean */
.sm-link-row .sm-input {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 10px;
  border-radius: 8px;
}

/* social links simple pill buttons */
.sm-social-link, .sm-social-placeholder a {
  display:inline-block;
  margin-right:8px;
  padding:8px 10px;
  border-radius:8px;
  background:#f0f0f0;
  color:#333;
  text-decoration:none;
  font-weight:600;
}

/* adjust on small screens */
@media (max-width:720px){
  .sm-hero-inner { padding: 8px; }
  .sm-card-main { margin-top: -8px; }
}


/* second info card (editor content) */
.sm-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.55;
  box-sizing: border-box;
}

.sm-wrapper {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  min-height: 60vh;
}

/* Page inner width (fixed 728px) */
.sm-inner {
  width: 100%;
  max-width: 728px;
  box-sizing: border-box;
}



.reload-btn {
    background: #efefef;
    border: none;
    border-radius: 50%;
    padding: 9px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reload-icon {
    font-size: 18px;
    color: #222222;
    display: inline-block;
    transition: transform 1s;
}


.sm-link-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.sm-btn-row {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.sm-btn {
    flex: 1;
    padding: 12px 14px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

a:hover.sm-btn{
color: white;    
}

.sm-btn i {
    font-size: 18px;
}

/* WhatsApp Button */
.sm-wa {
    background-color: #25D366;
}

/* Copy Button */
.sm-copy {
    background-color: #4c8bf5;
}

/* Instagram Button */
.sm-ig {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}




/* Popup Overlay */
.ig-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    overflow-y: auto;                 /* entire popup scrolls */
    padding: 20px 12px;
    z-index: 9999;
    align-items: flex-start;          /* show popup starting at the top */
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

/* Popup Box */
.ig-popup {
    background: #fff;
    width: 92%;
    max-width: 420px;
    border-radius: 14px;
    padding: 20px;
    position: relative;
    animation: popupFade 0.25s ease;
    box-sizing: border-box;
}

/* Fade animation */
@keyframes popupFade {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Images shown in vertical list (no grid) */
.ig-images {
    margin: 18px 0;
}

.ig-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;           /* space between images */
    display: block;
}

/* Share button */
.ig-popup-btn {
    width: 100%;
    padding: 14px;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

/* Close button */
.ig-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 26px;
    cursor: pointer;
}


.sm-social-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}

.sm-social {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    color: #ffffff;
}


@media (max-width: 600px) {
    .sm-social {
        width: 40px;      /* smaller box */
        height: 40px;
        font-size: 17px;  /* smaller icon */
        border-radius: 10px;
    }
    .sm-social-row {
       gap: 2px; 
    }
}


/* Brand Colors */
.fb { background: #1877f2; }
.x  { background: #000000; }
.tg { background: #2AABEE; }
.ms { background: #0084FF; }
.li { background: #0A66C2; }
.rd { background: #FF4500; }


.sm-mobile-only { display: none; }

@media (max-width: 768px) {
    .sm-mobile-only {
        display: flex;
        justify-content: center;
    }
}



/* ===== POPUP BACKDROP ===== */
.sm-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ===== POPUP CONTENT WRAPPER ===== */
.sm-popup-content {
  width: 360px;
  text-align: center;
  position: relative;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* CLOSE BUTTON */
.sm-close {
  position: absolute;
  right: 8px;
  top: -8px;
  font-size: 26px;
  cursor: pointer;
  opacity: .9;
}

/* ===== SOCIAL PILL BAR ===== */
.sm-social-pill {
  display: inline-flex;
  background: rgba(0,0,0,.45);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.sm-mode {
  margin: 0 10px;
  font-size: 20px;
  opacity: .5;
  cursor: pointer;
  transition: .2s;
}

.sm-mode.active {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== GRADIENT MESSAGE CARD ===== */
.sm-gradient-card {
  background: linear-gradient(TO RIGHT, #040404, #000000, #656565);
  border-radius: 28px;
  padding: 26px 22px;
  /*margin-bottom: 20px;*/
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.sm-card-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

/* OUTER CARD */
.sm-card-shell {
  background: linear-gradient(108deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 24%);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0,0,0,.6);
  border-radius: 25px;
}

/* HEADER SECTION */
.sm-card-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

/* WHITE PANEL */
.sm-card-message-box {
  background: #fff;
  /*margin: 0 20px 22px;*/
  border-radius: 0px 0px 25px 25px;
  padding: 36px 14px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,.08);
}

/* MESSAGE TEXT */
.sm-card-message {
  font-weight: 700;
  color: #000;
  text-align: center;
  font-size: 16px;
}

/* ===== REPLY INPUT (GLASS STYLE) ===== */
#smReplyInput {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: none;
  margin-top: 25px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
}

/* ===== REPLY BUTTON ===== */
.sm-reply-btn {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border-radius: 35px;
  background: #000;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

.sm-reply-btn.loading {
  opacity: .7;
  pointer-events: none;
}

.sm-reply-btn .loader {
  margin-left: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: rotate 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
.sm-footer-text {
  font-size: 12px;
  margin-top: 14px;
  opacity: .75;
}

/* ===== SNAPSHOT TEMPLATE (NEW DESIGN) ===== */
#ngl-share-snapshot {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 720px;
  height: 1280px;
  font-family: 'Poppins', sans-serif;
}

/* DARK BACKGROUND */
.snap-stage {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1b1b1b, #000);
  padding-top: 180px;
  box-sizing: border-box;
  position: relative;
  text-align: center;
  background-color: #000; /* fallback */
}

/* CARD WRAPPER */
.snap-card {
  width: 620px;
  margin: 0 auto;
}

/* WHITE CARD */
.snap-card-shell {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  isolation: isolate; /* FIX canvas edge bleeding */
}


/* GRADIENT HEADER */
.snap-card-header {
  padding: 32px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  /*background: linear-gradient(90deg,#3b00ff,#ff00c8);*/
    background: linear-gradient(108deg,rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 24%);
  border-radius: 40px 40px 0 0; /* fix corner blending */
}

/* MESSAGE BOX */
.snap-card-message-box {
  padding: 60px 30px;
  background: #ffffff;        /* FORCE white */
  border-radius: 0 0 40px 40px;
  box-shadow: none !important;
  filter: none !important;
}


.snap-message {
  color: #000;
  font-size: 34px;
  font-weight: 700;
  word-break: break-word;
}

/* REPLY TEXT */
.snap-reply {
  margin-top: 90px;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
}

/* WATERMARK */
.snap-watermark {
  position: absolute;
  bottom: 70px;
  width: 100%;
  text-align: center;
  font-size: 24px;
  color: #fff;
  /*opacity: .7;*/
}

.imgrdy{
    font-size: 22px;
}

