@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&family=Dancing+Script:wght@500;700&display=swap');

:root {
  --primary: #e8a0b4;
  --primary-light: #fdf2f4;
  --primary-dark: #d4789a;
  --secondary: #fefafb;
  --accent: #c9a0dc;
  --accent-light: #f3e8f7;
  --gold: #d4a574;
  --text: #4a3c3f;
  --text-light: #7a6a6d;
  --white: #ffffff;
  --shadow-soft: 0 8px 32px rgba(232, 160, 180, 0.15);
  --shadow-medium: 0 12px 40px rgba(232, 160, 180, 0.25);
  --shadow-glow: 0 0 40px rgba(232, 160, 180, 0.3);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #fefcfd 30%, #f8f4ff 70%, #fdf2f8 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.8;
  position: relative;
  overflow-x: hidden;
}

/* Decorative background elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(232, 160, 180, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(201, 160, 220, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============ Header ============ */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

header::after {
  content: '✿ ❀ ✿ ❀ ✿ ❀ ✿ ❀ ✿';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1.2rem;
  letter-spacing: 2rem;
  opacity: 0.3;
  padding: 0.5rem;
  animation: floatFlowers 20s linear infinite;
}

@keyframes floatFlowers {
  0% {
    transform: translateX(-10%);
  }

  100% {
    transform: translateX(10%);
  }
}

.logo {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  letter-spacing: 3px;
  animation: fadeInDown 1s ease-out;
}

.logo span {
  display: block;
  font-size: 1.1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 6px;
  margin-top: 0.75rem;
  opacity: 0.95;
  text-transform: uppercase;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Main Content ============ */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  animation: fadeIn 1s ease-out 0.3s both;
}

.section-title::before {
  content: '❀';
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  animation: spin 10s linear infinite;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Post Cards ============ */
.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(232, 160, 180, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out both;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px 0 0 3px;
}

.post-card::after {
  content: '❀';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  opacity: 0.15;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
  border-color: rgba(232, 160, 180, 0.3);
}

.post-card:hover::after {
  opacity: 0.4;
  transform: rotate(15deg) scale(1.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card:nth-child(1) {
  animation-delay: 0.1s;
}

.post-card:nth-child(2) {
  animation-delay: 0.2s;
}

.post-card:nth-child(3) {
  animation-delay: 0.3s;
}

.post-card:nth-child(4) {
  animation-delay: 0.4s;
}

.post-card:nth-child(5) {
  animation-delay: 0.5s;
}

.post-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: var(--transition);
  line-height: 1.4;
}

.post-card:hover h2 {
  color: var(--primary-dark);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  line-height: 1.9;
  font-size: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(232, 160, 180, 0.35);
  position: relative;
  overflow: hidden;
}

.read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.read-more:hover::before {
  left: 100%;
}

.read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 160, 180, 0.5);
}

.read-more::after {
  content: '→';
  transition: var(--transition);
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 160, 180, 0.15);
  animation: fadeIn 1s ease-out;
}

.empty-state .icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.empty-state p {
  color: var(--text-light);
  font-size: 1.1rem;
  font-style: italic;
}

/* ============ Single Post Page ============ */
.post-single {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 3.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 160, 180, 0.15);
  animation: fadeIn 0.8s ease-out;
}

.post-single h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  position: relative;
}

.post-single h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 1.25rem;
  border-radius: 2px;
}

.post-single .post-meta {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 160, 180, 0.2);
}

.post-content {
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.75rem;
  text-align: justify;
}

.post-content p:first-letter {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
  float: left;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  color: var(--primary-dark);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  transition: var(--transition);
  border: 1px solid rgba(232, 160, 180, 0.2);
}

.back-link:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateX(-5px);
}

/* ============ Footer ============ */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
  position: relative;
}

footer::before {
  content: '✿ ❀ ✿';
  display: block;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  letter-spacing: 1rem;
}

footer .heart {
  color: var(--primary);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.2);
  }
}

/* ============ Scrollbar ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============ Selection ============ */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .logo {
    font-size: 2.8rem;
  }

  header {
    padding: 3rem 1rem;
  }

  main {
    padding: 2.5rem 1rem;
  }

  .post-card {
    padding: 1.75rem;
  }

  .post-single {
    padding: 2rem 1.5rem;
  }

  .post-single h1 {
    font-size: 2rem;
  }

  .post-content p:first-letter {
    font-size: 2.5rem;
  }
}