/*
Theme Name: Astra Child - Debosmi's World
Theme URI: https://debosmi.com
Description: Dedicated custom child theme designed for Debosmi with vibrant purple tokens, Bento layouts, notebook effects, and fairytale aesthetics.
Author: Google Antigravity & Debosmi's Parents
Template: astra
Version: 2.0.0
*/

:root {
  --purple-deep: #2F0753;
  --purple-primary: #7823EB;
  --purple-vivid: #8F00FF;
  --purple-light: #F4E8FF;
  --purple-bg: #FCF9FF;
  --pink-candy: #FF4DA6;
  --gold-star: #FFCA28;
  --text-main: #3D1263;
  --font-title: 'Fredoka', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-cursive: 'Pacifico', cursive;
  --card-shadow: 0 12px 35px rgba(108, 33, 192, 0.08);
  --hover-shadow: 0 20px 45px rgba(108, 33, 192, 0.18);
  --border-radius-xl: 32px;
  --border-radius-lg: 24px;
}

/* Global Reset & Body Styling */
body.debosmi-world-layout {
  background-color: var(--purple-bg) !important;
  color: var(--text-main) !important;
  font-family: var(--font-body) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Hide Default Astra Header/Footer when using custom layout */
body.debosmi-world-layout .site-header,
body.debosmi-world-layout .site-footer,
body.debosmi-world-layout .ast-post-title-wrapper,
body.debosmi-world-layout .entry-title {
  display: none !important;
}

/* Navigation Bar */
.debosmi-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #EEE0FF;
  padding: 12px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(114, 38, 201, 0.06);
}

.debosmi-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.debosmi-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.debosmi-nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.debosmi-nav-links a:hover,
.debosmi-nav-links a.active {
  background: var(--purple-light);
  color: var(--purple-vivid);
}

.debosmi-btn-parents {
  background: var(--purple-deep) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(47, 7, 83, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.debosmi-btn-parents:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 7, 83, 0.45);
}

/* Main Container */
.debosmi-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 25px;
}

/* Hero Banner */
.debosmi-hero {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(85, 20, 165, 0.22);
  border: 4px solid #DFBEFF;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 50px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.debosmi-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(105deg, rgba(37, 5, 68, 0.82) 0%, rgba(68, 15, 122, 0.65) 55%, rgba(0,0,0,0) 100%);
}

.debosmi-hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  color: #ffffff;
}

.debosmi-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.wood-sign {
  background: linear-gradient(135deg, #A463B8 0%, #6E3280 100%);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  border: 2px solid #EAC8FF;
  text-align: center;
}

.debosmi-hero-title {
  font-family: var(--font-title);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 10px 0 18px 0;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(255, 77, 166, 0.6);
}

.debosmi-hero-subtitle {
  font-size: 1.45rem;
  font-weight: 500;
  color: #F8EFFF;
  margin-bottom: 30px;
}

.debosmi-btn-primary {
  background: linear-gradient(135deg, #A742FF 0%, #7618EF 100%);
  color: #fff !important;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(118, 24, 239, 0.45);
  border: 2px solid #ECC9FF;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.debosmi-btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 30px rgba(118, 24, 239, 0.6);
}

/* Realm Portals Bar */
.debosmi-realms-strip {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 25px 35px;
  margin-top: 30px;
  margin-bottom: 35px;
  box-shadow: var(--card-shadow);
  border: 2px solid #F0DFFF;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.realm-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease;
  min-width: 100px;
}

.realm-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.realm-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 2px solid #E1BFFF;
}

.realm-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-deep);
  text-align: center;
}

/* 3-Column Bento Grid Showcase */
.debosmi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.debosmi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.debosmi-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 2px solid #F2E3FF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.debosmi-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin: 0;
}

.badge-new {
  background: var(--pink-candy);
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(255, 77, 166, 0.3);
}

/* About Me Card Styling */
.about-headshot-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.headshot-frame {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 4px solid var(--pink-candy);
  box-shadow: 0 8px 25px rgba(255, 77, 166, 0.35);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #491E73;
}

