/*
Theme Name: Islamic Dream Interpretation
Theme URI: https://dreamedplainer.com
Author: Madeeha Batool
Version: 1.1.0
Text Domain: islamic-dream
*/

/* WordPress base */
img{max-width:100%;height:auto;}
a{color:inherit;}
/* ---- Original UI CSS ---- */
:root {
  --bg-main: #ffffff;
  --bg-secondary: #f6f7ff;
  --bg-card: rgba(255, 255, 255, 0.75);

  --cu-purple: #6647F0;
  --cu-blue: #0091FF;
  --cu-pink: #FF02F0;
  --cu-orange: #FC6D2D;

  --accent-blue: var(--cu-purple);
  --accent-gold: var(--cu-blue);
  --accent-rose: var(--cu-pink);

  --text-main: #0f172a;
  --text-muted: #475569;
  --border-soft: rgba(102, 71, 240, 0.18);
  --shadow: 0 18px 60px rgba(102, 71, 240, 0.18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background: radial-gradient(900px circle at 15% 10%, rgba(102,71,240,0.18), transparent 55%), radial-gradient(900px circle at 85% 15%, rgba(0,145,255,0.16), transparent 55%), radial-gradient(900px circle at 60% 85%, rgba(255,2,240,0.10), transparent 55%), #ffffff;
  min-height: 100vh;
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Navigation */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 28px; color: var(--accent-blue); }
.logo-icon-img { 
  width: 40px; 
  height: 40px; 
  object-fit: contain;
  border-radius: 8px;
}
.logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; color: var(--accent-blue); }

.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-blue); }
.nav-links a.active { color: var(--accent-blue); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
}

.btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.btn-primary { 
  background: linear-gradient(135deg, var(--cu-purple), var(--cu-blue)); 
  color: white; 
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-secondary { 
  background-color: rgba(255, 255, 255, 0.8); 
  color: var(--accent-blue); 
  border: 1px solid var(--accent-blue);
}
.btn-secondary:hover { background-color: white; border-color: var(--accent-blue); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { 
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(900px circle at 10% 15%, rgba(102,71,240,0.22), transparent 55%),
    radial-gradient(900px circle at 90% 20%, rgba(0,145,255,0.18), transparent 55%),
    radial-gradient(900px circle at 70% 85%, rgba(255,2,240,0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
}
.hero h1 { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 3.5rem; 
  font-weight: 700; 
  margin-bottom: 15px; 
  line-height: 1.2; 
  color: var(--accent-blue);
}
.hero-subtitle { 
  font-size: 1.2rem; 
  color: var(--text-muted); 
  max-width: 700px; 
  margin: 0 auto 40px; 
}

/* Dream Input */
.dream-input-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto 60px;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.dream-input-section h2 { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 2rem; 
  margin-bottom: 25px; 
  text-align: center; 
  color: var(--accent-blue); 
}
.input-label { font-size: 1.1rem; margin-bottom: 10px; display: block; color: var(--accent-blue); }
.dream-textarea {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(59, 130, 246, 0.40);
  padding: 22px 22px;
  background: linear-gradient(180deg, rgba(225, 240, 250, 0.55) 0%, #ffffff 55%);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  margin-bottom: 14px;
  box-shadow:
    0 14px 36px rgba(29, 78, 216, 0.14),
    0 2px 10px rgba(29, 78, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.dream-textarea::placeholder {
  color: rgba(58, 94, 122, 0.75);
}

.dream-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow:
    0 18px 44px rgba(29, 78, 216, 0.22),
    0 0 0 5px rgba(59, 130, 246, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}
.dream-textarea:focus { outline: none; border-color: var(--accent-blue); }
.example-text { font-size: 14px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

.interpret-btn {
  display: block;
  margin: 30px auto;
  padding: 18px 50px;
  font-size: 1.1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.22);
}

.interpret-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: -15px;
  margin-bottom: 20px;
}
.interpret-btn:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(29, 78, 216, 0.30); }

/* Sections */
.how-it-works { 
  padding: 60px 0; 
  background: linear-gradient(135deg, #ffffff 0%, #e1f0fa 100%);
}
.section-title { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 2.5rem; 
  text-align: center; 
  margin-bottom: 50px; 
  color: var(--accent-blue); 
}
.steps-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 50px; }
.step {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: transform 0.3s;
  box-shadow: var(--shadow);
}
.step:hover { transform: translateY(-10px); }
.step-icon { font-size: 40px; color: var(--accent-blue); margin-bottom: 20px; }
.step-title { font-size: 1.4rem; margin-bottom: 15px; color: var(--accent-blue); }
.step-description { color: var(--text-muted); }

.privacy-quote { padding: 60px 0; text-align: center; max-width: 800px; margin: 0 auto; }
.privacy-note {
  background: rgba(29, 78, 216, 0.10);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-blue);
}
.privacy-note i { color: var(--accent-blue); margin-right: 10px; }
.quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent-blue);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
  margin: 40px 0;
}
.quote-author { color: var(--text-muted); font-size: 1rem; margin-top: 15px; }

/* Blog grid (used for Dream Blog page) */
.dream-blog { 
  padding: 60px 0; 
  background: linear-gradient(135deg, #ffffff 0%, #e1f0fa 100%);
}
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.blog-card { 
  background: white; 
  border-radius: var(--radius-md); 
  overflow: hidden; 
  border: 1px solid var(--border-soft); 
  transition: transform 0.3s;
  box-shadow: var(--shadow);
}
.blog-card:hover { transform: translateY(-10px); }
.blog-image { 
  height: 180px; 
  background: linear-gradient(135deg, #e1f0fa, #ffffff); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 60px; 
  color: var(--accent-blue); 
}
.blog-content { padding: 25px; }
.blog-title { font-size: 1.3rem; margin-bottom: 10px; color: var(--accent-blue); }
.blog-excerpt { color: var(--text-muted); margin-bottom: 20px; }
.blog-link { color: var(--accent-blue); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.blog-link:hover { text-decoration: underline; }

/* Single Post Styles */
.single-post { padding: 80px 0; }

.post-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.post-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--accent-blue);
}

.post-meta {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-soft);
}

.post-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Entry Content */
.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.entry-content p {
  margin-bottom: 1.5em;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--accent-blue);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  font-weight: 700;
}

.entry-content h1 { font-size: 2.2rem; }
.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.6rem; }
.entry-content h4 { font-size: 1.4rem; }
.entry-content h5 { font-size: 1.2rem; }
.entry-content h6 { font-size: 1.1rem; }

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  margin-left: 2em;
  line-height: 1.8;
}

