/*
Theme Name: IshqJail Editorial
Theme URI: https://ishqjail.com
Author: IshqJail
Description: A modern editorial WordPress theme for love, relationships, dating and stories.
Version: 4.3.0
License: GPL-2.0-or-later
Text Domain: ishqjail-editorial
*/

:root{
  --ink:#241821;
  --plum:#49243c;
  --rose:#a85b79;
  --cream:#fbf7f3;
  --blush:#f1e4e9;
  --paper:#fffdfb;
  --muted:#746a70;
  --line:#e9dde2;
  --white:#fff;
  --shadow:0 16px 50px rgba(54,28,43,.10);
  --radius:24px;
  --container:1160px;
  --header-h:76px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  min-height:100vh;
  min-height:100svh;
  background:var(--cream);
  color:var(--ink);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.7;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:rgba(168,91,121,.14);
}

body.menu-open{overflow:hidden}

a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
img{max-width:100%;height:auto;display:block}
iframe{max-width:100%}
video{max-width:100%;height:auto}

:focus-visible{
  outline:3px solid rgba(168,91,121,.55);
  outline-offset:3px;
}

.container{
  width:min(var(--container),calc(100% - 40px));
  margin-inline:auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(251,247,243,.94);
  -webkit-backdrop-filter:blur(16px) saturate(1.1);
  backdrop-filter:blur(16px) saturate(1.1);
  border-bottom:1px solid rgba(73,36,60,.08);
  padding-top:var(--safe-top);
}

.nav{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo{
  flex:0 0 auto;
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  line-height:1;
  font-weight:800;
  letter-spacing:-1.5px;
  color:var(--plum);
  white-space:nowrap;
}

.logo span{color:var(--rose)}

.nav-links{
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:flex-end;
  font-size:14px;
  font-weight:700;
}

.nav-links a{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

@media (hover:hover) and (pointer:fine){
  .nav-links a:hover{color:var(--rose)}
}

.nav-cta{
  background:var(--plum);
  color:#fff!important;
  padding:10px 18px;
  border-radius:999px;
}

.mobile-menu{
  display:none;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  color:var(--plum);
  cursor:pointer;
  font-size:0;
  align-items:center;
  justify-content:center;
}

.mobile-menu::before{
  content:"☰";
  font-size:24px;
  line-height:1;
}

.mobile-menu[aria-expanded="true"]::before{content:"×"}

.mobile-menu-panel{display:none}

/* Hero */
.hero{
  padding:clamp(56px,8vw,96px) 0 clamp(48px,7vw,76px);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(32px,5vw,55px);
  align-items:center;
}

.eyebrow{
  color:var(--rose);
  font-size:12px;
  line-height:1.3;
  letter-spacing:2px;
  font-weight:900;
  text-transform:uppercase;
}

.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(48px,7vw,86px);
  line-height:.98;
  letter-spacing:clamp(-4px,-.5vw,-2px);
  margin:16px 0 24px;
  color:var(--plum);
  max-width:900px;
}

.hero p{
  font-size:clamp(17px,2vw,19px);
  max-width:620px;
  color:var(--muted);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:18px;
  padding:12px 22px;
  border-radius:999px;
  background:var(--plum);
  color:white;
  font-weight:800;
  text-align:center;
}

.btn.alt{
  background:transparent;
  color:var(--plum);
  border:1px solid var(--plum);
  margin-left:8px;
}

@media (hover:hover) and (pointer:fine){
  .btn:hover{transform:translateY(-1px)}
}

.hero-art{
  min-height:clamp(360px,42vw,540px);
  border-radius:clamp(24px,3vw,38px);
  overflow:hidden;
  background:linear-gradient(135deg,#f0dce3,#d9c2ce);
  box-shadow:var(--shadow);
  position:relative;
  isolation:isolate;
}

.hero-art img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:inherit;
}

.hero-art::after{
  content:"♡";
  position:absolute;
  right:28px;
  bottom:18px;
  color:white;
  font-size:70px;
  font-family:Georgia,serif;
  opacity:.8;
  pointer-events:none;
}

/* Sections */
.section{padding:clamp(52px,7vw,76px) 0}
.section.soft{background:var(--blush)}
.section.dark{background:var(--plum);color:#fff}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:28px;
}
.section h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(34px,4vw,54px);
  line-height:1.05;
  margin:0;
  color:var(--plum);
  letter-spacing:-1.5px;
}
.dark h2{color:white}
.section-intro{color:var(--muted);max-width:650px}
.dark .section-intro{color:#eadde4}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.pill{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 17px;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:999px;
  font-weight:750;
}

