/*
Theme Name: Peachy Keen
Author: Stephanie Fraser (obviously 😏)
Version: 1.1
*/

/* =========================
   🎨 VARIABLES
========================= */
:root {
  --header-bg: linear-gradient(135deg, #FF6F61, #FFD8B1);
  --nav-bg: rgba(255, 111, 97, 0.85);
  --title-color: #6B4226;
  --text-color: #7E5A3A;
  --page-bg: linear-gradient(180deg, #FFE5D4, #FFF1E6);
  --box-bg: #FFF1E6;
  --accent: #FF6F61;
  --accent-light: #FF9E80;
}

/* =========================
   🌍 GLOBAL
========================= */
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  background: var(--page-bg);
}

img {
  max-width: 100%;
  height: auto;
}

/* Links */
a,
a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-light);
}

/* =========================
   🧱 LAYOUT
========================= */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.main-content,
.sidebar {
  background-color: var(--box-bg);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.main-content {
  flex: 1 1 60%;
  min-width: 280px;
}

.sidebar {
  flex: 1 1 30%;
  min-width: 220px;
}

/* =========================
   🌅 HEADER
========================= */
header {
  position: relative;
  max-width: 1200px;
  margin: 1rem auto;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,111,97,0.4), rgba(255,216,177,0.4)),
    url('images/enzo_isabella.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: #fff;
  padding: 0 1rem;
}

header h1 {
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* =========================
   🧭 NAVIGATION
========================= */
nav {
  background: var(--header-bg);
  padding: 0.5rem 1rem;
  color: #fff;
  max-width: 1000px;
  margin: 1rem auto;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 0.3rem;
}

nav ul li::after {
  content: "|";
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.6);
}

nav ul li:last-child::after {
  content: "";
}

nav ul li a {
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

nav ul li a:hover {
  opacity: 0.85;
}

/* =========================
   ✍️ TYPOGRAPHY
========================= */
h1, h2 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: var(--title-color);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--header-bg);
}

/* =========================
   📝 CONTENT
========================= */
.main-content article {
  margin-bottom: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-content article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.main-content p {
  border-bottom: 1px solid rgba(110, 66, 38, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.main-content p:last-child {
  border-bottom: none;
}

.main-content h2 a {
  color: var(--title-color);
}

.main-content h2 a:hover {
  color: var(--accent);
}

/* =========================
   📦 SIDEBAR
========================= */
.sidebar .widget {
  margin-bottom: 1.5rem;
}

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

.sidebar .widget h2 {
  margin-bottom: 0.5rem;
}

.sidebar .widget ul {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
}

.sidebar a,
.sidebar a:visited {
  color: var(--accent);
}

.sidebar a:hover {
  color: var(--accent-light);
}

/* =========================
   🏷️ TAGS
========================= */
.post-tags {
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-tags a {
  display: inline-block;
  background: #f6b7a9;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 6px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.post-tags a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* =========================
   💬 COMMENTS
========================= */
#comments {
  margin-top: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(110, 66, 38, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.comment:last-child {
  border-bottom: none;
}

.comment-author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-body {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--title-color);
}

.comment-meta {
  font-size: 0.8rem;
  color: rgba(126, 90, 58, 0.6);
  margin-bottom: 0.4rem;
}

.comment-reply-link {
  font-size: 0.8rem;
  color: var(--accent);
}

.comment-reply-link:hover {
  color: var(--accent-light);
}

.bypostauthor .comment-author {
  color: var(--accent);
}

/* =========================
   📝 COMMENT FORM (UPGRADED)
========================= */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(110, 66, 38, 0.2);
  background: #fff7f5;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 111, 97, 0.15);
}

.comment-form textarea {
  min-height: 140px;
}

.comment-form label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.comment-form input[type="submit"] {
  background: var(--header-bg);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin-left: 0;
}

.comment-form .comment-form-cookies-consent input {
  margin: 0;
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
}

.comment-form p.comment-form-cookies-consent {
  padding-left: 0;
}

.comment-form-comment {
  display: flex;
  flex-direction: column-reverse;
}

/* =========================
   🔻 FOOTER
========================= */
footer {
  max-width: 1000px;
  margin: 2rem auto;
  text-align: center;
  font-size: 0.85rem;
}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 768px) {
  .main-content,
  .sidebar {
    flex: 1 1 100%;
  }
}