/*
Theme Name: Istikhara Theme
Author: Mohsen
Version: 1.0
*/

/* Reset */

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Amiri-Regular.woff2') format('woff2')
}

@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Merriweather.woff2') format('woff2')
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather', serif;
  background: #fdf6e3;
  color: #1f1f1f;
  line-height: 1.7;
}
html {
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 30px 0;
}

h1, h2, h3 {
  margin-bottom: 20px;
}

p {
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #f9d976, #f39c12);
  color: #000;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #fceabb, #f1c40f);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.btn-head {
  background: linear-gradient(135deg, #f9d976, #f39c12);
  color: #000;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 16px;
  margin-left: 25px;
}

.btn-head:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #fceabb, #f1c40f);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Header */
header {
  background: #0b2f24;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #faefbe;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  opacity: 0.85;
  font-size: 16px;
  line-height: 1;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 110px 20px;
  background:
    linear-gradient(rgba(15,61,46,0.7), rgba(15,61,46,0.85)),
    url('https://istikhara.app/wp-content/themes/istikhara-theme/images/hero-back.webp') center/cover no-repeat;
}

.hero h2 {
  font-size: 40px;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 600px;
  margin: 15px auto;
  position: relative;
  z-index: 1;
}

.hero .btn {
  position: relative;
  z-index: 1;
  font-size: 18px;
}

/* Intro / Istikhara cards */
.intro {
  text-align: center;
  background: #fff4c2;
  color: #1f1f1f;
  padding: 80px 20px;
}

.istikhara-quote {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  font-style: italic;
  background: #fff8d6;
  padding: 25px 30px;
  border-left: 5px solid #c87f00;
  border-radius: 8px;
}

.istikhara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.istikhara-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.istikhara-card h3 {
  color: #c87f00;
  margin-bottom: 10px;
  font-size: 18px;
}

.steps{
    background-color:#0b2f24;
    background-image:url("https://istikhara.app/wp-content/themes/istikhara-theme/images/bg.webp");
    background-repeat:repeat;
    background-size:400px;

    color:#fff;
}

.steps > *{
    position:relative;
    z-index:1;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 40px;
  margin-top: 40px;
}

.step {
  background: #0f3d2e;
  padding: 30px;
  border-radius: 10px;
}

.step h3 {
  color: #ffd966;
}

/* Dua */
.dua {
  margin: 50px auto 30px;
  text-align: center;
  background: #fff8d6;
  padding: 50px 20px;
  border-radius: 12px;
  color: #1f1f1f;
}

.arabic {
  font-size: 28px;
  line-height: 2;
  background: #fff4c2;
  padding: 40px;
  border-radius: 12px;
font-family: 'Amiri', serif;
}

.highlight {
  color: #c87f00;
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid #c87f00;
  border-radius: 6px;
}

.translation {
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  color: #1f1f1f;
}

/* CTA */
.cta {
  background: #fff4c2;
  text-align: center;
  color: #1f1f1f;
  padding: 80px 20px;
}

/* Guidance */
.guidance {
  background: #0f3d2e;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.guidance-card {
  background: #134a38;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.guidance-card h3 {
  color: #ffd966;
  margin-bottom: 10px;
}

/* Verse */
.verse {
  text-align: center;
  background: #0f5d3d;
  font-style: italic;
  color: #f6f3eb;
  padding: 80px 20px;
  font-size: 30px;
}

.quran-quote {
  max-width: 750px;
  margin: auto;
  position: relative;
  padding: 40px 30px;
}

.quran-quote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 90px;
  color: #ffd966;
  opacity: 0.35;
  font-family: serif;
}

.quran-quote p {
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.quran-quote cite {
  display: block;
  font-size: 16px;
  opacity: 0.8;
  font-style: normal;
}

.quran-quote::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #ffd966;
  margin: 25px auto 0;
}

/* FAQ */
.faq {
  margin: auto;
  background: #fff8d6;
  color: #1f1f1f;
  padding: 50px 20px;
}

.faq-item {
  max-width: 1100px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(31,31,31,0.3);
  padding-bottom: 15px;
}

.faq-item h4 {
  color: #c87f00;
  margin-bottom: 8px;
}

