/* Article Detail Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #0a0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.65rem;
    opacity: 0.4;
}

.breadcrumb span {
    color: #d1d5db;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article Hero Header */
.article-hero {
    position: relative;
    padding: 180px 0 100px;
    background: #050a14;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.author-info .name {
    color: #fff;
    font-weight: 600;
}

.author-info .role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Main Layout */
.article-layout {
    display: flex;
    gap: 60px;
    padding: 60px 0 100px;
    position: relative;
}

/* Article Body */
.article-main {
    flex: 1;
    max-width: 800px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body .lead {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 50px 0 25px;
    position: relative;
    display: inline-block;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.article-body ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: var(--text-muted);
}

.article-body strong {
    color: #fff;
}

.highlight-box {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.article-image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin: 30px 0 10px;
    display: block;
    object-fit: cover;
    /* Fallback gradient if src fails or as overlay */
}

.img-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Actions */
.article-actions {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
}

/* Sidebar */
.article-sidebar {
    width: 350px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.search-box input[type="text"]:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Related List */
.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 20px;
}

.related-list a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--transition);
}

.related-list .rel-title {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-list .rel-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.related-list a:hover .rel-title {
    color: var(--primary-color);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }
    
    .article-sidebar {
        width: 100%;
        position: static;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb span {
        max-width: 180px;
    }

    .article-hero {
        padding: 120px 0 60px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}