.card-btn-purple {
  background: var(--purple-primary);
  color: #fff !important;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  display: block;
  margin-top: 20px;
  box-shadow: 0 6px 18px rgba(120, 35, 235, 0.25);
  transition: all 0.2s ease;
}

.card-btn-purple:hover {
  background: var(--purple-vivid);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(120, 35, 235, 0.35);
}

/* Daily Diary Notebook Card */
.diary-card {
  background: linear-gradient(135deg, #FFF9FA 0%, #F8F0FF 100%);
  border-left: 18px solid #8230EA !important;
  position: relative;
}

.diary-card::before {
  content: "✏️ 📖";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  opacity: 0.7;
}

/* Polaroid Collage */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.polaroid-mini {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #E2CAFF;
  transform: rotate(-2deg);
}

.polaroid-mini:nth-child(2) { transform: rotate(3deg); }
.polaroid-mini:nth-child(3) { transform: rotate(2deg); }
.polaroid-mini:nth-child(4) { transform: rotate(-3deg); }

.polaroid-mini img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

/* Fun Facts Table */
.fun-facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fun-facts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E5CDFF;
  font-size: 1.05rem;
}

.fact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.fact-val {
  font-family: var(--font-title);
  color: var(--purple-vivid);
  font-weight: 700;
}

/* Achievements Section */
.achievements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.achieve-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.achieve-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.achieve-title {
  font-weight: 700;
  color: var(--purple-deep);
  margin: 0;
  font-size: 1.1rem;
}

.achieve-date {
  font-size: 0.9rem;
  color: #7A5C9B;
  margin: 2px 0 0 0;
}

/* Mini Card Strip */
.mini-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 2px solid #EBD7FF;
  box-shadow: 0 8px 20px rgba(114, 38, 201, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.mini-icon {
  font-size: 3.2rem;
  margin: 10px 0;
}

.mini-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 15px;
}

.mini-btn {
  background: var(--purple-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease;
  display: inline-block;
  width: 85%;
}

.mini-btn:hover {
  background: var(--purple-vivid);
}

/* Stats Starry Ribbon */
.debosmi-stats-ribbon {
  background: linear-gradient(135deg, #2E0754 0%, #51168B 50%, #350663 100%);
  border-radius: var(--border-radius-xl);
  padding: 35px 40px;
  margin-top: 40px;
  margin-bottom: 50px;
  color: #ffffff;
  border: 3px solid var(--gold-star);
  box-shadow: 0 20px 50px rgba(46, 7, 84, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-star);
  text-shadow: 0 3px 10px rgba(255, 202, 40, 0.5);
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 500;
  color: #EBD6FF;
}

/* Fairytale Night Sky Footer */
.debosmi-footer {
  background: linear-gradient(180deg, #1C0535 0%, #0D0219 100%);
  color: #ffffff;
  padding: 60px 30px 30px 30px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 4px solid var(--pink-candy);
}

.footer-greeting {
  font-family: var(--font-title);
  font-size: 3rem;
  color: #ffffff;
  margin: 15px 0 10px 0;
  text-shadow: 0 4px 15px rgba(255, 77, 166, 0.7);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.social-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #E4B5FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-circle:hover {
  background: var(--pink-candy);
  transform: scale(1.1);
}

.footer-copyright {
  font-size: 0.95rem;
  color: #B593D6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

/* Micro Animations */
@keyframes floatGentle {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: floatGentle 4s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .debosmi-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .debosmi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .debosmi-hero {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .debosmi-navbar {
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .debosmi-nav-links {
    display: none; /* Can add burger menu or wrap */
  }
  .debosmi-grid-3,
  .debosmi-grid-5 {
    grid-template-columns: 1fr;
  }
  .debosmi-hero {
    min-height: 440px;
    padding: 25px;
  }
  .debosmi-hero-title {
    font-size: 3.2rem;
  }
  .debosmi-hero-badges {
    display: none;
  }
  .debosmi-stats-ribbon {
    flex-direction: column;
    gap: 25px;
  }
}
