/* Article Detail Page Styles */
.article-detail {
    background-color: #1a1a1a;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #1db954;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1ed760;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #444;
}

.breadcrumb .current {
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    display: inline-block;
    vertical-align: bottom;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1db954, #1ed760);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(29, 185, 84, 0.5);
}

/* Reading Time */
.reading-time {
    margin-left: 15px;
}

.reading-time span {
    background-color: #0f0f0f;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #1db954;
}

.article-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: -100px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #1a1a1a 0%, transparent 100%);
}

.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.article-header {
    text-align: center;
    padding: 40px 0;
}

.article-header .category-tag {
    display: inline-block;
    background-color: #1db954;
    color: #000;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

.article-header .separator {
    color: #444;
}

/* Article Actions (Like/Bookmark) */
.article-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.like-btn,
.bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0f0f0f;
    border: 2px solid #333;
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover,
.bookmark-btn:hover {
    border-color: #1db954;
    transform: translateY(-2px);
}

.like-btn .icon,
.bookmark-btn .icon {
    font-size: 18px;
}

.like-btn.liked {
    background-color: #1db954;
    border-color: #1db954;
    color: #000;
    animation: pulse 0.3s ease;
}

.bookmark-btn.bookmarked {
    background-color: #3498db;
    border-color: #3498db;
    color: #fff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.like-count {
    min-width: 20px;
    text-align: center;
}

.article-body {
    background-color: #0f0f0f;
    padding: 50px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.article-body .lead {
    font-size: 22px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: 300;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.article-body .content {
    font-size: 18px;
    line-height: 1.8;
    color: #bbb;
}

.article-body .content p {
    margin-bottom: 25px;
}

/* Article Tags */
.article-tags {
    margin-top: 30px;
    padding: 20px;
    background-color: #0a0a0a;
    border-radius: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.article-tags strong {
    color: #1db954;
    font-size: 14px;
}

.article-tags .tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #222;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background-color: #1db954;
    color: #000;
}

/* Social Share */
.social-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #333;
}

.social-share h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn.twitter {
    background-color: #1DA1F2;
    color: #fff;
}

.share-btn.twitter:hover {
    background-color: #1a8cd8;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: #fff;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
}

.share-btn.linkedin {
    background-color: #0A66C2;
    color: #fff;
}

.share-btn.linkedin:hover {
    background-color: #095196;
}

.share-btn.copy {
    background-color: #333;
    color: #e0e0e0;
}

.share-btn.copy:hover {
    background-color: #1db954;
    color: #000;
}

/* Article Tags */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.article-tags strong {
    color: #888;
    font-size: 14px;
    margin-right: 10px;
}

.article-tags .tag {
    display: inline-block;
    background-color: #0f0f0f;
    color: #1db954;
    padding: 6px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background-color: #1db954;
    color: #000;
    border-color: #1db954;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-bottom: 60px;
}

.related-articles h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.related-card {
    background-color: #0f0f0f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-date {
    font-size: 12px;
    color: #666;
}

/* Logo link styling */
.logo a {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .breadcrumb .current {
        max-width: 150px;
    }

    .article-actions {
        flex-direction: column;
    }

    .like-btn,
    .bookmark-btn {
        width: 100%;
        justify-content: center;
    }

    .article-hero {
        height: 350px;
        margin-bottom: -50px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-body {
        padding: 30px 25px;
    }

    .article-body .lead {
        font-size: 18px;
    }

    .article-body .content {
        font-size: 16px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: 250px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .article-body {
        padding: 20px 15px;
    }

    .article-body .lead {
        font-size: 16px;
    }
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #222;
}

.comments-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.comment-notice {
    background-color: rgba(29, 185, 84, 0.1);
    border-left: 4px solid #1db954;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.comment-notice p {
    color: #1db954;
    font-size: 14px;
    font-weight: 600;
}

.comment-form-wrapper {
    background-color: #0f0f0f;
    border: 2px solid #222;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.comment-form-wrapper h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.comment-form .form-group {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    color: #1db954;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1db954;
}

.btn-submit-comment {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1db954, #17a047);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit-comment:hover {
    background: linear-gradient(135deg, #1ed760, #1db954);
    transform: translateY(-2px);
}

.comments-list {
    margin-top: 40px;
}

.comment-item {
    background-color: #0f0f0f;
    border: 2px solid #222;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1db954, #17a047);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.comment-author strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.comment-date {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.comment-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

@media (max-width: 768px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}
