/*
Theme Name: Kawaii Candy Pop
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A playful kawaii WordPress theme with a handmade scrapbook feel inspired by a pink candy palette.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kawaii-candy-pop
*/

:root {
  --pink-milk: #fbb3d9;
  --pink-bubblegum: #f78ead;
  --pink-berry: #d75b8d;
  --pink-cream: #fff5fb;
  --pink-ink: #8f3d63;
  --lavender-shadow: #c979a0;
  --white: #ffffff;
  --card-shadow: 0 12px 0 rgba(215, 91, 141, 0.18);
  --rounded-xl: 26px;
  --rounded-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: var(--pink-ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.55) 0 26px, transparent 27px),
    radial-gradient(circle at 90% 12%, rgba(255,255,255,0.45) 0 18px, transparent 19px),
    radial-gradient(circle at 22% 78%, rgba(255,255,255,0.4) 0 22px, transparent 23px),
    linear-gradient(135deg, var(--pink-milk) 0%, var(--pink-bubblegum) 48%, var(--pink-berry) 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

body::before {
  content: "★ ♥ ✿ ★ ♥ ✿";
  position: fixed;
  top: 8px;
  left: 14px;
  z-index: 0;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 8px;
  pointer-events: none;
}

a {
  color: var(--pink-berry);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--pink-ink);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.site {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 22px 16px 10px;
}

.header-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255, 245, 251, 0.92);
  border: 4px solid var(--white);
  border-radius: 30px;
  box-shadow: var(--card-shadow);
  padding: 20px;
}

.site-branding {
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  transform: rotate(-1.2deg);
}

.site-title a {
  color: var(--pink-berry);
  text-decoration: none;
  text-shadow: 2px 2px 0 #fff;
}

.site-description {
  margin: 8px 0 0;
  font-size: 1rem;
}

.main-navigation {
  margin-top: 18px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  display: inline-block;
  text-decoration: none;
  background: var(--white);
  border: 3px solid var(--pink-bubblegum);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 6px 0 rgba(215, 91, 141, 0.15);
  font-weight: 700;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: var(--pink-bubblegum);
  color: var(--white);
}

.content-wrap {
  max-width: 1120px;
  margin: 20px auto 50px;
  padding: 0 16px;
}

.hero-card,
.post-card,
.page-card,
.widget-area,
.comments-area,
.pagination-shell,
.not-found-card {
  background: rgba(255, 245, 251, 0.94);
  border: 4px solid var(--white);
  border-radius: var(--rounded-xl);
  box-shadow: var(--card-shadow);
}

.hero-card {
  text-align: center;
  padding: 36px 24px;
  margin-bottom: 24px;
}

.hero-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 10px;
  color: var(--pink-berry);
  text-shadow: 2px 2px 0 #fff;
}

.hero-card p {
  max-width: 680px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
}

.kawaii-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--pink-bubblegum), var(--pink-berry));
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 0 rgba(143, 61, 99, 0.18);
  text-decoration: none;
}

.kawaii-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  transform: translateY(1px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.post-card,
.page-card,
.not-found-card {
  padding: 22px;
}

.post-card {
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: "♡";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: rgba(215, 91, 141, 0.22);
}

.entry-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.entry-title a {
  text-decoration: none;
}

.entry-meta {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

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

.entry-footer {
  margin-top: 18px;
  font-size: 0.95rem;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.sidebar-widget-area,
.widget-area {
  padding: 20px;
}

.widget {
  margin-bottom: 20px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  margin-top: 0;
  font-size: 1.3rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 3px solid rgba(215, 91, 141, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--pink-ink);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.pagination-shell {
  margin-top: 28px;
  padding: 18px 22px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-footer {
  padding: 0 16px 36px;
}

.footer-shell {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 245, 251, 0.92);
  border: 4px solid var(--white);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
  padding: 22px 16px;
}

.footer-shell p {
  margin: 0;
}

.sticky-badge,
.cat-links a,
.tag-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 142, 173, 0.18);
  text-decoration: none;
}

.wp-caption,
.gallery,
.blocks-gallery-grid,
figure.wp-block-image {
  margin-bottom: 1.4rem;
}

.alignwide,
.alignfull {
  border-radius: 24px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

@media (max-width: 880px) {
  .single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-shell,
  .hero-card,
  .post-card,
  .page-card,
  .widget-area,
  .comments-area,
  .pagination-shell,
  .footer-shell,
  .not-found-card {
    border-width: 3px;
    border-radius: 22px;
  }

  .main-navigation ul {
    gap: 10px;
  }

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