/**
 * Single/Post Page Component
 * Post hero, content, sidebar, share buttons
 */

/* Post Hero */
.post-hero {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-bottom: 0;
}

.post-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
}

.post-hero-content .entry-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.post-hero-content .tag {
  margin-bottom: 15px;
}

.post-hero-content .post-date {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  display: block;
}

/* Single Container */
.single-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-md);
}

.entry-content {
  padding: 50px 40px;
  line-height: 2;
}

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

.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin: 40px 0 20px;
}

.entry-content h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 30px 0 15px;
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0;
  padding-left: 2em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.entry-content a:hover {
  opacity: 0.8;
}

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 40px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.share-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

.share-twitter {
  background-color: #1DA1F2;
}

.share-facebook {
  background-color: #1877F2;
}

.share-line {
  background-color: #00B900;
}

/* Responsive */
@media (max-width: 768px) {
  .post-hero {
    min-height: 300px;
  }

  .post-hero-content .entry-title {
    font-size: 1.8rem;
  }

  .single-container {
    margin-top: -30px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .entry-content {
    padding: 30px 20px;
  }

  .share-buttons {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 15px;
  }

  .share-label {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
  }
}