/* TeddyColors Single Post Styles */
:root {
  --teddy-brown: #3c4a3e;
  --teddy-light-brown: #9fafa1;
  --teddy-pink: #8eeb9f;
  --teddy-green: #8eeb9f;
  --teddy-blue: #0097d0;
  --teddy-cream: #f8fbf9;
  --teddy-text: #3c4a3e;
  --teddy-hover: #00cdff;
  --teddy-shadow: rgba(60, 74, 62, 0.2);
  --teddy-primary: #0097d0;
  --teddy-secondary: #00cdff;
  --teddy-accent: #8eeb9f;
  --teddy-background: #f8fbf9;
  --teddy-button-hover: #00cdff;
}

/* Single Page Layout */
.creative-single-page {
    background: linear-gradient(135deg, var(--teddy-background) 0%, var(--teddy-light-brown) 100%);
    min-height: 100vh;
}

/* Floating Like Button */
.creative-floating-like-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--teddy-accent), #FF69B4);
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creative-floating-like-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 182, 193, 0.6);
}

.creative-floating-like-btn .like-count {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 14px;
}

/* Hero Section */
.creative-single-hero {
    background: linear-gradient(135deg, var(--teddy-primary) 0%, var(--teddy-secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.creative-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

.hero-content {
    color: white;
    z-index: 2;
    position: relative;
}

.creative-breadcrumb {
    margin-bottom: 20px;
}

.creative-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creative-breadcrumb a:hover {
    color: white;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.hero-rating {
    margin-top: 20px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-text {
    margin-left: 10px;
    opacity: 0.9;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 151, 208, 0.85), rgba(142, 235, 159, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.overlay-content span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Decorative Elements */
.creative-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.creative-star, .creative-heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.creative-star-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.creative-heart-1 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.creative-star-2 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Content Sections */
.creative-content-section,
.creative-interaction-section,
.creative-comments-section,
.creative-navigation-section,
.creative-related-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 3px solid var(--teddy-secondary);
}

.content-header h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--teddy-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table of Contents */
.creative-toc-wrapper {
    background: var(--teddy-background);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 5px solid var(--teddy-accent);
}

/* Main Content */
.creative-main-content {
    line-height: 1.8;
    color: var(--teddy-text);
}

.creative-main-content h1,
.creative-main-content h2,
.creative-main-content h3 {
    color: var(--teddy-primary);
    font-family: 'Comic Neue', cursive;
}

/* Action Buttons */
.creative-action-section {
    margin-top: 30px;
}

.creative-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--teddy-primary), var(--teddy-secondary));
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.creative-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.creative-action-btn i {
    font-size: 1.2rem;
}

/* Rate Box */
.creative-rate-box,
.creative-share-box {
	margin-top:20px;
}
.share-buttons>i{
	font-size: 2.5rem;
	color: var(--teddy-primary);
}
.rate-header h3,
.share-header h3 {
    font-family: 'Comic Neue', cursive;
    color: var(--teddy-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rate-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.creative-rate-btn {
    background: linear-gradient(135deg, var(--teddy-secondary), var(--teddy-accent));
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.2);
}

.creative-rate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.creative-rate-btn.like-btn:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.creative-rate-btn.dislike-btn:hover {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.creative-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.creative-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
}

.facebook-btn {
    background: linear-gradient(135deg, #3b5998, #4267B2);
}

.twitter-btn {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.pinterest-btn {
    background: linear-gradient(135deg, #bd081c, #e60023);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Navigation Buttons */
.creative-nav-btn {
    background: linear-gradient(135deg, var(--teddy-primary), var(--teddy-secondary));
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    max-width: 300px;
}

.creative-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
    color: white;
    text-decoration: none;
}

.creative-nav-btn span {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar */
.creative-sidebar-wrapper {
    position: sticky;
    top: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-meta,
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rate-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .creative-floating-like-btn {
        right: 10px;
        padding: 12px 15px;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .creative-share-btn {
        width: 45px;
        height: 45px;
    }
}

.color-box{
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    border: 2px solid var(--teddy-brown);
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--teddy-shadow);
    transition: all 0.3s ease;
}

.color-box:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px var(--teddy-shadow);
}

.img-favorite-wrapper {
  position: relative;
  display: inline-block;
  background: var(--teddy-cream);
  border-radius: 15px;
  padding: 10px;
  border: 2px solid var(--teddy-brown);
  box-shadow: 0 4px 8px var(--teddy-shadow);
  transition: all 0.3s ease;
}

.img-favorite-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--teddy-shadow);
}

.img-favorite-wrapper .favorite-heart {
  display: inline-block;
  position: static;
  margin-left: 0.8em;       
  font-size: 2rem;       
  color: var(--teddy-brown);            
  text-shadow: 2px 2px 4px var(--teddy-shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 182, 193, 0.5));
}

.img-favorite-wrapper .favorite-heart:hover {
  transform: scale(1.2);
  color: var(--teddy-pink);
}

.img-favorite-wrapper .favorite-heart.loved {
  color: #FF1493;
  animation: heartBeat 1s ease-in-out infinite alternate;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.wp-shortcode-web-stories-embed .wp-block-embed__wrapper{
	margin: auto;
	border-radius: 15px;
	overflow: hidden;
	border: 3px solid var(--teddy-brown);
	box-shadow: 0 8px 16px var(--teddy-shadow);
}

/* Single post content styling */
.single-post-content {
  background: var(--teddy-cream);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  border: 3px solid var(--teddy-brown);
  box-shadow: 0 8px 16px var(--teddy-shadow);
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
  color: var(--teddy-brown);
  font-family: 'Fredoka One', sans-serif;
  text-shadow: 2px 2px 4px var(--teddy-shadow);
}

.single-post-content p {
  color: var(--teddy-text);
  line-height: 1.8;
  font-size: 1.1rem;
}

@media print {
  html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact;
  }

  @page {
    size: A4;
    margin: 0;
  }

  /* Ẩn toàn bộ phần khác (nhưng vẫn giữ DOM để ảnh load) */
  body * {
    visibility: hidden !important;
  }

  /* Hiển thị lại phần cần in */
  .print-area,
  .print-area * {
    visibility: visible !important;
  }

  .print-area {
    position: absolute !important;
    top: 3%;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
    page-break-inside: avoid !important;
  }
}