@media (hover:hover) and (pointer:fine){
  .pill:hover{
    background:var(--plum);
    color:#fff;
    border-color:var(--plum);
  }
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.card{
  min-width:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 8px 28px rgba(50,30,42,.05);
  transition:transform .2s ease,box-shadow .2s ease;
}

.card-image{
  display:block;
  aspect-ratio:16/10;
  background:var(--blush);
  overflow:hidden;
}

.card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ishq-post-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.ishq-post-fallback{
  width:100%;
  height:100%;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--fallback-bg);
  position:relative;
  overflow:hidden;
}
.ishq-post-fallback::before{
  content:"";
  position:absolute;
  width:55%;
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(255,255,255,.24);
  filter:blur(2px);
}
.ishq-post-fallback span{
  position:relative;
  font:400 clamp(58px,8vw,92px)/1 Georgia,serif;
  color:rgba(73,36,60,.48);
}

.card-body{padding:22px}
.meta{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  color:var(--rose);
  font-weight:900;
}

.card h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(22px,2.2vw,25px);
  line-height:1.15;
  margin:9px 0 10px;
  color:var(--plum);
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.read-more{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:12px;
  color:var(--plum);
  font-weight:850;
}

@media (hover:hover) and (pointer:fine){
  .card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
  }
}

/* Feature */
.feature{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:clamp(24px,3vw,32px);
  overflow:hidden;
}

.feature .card-body{padding:clamp(28px,5vw,42px)}

.feature h3{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(32px,4vw,42px);
  line-height:1.05;
  color:var(--plum);
  margin:12px 0;
}

/* Newsletter */
.newsletter{
  padding:clamp(42px,6vw,65px) clamp(20px,4vw,30px);
  text-align:center;
  border-radius:clamp(24px,3vw,32px);
  background:linear-gradient(135deg,var(--plum),#6c3657);
  color:white;
}

.newsletter h2{color:white}
.newsletter p{
  max-width:650px;
  margin:12px auto;
  color:#eadde4;
}

.newsletter-form{
  display:flex;
  max-width:560px;
  margin:24px auto 0;
  gap:10px;
}

.newsletter-form input{
  min-width:0;
  flex:1;
  border:0;
  border-radius:999px;
  padding:14px 18px;
  min-height:50px;
  font:inherit;
}

.newsletter-form button{
  min-height:50px;
  border:0;
  border-radius:999px;
  padding:14px 22px;
  background:#f2c8d5;
  color:var(--plum);
  font-weight:900;
  cursor:pointer;
}

/* Footer */
.site-footer{
  padding:55px 0 calc(25px + var(--safe-bottom));
  background:#241821;
  color:#eadde4;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr repeat(3,minmax(0,1fr));
  gap:35px;
}

.footer-title{
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  color:white;
}

.site-footer h4{margin-top:0;color:white}
.site-footer a{
  display:block;
  min-height:40px;
  padding:7px 0;
  color:#cdbfc7;
  font-size:14px;
}

.copyright{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:35px;
  padding-top:18px;
  font-size:13px;
  color:#a99aa3;
}

/* Archive / pages / single */
.archive-title,.page-hero{
  padding:clamp(52px,7vw,70px) 0 35px;
}

.archive-title h1,.page-hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,6vw,72px);
  line-height:1;
  color:var(--plum);
  margin:10px 0 30px;
}

.single-wrap{
  width:min(850px,calc(100% - 40px));
  margin:auto;
  padding:clamp(50px,7vw,72px) 0;
}

.single-wrap h1{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(42px,6vw,72px);
  line-height:1.02;
  color:var(--plum);
  margin:12px 0 25px;
  overflow-wrap:anywhere;
}

.single-wrap > img{
  width:100%;
  max-height:620px;
  object-fit:cover;
  border-radius:24px;
  margin:25px 0 35px;
}

.single-meta{color:var(--rose);font-weight:800}

.single-content{
  font-size:clamp(17px,2vw,18px);
  color:#40363c;
  overflow-wrap:anywhere;
}

.single-content img,
.single-content figure{
  max-width:100%;
}

.single-content h2,
.single-content h3{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--plum);
  line-height:1.2;
  margin-top:42px;
}