.faq ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.faq ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.faq ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffd966;
  font-weight: bold;
  font-size: 18px;
}

/* Footer */
footer {
  background: #081f18;
  color: #f6f3eb;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-left p {
  margin: 0;
  opacity: 0.8;
}

.footer-right nav a {
  color: #ffd966;
  text-decoration: none;
  margin-left: 20px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-right nav a:hover {
  opacity: 1;
}

/* Responsive */
@media(max-width:768px){
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-right nav a {
    margin: 10px 8px 0 8px;
  }

  nav a[href="https://istikhara.app/#how"],
  nav a[href="https://istikhara.app/#faq"] {
    display: none;
  }
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
  font-size: 14px;
}

.lang-switch a {
  color: #ffd966;
  text-decoration: none;
  margin: 0 4px;
  opacity: 0.7;
  font-weight: bold;
}

.lang-switch a.active {
  opacity: 1;
  border-bottom: 1px solid #ffd966;
}

.lang-switch span {
  opacity: 0.4;
}

.result-hero > *{
    position:relative;
    z-index:1;
}

.result-hero{
    text-align:center;
    background:#0f3d2e;
    color:#fff;
    padding:55px 20px 45px;

    position:relative;
    overflow:hidden;

    isolation:isolate; 
}
.result-hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:url('https://istikhara.app/wp-content/themes/istikhara-theme/images/pattern3.png') repeat;
    background-size:150px 148px;

    opacity:0.18;

    pointer-events:none;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 15%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0.6) 75%,
        black 100%
    );

            mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 15%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0.6) 75%,
        black 100%
    );
}
.result-badge{
    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:10px 24px;

    font-weight:700;
    font-size:14px;

    color:#6b4e16;

    background:linear-gradient(145deg,#fff4cc,#e3bd5a);

    border:1px solid #b8923d;

    border-radius:999px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 4px 12px rgba(0,0,0,.12);

    position:relative;

    letter-spacing:0.3px;
}
.result-badge::before{
    content:"﴿";
    color:#a77d2e;
    font-size:16px;
    margin-left:4px;
}
.result-badge::after{
    content:"﴾";
    color:#a77d2e;
    font-size:16px;
    margin-right:4px;
}
html[dir="ltr"] .result-badge::before{
    content:"﴾";
}
html[dir="ltr"] .result-badge::after{
    content:"﴿";
}

h1.result-badge {font-size:18px;}

/* RESULT CARD */

/* RESULT BOX */

.result-box{
margin:18px auto 22px;
padding:34px 30px;
border-radius:18px;
max-width:600px;
width:100%;
box-shadow:0 10px 30px rgba(0,0,0,.12);
text-align:center;
border-top:7px solid;
}

.result-box span{
display:block;
font-size:52px;
font-weight:700;
line-height:1.25;
margin-bottom:18px;
letter-spacing:-0.5px;
}

.result-box p{
font-size:20px;
line-height:1.8;
opacity:.92;
max-width:500px;
margin:auto;
}

/* RESULT TYPES */

/* EXCELLENT */
.result-excellent{
border-color:#2ecc71;
background:#eafaf1;
color:#17663a;
}

/* GOOD */
.result-good{
border-color:#27ae60;
background:#edf9f1;
color:#1f6b45;
}

/* NEUTRAL */
.result-neutral{
border-color:#d4a017;
background:#fff8df;
color:#8a6700;
}

/* NOT GOOD */
.result-notgood{
border-color:#e67e22;
background:#fff3e8;
color:#9a5515;
}

/* BAD */
.result-bad{
border-color:#e74c3c;
background:#fdeeee;
color:#962d22;
}

/* AYAH */

.ayah{
background:#ffffff;
text-align:center;
border-radius:14px;
padding:35px 25px;
box-shadow:0 4px 14px rgba(0,0,0,.08);
border:1px solid rgba(15,61,46,.08);
}

.ayah-arabic{
font-family:'Amiri',serif;
font-size:38px;
line-height:2.1;
margin-bottom:18px;
color:#0f3d2e;
}

.translit{
font-style:italic;
opacity:.75;
margin-bottom:18px;
font-size:15px;
line-height:1.8;
}

.result-translation{
max-width:700px;
margin:auto;
font-size:17px;
line-height:1.9;
color:#222;
}

/* RESULTS */

.decision-results{
margin:-20px 0 20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:22px;
}

.result-card{
background:#ffffff;
border-radius:14px;
padding:26px;
box-shadow:0 4px 14px rgba(0,0,0,.08);
border-top:4px solid #c87f00;
}

.result-card h3{
color:#0f3d2e;
margin-bottom:12px;
font-size:22px;
}

.result-btn{
display:inline-block;
background:linear-gradient(135deg,#f9d976,#f39c12);
color:#000;
padding:14px 30px;
text-decoration:none;
border-radius:6px;
font-weight:bold;
margin:10px;
}

/* SURAH META */

.surah-meta{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
background:#fff;
padding:16px 22px;
border-radius:14px;
margin-bottom:18px;
box-shadow:0 4px 14px rgba(0,0,0,.08);
border:1px solid rgba(15,61,46,.08);
flex-wrap:wrap;
}

.surah-meta-left{
display:flex;
flex-direction:column;
gap:3px;
}

.surah-meta-right{
text-align:right;
display:flex;
flex-direction:column;
gap:3px;
}

.surah-name-en{
font-size:20px;
font-weight:bold;
color:#0f3d2e;
line-height:1.2;
}

.surah-meaning{
font-size:13px;
opacity:.65;
}

.surah-name-ar{
font-family:'Amiri', serif;
font-size:34px;
line-height:1.2;
color:#a86b00;
}

.surah-ayah{
margin-top:2px;
font-size:13px;
font-weight:bold;
opacity:.65;
}

@media(max-width:768px){

.surah-meta{
text-align:center;
justify-content:center;
padding:14px 18px;
}

.surah-meta-left,
.surah-meta-right{
width:100%;
text-align:center;
align-items:center;
}

.surah-name-ar{
font-size:30px;
}

}
@media(max-width:768px){

section{
padding:25px 0;
}

.result-hero{
padding:40px 15px 30px;
}

.result-box h1,
.result-box h2{
font-size:30px;
}

.ayah{
padding:25px 18px;
}

.ayah-arabic{
font-size:30px;
line-height:2;
}

.decision-results{
margin:-15px 0 20px;
gap:18px;
}

.result-cta{
    width: fit-content;
    margin: 35px auto 0;
}

.result-btn{
display:block;
width:100%;
margin:10px 0;
}

}
.related-surah-box{
    width:90%;
    max-width:1100px;
    margin:-10px auto 15px;
    padding:24px;
    background:#fffdf7;
    border:1px solid #ead9aa;
    border-radius:22px;
    box-shadow:0 8px 30px rgba(178,146,52,.12);
}
.related-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}
.related-header .icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:54px;
    height:54px;
    font-size:24px;
    background:#f7ecd0;
    border-radius:50%;
}
.related-header h3{
    margin:0;
    color:#785300;
    font-size:22px;
}
.related-header p{
    margin:5px 0 0;
    color:#777;
    font-size:14px;
}
.related-list{
    display:grid;
    gap:14px;
}
.related-item{
    display:block;
    padding:18px 20px;
    text-decoration:none;
    background:#fff;
    border:1px solid #f0e5c2;
    border-radius:16px;
    transition:.25s;
}
.related-item:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.related-title{
    margin-bottom:8px;
    font-weight:700;
    color:#163f34;
}
.related-excerpt{
    color:#666;
    font-size:14px;
    line-height:1.8;
}

   .result-share {
       width:90%;
    max-width:1100px;
    margin:-10px auto 15px;
    padding:24px;
    background:#fffdf7;
    border:1px solid #ead9aa;
    border-radius:22px;
    box-shadow:0 8px 30px rgba(178,146,52,.12);    text-align: center;
}
.result-share-box {

}
.result-share-title {
    margin-bottom: 15px;
    font-size: 18px;
}
.result-share-image {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
}
.result-share-image img {
    width: 100%;
    height: auto;
    display: block;
}
.pin-it-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #E60023;
    color: #fff;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.result-share-image:hover .pin-it-btn,
.pin-it-btn:focus {
    opacity: 1;
    transform: translateY(0);
}
.result-share-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}
