/*
Theme Name: Shilpa Rose
Theme URI: https://shilpaagarg.com
Author: A Friend Who Cares
Description: A personalized, lightweight theme celebrating Shilpa's love for finding extraordinary in ordinary life. Inspired by roses, books, and warm conversations over coffee.
Version: 1.0
License: GPL v2 or later
Text Domain: shilpa-rose
*/

:root {
  --rose-pink: #f4e4e6;
  --rose-deep: #d4696f;
  --rose-accent: #b85861;
  --coffee-brown: #6b4c47;
  --tea-gold: #c9a66b;
  --page-cream: #fdfbf7;
  --text-primary: #3a3a3a;
  --text-secondary: #666;
  --border-soft: #e8d7d9;
  --shadow-soft: rgba(212, 105, 111, 0.08);
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background: var(--page-cream);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100vh;
}

#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#content {
  flex: 1;
  overflow: visible;
}

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

.container::after {
  content: "";
  display: table;
  clear: both;
}

/* Header with Rose Motif */
.site-header {
  background: linear-gradient(135deg, var(--rose-pink) 0%, var(--page-cream) 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '❀';
  position: absolute;
  top: -20px;
  right: 10%;
  font-size: 120px;
  color: var(--rose-deep);
  opacity: 0.1;
  transform: rotate(-15deg);
}

.site-branding {
  text-align: center;
  margin-bottom: 30px;
}

.site-title {
  font-size: 2.5em;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.site-title a {
  color: var(--rose-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--rose-deep);
}

.site-description {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1em;
}

/* Navigation */
.main-navigation {
  text-align: center;
  margin-top: 20px;
}

.main-navigation ul {
  list-style: none;
  display: inline-flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-navigation a {
  color: var(--coffee-brown);
  text-decoration: none;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: all 0.3s ease;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rose-accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

/* Content Area */
.site-content {
  padding: 60px 0;
  min-height: 500px;
  overflow: visible;
  position: relative;
}

.site-content::after {
  content: "";
  display: table;
  clear: both;
}

.content-area {
  width: 70%;
  float: left;
  padding-right: 40px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Post Cards */
.post-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Featured Images */
.post-thumbnail {
  margin: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio fallback */
}

@supports (aspect-ratio: 16/9) {
  .post-thumbnail {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 16/9;
  }
}

.post-thumbnail a {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.post-thumbnail img,
.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-card .post-thumbnail a:hover img {
  transform: scale(1.05);
}

.post-card .entry-header,
.post-card .entry-content,
.post-card .entry-footer {
  padding: 0 40px;
}

.post-card .entry-header {
  padding-top: 40px;
}

.post-card .entry-footer {
  padding-bottom: 40px;
}

/* Fallback for posts without featured images */
.post-card .entry-content {
  padding: 0 40px 40px 40px;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-soft);
}

.post-card::before {
  content: '✦';
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--tea-gold);
  font-size: 20px;
}

.entry-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.entry-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.entry-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: var(--rose-accent);
}

.entry-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.entry-meta span::before {
  content: '◈';
  color: var(--rose-deep);
  font-size: 0.8em;
}

.entry-content {
  margin-bottom: 25px;
  line-height: 1.9;
}

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

.read-more {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--rose-accent), var(--rose-deep));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9em;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.read-more:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(184, 88, 97, 0.3);
}

/* Sidebar */
.widget-area {
  width: 30%;
  float: right;
  margin-bottom: 40px;
}

.widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px var(--shadow-soft);
}

.widget-title {
  font-size: 1.2em;
  color: var(--rose-accent);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rose-pink);
  position: relative;
}

.widget-title::after {
  content: '❀';
  position: absolute;
  right: 0;
  color: var(--rose-deep);
  opacity: 0.3;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rose-pink);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: var(--rose-accent);
}

/* Single Post */
.single-post {
  background: white;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px var(--shadow-soft);
  position: relative;
  overflow: visible;
}

.single-post .post-thumbnail {
  margin: 0 0 40px 0;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.single-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-post .entry-header,
.single-post .entry-content,
.single-post .entry-footer {
  padding: 0 40px;
}

.single-post .entry-header {
  padding-top: 40px;
}

.single-post .entry-footer {
  padding-bottom: 40px;
}

/* Ensure content has proper padding */
.single-post .entry-content {
  padding: 0 40px;
}

.single-post::before {
  content: '✦';
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--tea-gold);
  font-size: 20px;
  z-index: 1;
}

.single-post .entry-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--rose-pink);
}

.single-post .entry-title {
  font-size: 2.5em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* When no sidebar present, center content */
.no-sidebar .content-area {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  float: none;
  padding-right: 0;
}

.no-sidebar .single-post {
  max-width: 100%;
}

/* Post Navigation */
.post-navigation {
  margin: 40px 0;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px var(--shadow-soft);
}

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

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation a {
  display: block;
  padding: 20px;
  background: var(--rose-pink);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.post-navigation a:hover {
  background: white;
  border-color: var(--rose-accent);
  transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.85em;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.post-navigation .nav-title {
  display: block;
  font-size: 1.1em;
  color: var(--text-primary);
  font-weight: 600;
}

.post-navigation .nav-next {
  text-align: right;
}

/* Tags and Entry Footer */
.entry-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-soft);
}

.tags-links {
  margin: 20px 0;
}

.tags-links span {
  font-weight: 600;
  color: var(--coffee-brown);
  margin-right: 10px;
}

.tags-links a {
  display: inline-block;
  padding: 5px 15px;
  margin: 5px;
  background: var(--page-cream);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9em;
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}

.tags-links a:hover {
  background: var(--rose-accent);
  color: white;
  border-color: var(--rose-accent);
  transform: translateY(-2px);
}

/* Comments */
.comments-area {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.comments-title,
.comment-reply-title {
  font-size: 1.5em;
  color: var(--rose-accent);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--rose-pink);
}

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

.comment {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--page-cream);
  border-radius: 8px;
  border-left: 3px solid var(--rose-accent);
}