.single-content blockquote{
  border-left:4px solid var(--rose);
  margin:30px 0;
  padding:8px 25px;
  font-family:Georgia,serif;
  font-size:clamp(22px,3vw,25px);
  color:var(--plum);
}

/* Comments */
.ishq-comments{
  margin-top:65px;
  padding-top:38px;
  border-top:1px solid var(--line);
}

.ishq-comments h2{
  font:800 32px/1.15 Georgia,serif;
  color:var(--plum);
  margin:0 0 25px;
}

.ishq-comment-list{
  padding-left:0;
  list-style:none;
}

.ishq-comment-list li{
  list-style:none;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  margin:14px 0;
  overflow-wrap:anywhere;
}

.ishq-comment-form{
  margin-top:30px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  padding:clamp(20px,4vw,28px);
}

.ishq-comment-form label{
  display:block;
  font-weight:750;
  color:var(--plum);
  margin:0 0 7px;
}

.ishq-comment-form input,
.ishq-comment-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:13px;
  padding:13px 14px;
  min-height:48px;
  background:#fff;
  font:inherit;
  margin-bottom:16px;
  -webkit-appearance:none;
  appearance:none;
}

.ishq-comment-form textarea{
  min-height:150px;
  resize:vertical;
}

.ishq-comment-submit{
  min-height:48px;
  border:0!important;
  border-radius:999px!important;
  background:var(--plum)!important;
  color:#fff!important;
  padding:13px 23px!important;
  font-weight:850!important;
  cursor:pointer;
}

.comment-note{color:var(--muted)}

