/* ===================================
   SINGLE POST STYLES
   =================================== */

/* Hero Section */
.single-post-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #880A8D 0%, #764ba2 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
}

/* Post Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #880A8D;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-badge i {
    font-size: 0.75rem;
}

/* Post Title */
.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 0.875rem;
}

.single-post-content {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Featured Video */
.featured-video {
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Featured Audio */
.featured-audio {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #880A8D 0%, #764ba2 100%);
    border-radius: 1rem;
    color: white;
}

.audio-player-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Hide default audio controls */
.featured-audio audio {
    display: none;
}

/* Custom Audio Player */
.custom-audio-player {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-pause-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.play-pause-btn.playing {
    background: rgba(255, 255, 255, 0.3);
}

.audio-progress {
    flex: 1;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.audio-time {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    min-width: 100px;
    justify-content: space-between;
}

.audio-volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.volume-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: opacity 0.3s ease;
}

.volume-btn:hover {
    opacity: 0.8;
}

.volume-slider {
    width: 60px;
}

.volume-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s ease;
}

/* Post Body */
.post-body {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-body h2 {
    font-size: 1.8rem;
    color: #2d3748;
}

.post-body h3 {
    font-size: 1.5rem;
    color: #4a5568;
}

.post-body h4 {
    font-size: 1.3rem;
    color: #718096;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border-left: 4px solid #880A8D;
    font-style: italic;
    color: #4a5568;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    text-align: center;
}

.page-links a {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background: #880A8D;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.page-links a:hover {
    background: #5a67d8;
}

/* Content Restriction Overlay */
.content-restriction-overlay {
    margin: 2rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%); 
    text-align: center;
    border: 2px dashed #cbd5e0;
}

.restriction-message {
    max-width: 400px;
    margin: 0 auto;
}

.restriction-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: #880A8D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.restriction-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.restriction-message p {
    color: #4a5568;
    margin-bottom: 0;
}

.restriction-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login,
.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: #880A8D;
    color: white;
}

.btn-login:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-register {
    background: transparent;
    color: #880A8D;
    border: 2px solid #880A8D;
}

.btn-register:hover {
    background: #880A8D;
    color: white;
}

.restriction-benefits {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #718096;
}

/* Post Tags */
.post-tags {
    padding: 2rem 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.post-tags h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #880A8D;
    color: white;
    border-color: #880A8D;
    transform: translateY(-2px);
}

.tag-item i {
    font-size: 0.75rem;
}

/* Social Share Bottom */
.social-share-bottom {
    padding: 2rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 2rem 1rem 1.5rem;
    }

    .post-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .post-meta {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .post-body {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .post-tags {
        padding: 1.5rem;
    }

    .social-share-bottom {
        padding: 1.5rem;
    }

    .audio-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .play-pause-btn {
        width: 2.5rem;
        height: 2.5rem;
    }

    .audio-time {
        min-width: 80px;
        font-size: 0.75rem;
    }

    .volume-slider {
        width: 50px;
    }

    .restriction-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-login,
    .btn-register {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

}

@media (max-width: 480px) {
    .post-categories {
        gap: 0.5rem;
    }

    .category-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .content-restriction-overlay {
        padding: 2rem 1rem;
    }

    .custom-audio-player {
        padding: 1rem;
    }
}
 

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: linear-gradient(135deg, #000 0%, #333 100%);
    }

    .category-badge,
    .tag-item {
        border-width: 2px;
    }

    .custom-audio-player {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .single-post-hero,
    .featured-audio,
    .social-share-bottom,
    .post-tags,
    .content-restriction-overlay {
        display: none;
    }

    .post-body {
        padding: 0;
        box-shadow: none;
    }

    .single-post-content {
        box-shadow: none;
        border: none;
    }
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 20px; 
}  

.share-label {
  font-weight: 600;
  color: #8b0a8f;
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px; 
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer; 
}

.share-btn:hover {
  color:#fff;
  transform: translateY(-3px) scale(1.1); 
}

.share-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.share-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #42a5f5);
}

.share-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #42a5f5);
}

.share-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #4caf50);
}

.share-btn.telegram {
  background: linear-gradient(135deg, #0088cc, #42a5f5);
}

.share-btn.copy-link {
  background: linear-gradient(135deg, #6c757d, #9e9e9e);
}