.comment-body {
  position: relative;
  padding-left: 70px;
  min-height: 70px;
}

.comment .avatar {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 3px solid var(--rose-accent);
}

.comment-author {
  font-weight: bold;
  color: var(--coffee-brown);
  margin-bottom: 5px;
}

.comment-author .fn {
  font-size: 1.1em;
  color: var(--rose-accent);
}

.comment-meta {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.comment-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.comment-meta a:hover {
  color: var(--rose-accent);
}

.reply {
  margin-top: 15px;
}

.reply a {
  display: inline-block;
  padding: 5px 15px;
  background: var(--rose-pink);
  color: var(--rose-accent);
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.reply a:hover {
  background: var(--rose-accent);
  color: white;
}

.children {
  list-style: none;
  margin-left: 30px;
  margin-top: 20px;
}

.children .comment {
  background: white;
  border-left-color: var(--tea-gold);
}

.comment-content {
  margin: 15px 0;
}

/* Comment Form Styling */
.comment-form {
  margin-top: 30px;
}

.comment-form p {
  margin-bottom: 25px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 8px;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Georgia', serif;
  transition: all 0.3s ease;
  background: var(--page-cream);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--rose-accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 105, 111, 0.1);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-notes {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 25px;
  padding: 15px;
  background: var(--rose-pink);
  border-radius: 8px;
  border-left: 3px solid var(--rose-accent);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: inline-block;
  width: 32%;
  margin-right: 2%;
}

.comment-form-url {
  margin-right: 0;
}

.comment-form-comment {
  clear: both;
  width: 100%;
}

.form-submit {
  margin-top: 30px;
  margin-bottom: 0;
}

.form-submit .submit {
  display: inline-block;
  padding: 12px 35px;
  background: linear-gradient(135deg, var(--rose-accent), var(--rose-deep));
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit .submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 88, 97, 0.3);
}

.required {
  color: var(--rose-deep);
}

/* Akismet Privacy Notice */
.akismet_comment_form_privacy_notice {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-top: 20px;
  padding: 15px;
  background: var(--page-cream);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.akismet_comment_form_privacy_notice a {
  color: var(--rose-accent);
  text-decoration: none;
}

.akismet_comment_form_privacy_notice a:hover {
  text-decoration: underline;
}

/* Logged-in users comment form */
.logged-in-as {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 15px;
  background: var(--rose-pink);
  border-radius: 8px;
}

.logged-in-as a {
  color: var(--rose-accent);
  text-decoration: none;
  font-weight: 600;
}

.logged-in-as a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--coffee-brown), var(--tea-gold));
  color: white;
  padding: 50px 0 30px;
  margin-top: 60px;
  position: relative;
  clear: both;
  width: 100%;
}

.site-footer::before {
  content: '"Finding extraordinary in ordinary life"';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rose-accent);
  color: white;
  padding: 10px 30px;
  border-radius: 30px;
  font-style: italic;
  font-size: 0.9em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: white;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9em;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: white;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px var(--shadow-soft);
}

.pagination a:hover,
.pagination .current {
  background: var(--rose-accent);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-area,
  .widget-area {
    width: 100%;
    float: none;
    padding: 0;
  }

  .widget-area {
    margin-top: 40px;
  }

  .site-title {
    font-size: 2em;
  }

  .post-card .entry-header,
  .post-card .entry-content,
  .post-card .entry-footer,
  .single-post .entry-header,
  .single-post .entry-content,
  .single-post .entry-footer {
    padding-left: 25px;
    padding-right: 25px;
  }

  .post-card .entry-header,
  .single-post .entry-header {
    padding-top: 25px;
  }

  .post-card .entry-footer,
  .single-post .entry-footer {
    padding-bottom: 25px;
  }

  .single-post .post-thumbnail {
    margin-bottom: 25px;
    height: 250px;
  }

  .post-thumbnail {
    padding-bottom: 66.67%; /* 3:2 aspect ratio on mobile */
  }

  @supports (aspect-ratio: 3/2) {
    .post-thumbnail {
      padding-bottom: 0;
      aspect-ratio: 3/2;
    }
  }

  .post-navigation .nav-links {
    flex-direction: column;
  }

  .post-navigation .nav-next {
    text-align: left;
    margin-top: 15px;
  }

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

  /* Comment form responsive */
  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .comments-area {
    padding: 25px;
  }

  .comment-reply-title {
    font-size: 1.3em;
  }
}

/* Special touches for Shilpa */
blockquote {
  border-left: 4px solid var(--rose-accent);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -5px;
  font-size: 60px;
  color: var(--rose-pink);
}

/* Book-inspired link style for reading lists */
.book-link {
  display: inline-block;
  padding: 5px 10px;
  background: linear-gradient(to right, transparent 50%, var(--tea-gold) 50%);
  background-size: 200% 100%;
  background-position: left;
  transition: background-position 0.3s ease;
}

.book-link:hover {
  background-position: right;
}

/* Coffee cup animation for loading */
@keyframes steam {
  0% { transform: translateY(0) scaleX(1); opacity: 0.8; }
  100% { transform: translateY(-20px) scaleX(1.5); opacity: 0; }
}

.loading-coffee::before {
  content: '☕';
  font-size: 40px;
  position: relative;
}

.loading-coffee::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: steam 2s infinite;
}