.entry-content li {
  margin-bottom: 0.75em;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  border-left: 4px solid var(--accent-blue);
  background: rgba(29, 78, 216, 0.06);
  font-style: italic;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.entry-content blockquote p {
  margin-bottom: 0.5em;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  transition: color 0.3s;
}

.entry-content a:hover {
  color: #1a4b73;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2em 0;
  display: block;
  box-shadow: var(--shadow);
}

.entry-content figure {
  margin: 2em 0;
}

.entry-content figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75em;
  font-style: italic;
}

.entry-content pre {
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.entry-content code {
  background: rgba(29, 78, 216, 0.06);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--accent-blue);
}

.entry-content pre code {
  background-color: transparent;
  padding: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.entry-content th {
  background: rgba(29, 78, 216, 0.06);
  color: var(--accent-blue);
  font-weight: 600;
}

.entry-content tr:last-child td {
  border-bottom: none;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 3em 0;
}

/* WordPress Alignment Classes */
.entry-content .alignleft {
  float: left;
  margin: 0.5em 2em 1.5em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0.5em 0 1.5em 2em;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress Gallery */
.entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin: 2em 0;
}

.entry-content .gallery-item {
  margin: 0;
}

/* Footer */
footer { 
  background: linear-gradient(135deg, #ffffff 0%, #e1f0fa 100%);
  padding: 60px 0 30px; 
  border-top: 1px solid var(--border-soft); 
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-column h3 { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 1.3rem; 
  margin-bottom: 20px; 
  color: var(--accent-blue); 
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-blue); }
.copyright { 
  text-align: center; 
  padding-top: 30px; 
  border-top: 1px solid var(--border-soft); 
  color: var(--text-muted); 
  font-size: 14px; 
}

/* Modal */
.modal { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(29, 78, 216, 0.85); 
  z-index: 1000; 
  justify-content: center; 
  align-items: center; 
}
.modal-content { 
  background: white; 
  border-radius: var(--radius-lg); 
  padding: 40px; 
  width: 90%; 
  max-width: 500px; 
  border: 1px solid var(--border-soft); 
  position: relative;
  box-shadow: var(--shadow);
}
.modal-title { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  font-size: 1.8rem; 
  margin-bottom: 20px; 
  color: var(--accent-blue); 
}
.close-modal { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  font-size: 24px; 
  cursor: pointer; 
  color: var(--text-muted); 
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; font-size: 24px; background: none; border: none; color: var(--accent-blue); cursor: pointer; }
  .post-content { padding: 35px; }
  .post-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .dream-input-section { padding: 30px 20px; }
  .step { min-width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-content { padding: 25px 20px; }
  .post-title { font-size: 1.8rem; }
  .entry-content { font-size: 1rem; }
  .entry-content h1 { font-size: 1.8rem; }
  .entry-content h2 { font-size: 1.6rem; }
  .entry-content h3 { font-size: 1.4rem; }
}

/* Mobile Navigation */
.mobile-menu-btn { display: none; }
@media (max-width: 992px) {
  .mobile-menu-btn { display: block; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-top: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    gap: 10px;
  }
  .nav-links.active a { padding: 10px 0; }
}

/* SEO content sections (homepage) */
.seo-sections{
  padding: 60px 0;
  background: #ffffff;
}
.seo-intro{
  max-width: 900px;
  margin: 0 auto 35px auto;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}
.seo-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}
.seo-card{
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.seo-card-title{
  color: var(--accent-blue);
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.seo-card-text{
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.seo-list{
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.75;
}
.seo-list li{ margin: 8px 0; }
.seo-faq{
  max-width: 900px;
  margin: 0 auto;
}
.faq-item{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-blue);
  outline: none;
}
.faq-item p{
  color: var(--text-muted);
  line-height: 1.75;
  margin: 12px 0 0 0;
}
