/* Article Page Specific Styles */

.article-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
}

.article-hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease;
}

.article-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    opacity: 0.95;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Content */
.article-content {
    padding: 60px 0;
    background: var(--light-color);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.article-main {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.share-buttons span {
    font-weight: 600;
    color: var(--dark-color);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #bd081c;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: var(--gray-color);
}

/* Article Body */
.article-body {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

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

.article-body img {
    width: 100%;
    border-radius: 10px;
    margin: 30px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-color);
    font-size: 18px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.article-tags span {
    font-weight: 600;
    color: var(--dark-color);
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* Author Box */
.author-box {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    margin: 40px 0;
}

.author-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.author-bio {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Comments Section */
.comments-section {
    margin: 40px 0;
}

.comments-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.comment-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-comment {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-header h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.comment-date {
    font-size: 13px;
    color: var(--gray-color);
}

.comment p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.related-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.3;
}

.related-date {
    font-size: 13px;
    color: var(--gray-color);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.article-sidebar .widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
}

.search-form button {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #ff5252;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item::after {
    content: '\f16d';
    font-family: 'Font Awesome 5 Brands';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 36px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .article-main {
        padding: 20px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .article-body {
        font-size: 15px;
    }
}