/* Tablet */
@media (max-width:1024px){
  .container{width:min(var(--container),calc(100% - 32px))}
  .nav-links{gap:12px}
  .nav-links a{font-size:13px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Mobile navigation + layout */
@media (max-width:850px){
  :root{--header-h:66px}

  .nav{
    min-height:66px;
    gap:12px;
  }

  .nav-links{
    display:none;
  }

  .mobile-menu{
    display:inline-flex;
  }

  .mobile-menu-panel{
    position:fixed;
    inset:calc(var(--header-h) + var(--safe-top)) 0 var(--safe-bottom) 0;
    z-index:999;
    display:block;
    padding:16px max(20px,var(--safe-right)) calc(30px + var(--safe-bottom)) max(20px,var(--safe-left));
    background:rgba(251,247,243,.99);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    height:calc(100dvh - var(--header-h) - var(--safe-top));
    max-height:calc(100dvh - var(--header-h) - var(--safe-top));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    transform:translateY(-10px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  }

  .mobile-menu-panel.is-open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .mobile-menu-panel a{
    display:flex;
    align-items:center;
    width:100%;
    min-height:52px;
    padding:10px 4px;
    border-bottom:1px solid var(--line);
    font-weight:800;
    font-size:16px;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .mobile-menu-panel .nav-cta{
    justify-content:center;
    border:0;
    margin-top:14px;
    color:#fff!important;
  }

  .hero{
    padding:48px 0 52px;
  }

  .hero-grid,
  .feature{
    grid-template-columns:1fr;
  }

  .hero-art{
    min-height:clamp(300px,75vw,430px);
    order:2;
  }

  .hero-art img{min-height:inherit}

  .section-head{
    display:block;
  }

  .section-intro{margin-top:12px}
}

/* Phones */
@media (max-width:560px){
  .container{width:calc(100% - 28px)}

  .logo{
    font-size:25px;
    letter-spacing:-1px;
  }

  .hero{
    padding:38px 0 44px;
  }

  .hero h1{
    font-size:clamp(44px,14vw,64px);
    letter-spacing:-2.5px;
    margin-top:13px;
  }

  .hero p{font-size:17px}

  .hero-art{
    min-height:calc(100vw - 28px);
    max-height:500px;
    border-radius:24px;
  }

  .hero-art::after{
    right:18px;
    bottom:8px;
    font-size:52px;
  }

  .btn{
    width:100%;
    margin-top:12px;
  }

  .btn.alt{
    margin-left:0;
  }

  .pills{
    gap:8px;
  }

  .pill{
    flex:1 1 calc(50% - 8px);
    min-width:0;
    text-align:center;
    padding-inline:10px;
  }

  .grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .card{border-radius:20px}
  .card-image{aspect-ratio:16/10;min-height:190px}
  .ishq-post-fallback{min-height:190px}
  .card-body{padding:19px}

  .feature .card-body{padding:26px 20px}

  .newsletter-form{
    flex-direction:column;
  }

  .newsletter-form input,
  .newsletter-form button{
    width:100%;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .site-footer{
    padding-top:42px;
  }

  .archive-title,.page-hero{
    padding-top:42px;
  }

  .archive-title h1,.page-hero h1{
    font-size:clamp(40px,12vw,58px);
  }

  .single-wrap{
    width:calc(100% - 28px);
    padding:42px 0 55px;
  }

  .single-wrap h1{
    font-size:clamp(38px,11vw,58px);
  }

  .single-wrap > img{
    border-radius:18px;
    margin:18px 0 28px;
  }

  .single-content blockquote{
    margin-inline:0;
    padding-left:18px;
  }

  .ishq-comment-form{
    border-radius:20px;
    padding:20px 16px;
  }
}

/* Small iPhone / narrow screens */
@media (max-width:380px){
  .container{width:calc(100% - 24px)}
  .logo{font-size:23px}
  .hero h1{font-size:43px}
  .pill{flex-basis:100%}
  .mobile-menu{width:44px;height:44px;flex-basis:44px}
}

/* Landscape phones */
@media (max-width:850px) and (orientation:landscape){
  .hero-grid{grid-template-columns:1fr 1fr}
  .hero-art{min-height:330px}
}

/* Reduce animation for accessibility and iOS motion preferences */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}

/* Avoid hover-only movement on touch devices */
@media (hover:none){
  .card:hover{transform:none;box-shadow:0 8px 28px rgba(50,30,42,.05)}
}

/* Prevent accidental overflow from long embeds/code */
pre,code,table{
  max-width:100%;
}

pre{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

table{
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}


/* Image download controls */
.ishq-image-download-wrap{position:relative!important}
.ishq-image-download-btn{position:absolute;right:12px;bottom:12px;z-index:8;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 14px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(36,24,33,.86);color:#fff!important;font:800 13px/1 Inter,system-ui,sans-serif;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.22);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;opacity:.96;transition:transform .18s ease,background .18s ease,opacity .18s ease}
.ishq-image-download-btn::before{content:"↓";font-size:17px;line-height:1}
.ishq-image-download-btn.is-loading{opacity:.7;pointer-events:none}
@media (hover:hover) and (pointer:fine){.ishq-image-download-btn:hover{background:var(--plum);transform:translateY(-2px)}}
@media (max-width:560px){.ishq-image-download-btn{right:9px;bottom:9px;min-height:40px;padding:9px 12px;font-size:12px}.ishq-image-download-btn::before{font-size:16px}}


/* Language switcher */
.ishq-language-switcher{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  flex:0 0 auto;
}
.ishq-lang-btn{
  min-height:34px;
  padding:6px 10px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--plum);
  font:800 11px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}
.ishq-lang-btn.is-active{background:var(--plum);color:#fff}
.ishq-google-translate{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.goog-te-banner-frame,.skiptranslate iframe{display:none!important}
body{top:0!important}
.goog-te-gadget{font-size:0!important}
.single-wrap .ishq-single-hero{width:100%;max-height:620px;object-fit:cover;border-radius:24px;margin:25px 0 35px}
.single-content figure{margin:28px 0}
.single-content figure img{width:100%;height:auto;border-radius:18px}

@media (max-width:1100px){
  .nav{gap:12px}
  .nav-links{gap:13px;font-size:13px}
  .ishq-language-switcher{order:2}
}

@media (max-width:850px){
  .nav-links{display:none}
  .ishq-language-switcher{margin-left:auto;margin-right:8px}
  .ishq-lang-btn{min-height:36px;padding:7px 9px;font-size:11px}
  .mobile-menu{display:inline-flex}
  .mobile-menu-panel{
    position:fixed;
    left:12px;
    right:12px;
    top:calc(var(--header-h) + var(--safe-top) + 8px);
    max-height:calc(100dvh - var(--header-h) - var(--safe-top) - 24px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    z-index:1001;
  }
}

@media (max-width:560px){
  .ishq-language-switcher{margin-right:5px}
  .ishq-lang-btn{padding-inline:8px}
  .single-wrap .ishq-single-hero{border-radius:16px;margin:18px 0 25px}
}

@media (max-width:380px){
  .ishq-language-switcher{gap:1px;padding:2px}
  .ishq-lang-btn{min-height:34px;padding:6px 7px;font-size:10px}
}
