﻿body {
}

/* Content Detail Page Styles */

/* Main Content Wrapper */
.content-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

/* Breadcrumb */
.content-breadcrumb {
    padding: 1.5rem 2rem 0 2rem;
    margin-bottom: 1rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #adb5bd;
}

.breadcrumb-list a {
    color: var(--primary-color, #FFA914);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #e8960b;
}

.breadcrumb-list .current {
    color: #6c757d;
    font-weight: 500;
}

/* Content Header */
.content-header {
    padding: 1rem 2rem 2rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.content-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: "DM Serif Text", serif;
}

.content-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.content-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.content-date i {
    color: var(--primary-color, #FFA914);
}

.content-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-tags i {
    color: var(--primary-color, #FFA914);
    font-size: 0.875rem;
}

.content-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* Content Image */
.content-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.content-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.content-image-placeholder i {
    font-size: 4rem;
}

/* Content Body */
.content-body {
    padding: 2rem;
}

.content-text {
    line-height: 1.8;
    color: #333333;
    font-size: 1.05rem;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.content-text h1 { font-size: 2rem; }
.content-text h2 { font-size: 1.75rem; }
.content-text h3 { font-size: 1.5rem; }
.content-text h4 { font-size: 1.25rem; }

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text ul,
.content-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.content-text blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color, #FFA914);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Q&A Section */
.content-qa-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.qa-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: "DM Serif Text", serif;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qa-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.qa-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-question {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.qa-question:hover {
    background: #f8f9fa;
}

.qa-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.qa-icon {
    color: var(--primary-color, #FFA914);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.qa-item.active .qa-icon {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.qa-item.active .qa-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.qa-answer-content {
    color: #495057;
    line-height: 1.6;
}

/* Steps Section */
.content-steps-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.steps-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-family: "DM Serif Text", serif;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color, #FFA914);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Related Content Section */
.related-content-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-content-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
    font-family: "DM Serif Text", serif;
}

.related-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-content-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-content-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-content-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-content-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.related-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-content-item:hover .related-content-image img {
    transform: scale(1.05);
}

.related-content-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.related-content-placeholder i {
    font-size: 2rem;
}

.related-content-info {
    padding: 1.25rem;
}

.related-content-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content-date {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Error State */
.content-error-state {
    text-align: center;
    padding: 4rem 0;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.error-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.error-content h1 {
    font-size: 1.75rem;
    color: #495057;
    margin-bottom: 1rem;
}

.error-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-detail-wrapper {
        margin: 0 1rem 3rem 1rem;
    }
    
    .content-header,
    .content-body {
        padding: 1.5rem;
    }
    
    .content-breadcrumb {
        padding: 1.25rem 1.5rem 0 1.5rem;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .related-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .content-detail-wrapper {
        margin: 0 0.5rem 2rem 0.5rem;
        border-radius: 12px;
    }
    
    .content-header,
    .content-body {
        padding: 1.25rem;
    }
    
    .content-breadcrumb {
        padding: 1rem 1.25rem 0 1.25rem;
    }
    
    .content-title {
        font-size: 1.75rem;
    }
    
    .content-subtitle {
        font-size: 1rem;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .content-tags {
        width: 100%;
    }
    
    .related-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-item {
        gap: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .qa-question {
        padding: 1.25rem;
    }
    
    .qa-question-text {
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .content-detail-wrapper {
        margin: 0 0 2rem 0;
        border-radius: 0;
    }
    
    .content-header,
    .content-body {
        padding: 1rem;
    }
    
    .content-breadcrumb {
        padding: 0.75rem 1rem 0 1rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .related-content-image {
        height: 140px;
    }
    
    .related-content-info {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .content-breadcrumb,
    .related-content-section {
        display: none;
    }
    
    .content-detail-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .content-title {
        color: #000;
    }
    
    .content-text {
        color: #000;
    }
}

/* Animation for Q&A items */
.qa-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all interactive elements */
* {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.qa-question:focus,
.related-content-link:focus,
.breadcrumb-list a:focus {
    outline: 2px solid var(--primary-color, #FFA914);
    outline-offset: 2px;
}

/* Additional UI Components for JavaScript functionality */

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.reading-time i {
    color: var(--primary-color, #FFA914);
}

/* Copy Link Button */
.copy-link-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.copy-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.copy-link-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #adb5bd;
    color: #343a40;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-link-btn:hover::before {
    left: 100%;
}

.copy-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-link-btn.copied {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Social Sharing */
.social-share-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.share-label {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
    margin-right: 0.5rem;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    color: rgb(0 0 0);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.social-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: rgb(0 0 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.social-share-btn:hover::before {
    opacity: 1;
}

.social-share-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.social-share-btn.twitter { 
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-share-btn.facebook { 
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
}

.social-share-btn.linkedin { 
    background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.social-share-btn.whatsapp { 
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #FFA914) 0%, #e8960b 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color, #FFA914);
}

.table-of-contents h3 {
    color: #1a1a1a;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.375rem 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color, #FFA914);
    border-bottom-color: var(--primary-color, #FFA914);
}

.toc-h1 { padding-left: 0; font-weight: 600; }
.toc-h2 { padding-left: 1rem; }
.toc-h3 { padding-left: 2rem; }
.toc-h4 { padding-left: 3rem; }

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color, #FFA914);
}

.notification.show {
    transform: translateX(0);
}

.notification.notification-success {
    border-left-color: #28a745;
}

.notification.notification-error {
    border-left-color: #dc3545;
}

/* Mobile responsive adjustments for new components */
@media (max-width: 767px) {
    .social-share-container {
        gap: 1rem;
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .social-share-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .copy-link-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin-top: 1rem;
    }
    
    .share-label {
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .table-of-contents {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Content Share Section Styles */
.content-share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.share-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
    justify-content: center;
}

.share-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.share-text {
    display: block;
}

/* Platform Specific Styles */
.facebook-btn {
    background-color: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background-color: #166fe5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.twitter-btn {
    background-color: #1da1f2;
    color: white;
}

.twitter-btn:hover {
    background-color: #1a91da;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.linkedin-btn {
    background-color: #0077b5;
    color: white;
}

.linkedin-btn:hover {
    background-color: #006ba1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #22c55e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Responsive Design for Share Buttons */
@media (max-width: 767px) {
    .content-share-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .social-share-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .share-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .share-btn {
        padding: 0.875rem 1.25rem;
        min-width: auto;
    }
    
    .share-section-title {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
    }
}
