/* ==========================================
   Article Page Styles
   ========================================== */

/* Article Hero Section */
.article-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-date,
.article-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
}

.article-date i,
.article-author i {
    font-size: 13px;
}

.article-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--white-color);
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Article Content Section */
.article-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white-color), var(--light-color));
}

.article-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.article-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.article-main {
    background: var(--white-color);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary-color);
}

.widget-title-accent {
    border-bottom-color: var(--accent-color);
}

.widget-title-accent i {
    color: var(--accent-color);
}

.widget-title-success {
    border-bottom-color: var(--secondary-color);
}

.widget-title-success i {
    color: var(--secondary-color);
}

/* Sidebar Cards */
.sidebar-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-card:hover::before {
    transform: scaleY(1);
}

.sidebar-card:hover {
    border-color: var(--primary-color);
    transform: translateX(-6px);
    box-shadow: 0 8px 20px rgba(210, 93, 56, 0.15);
}

.sidebar-card-success::before {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.sidebar-card-success:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.2);
}

.sidebar-card-number {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(210, 93, 56, 0.3);
    transition: all 0.3s ease;
}

.sidebar-card-success .sidebar-card-number {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.sidebar-card:hover .sidebar-card-number {
    transform: scale(1.1) rotate(5deg);
}

.sidebar-card-content {
    flex: 1;
    min-width: 0;
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card:hover .sidebar-card-title {
    color: var(--primary-color);
}

.sidebar-card-success:hover .sidebar-card-title {
    color: var(--secondary-color);
}

.sidebar-card-date {
    font-size: 11px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-card-date i {
    font-size: 10px;
}

.sidebar-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(210, 93, 56, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-card-success .sidebar-card-arrow {
    background: rgba(212, 163, 115, 0.16);
    color: var(--secondary-color);
}

.sidebar-card:hover .sidebar-card-arrow {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateX(-4px);
}

.sidebar-card-success:hover .sidebar-card-arrow {
    background: var(--secondary-color);
}

/* Popular Tags */
.popular-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(139, 58, 32, 0.3);
}

.popular-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 58, 32, 0.4);
}

.tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-content h2 {
    font-size: clamp(22px, 3vw, 26px);
    border-right: 4px solid var(--primary-color);
    padding-right: 16px;
}

.article-content h3 {
    font-size: clamp(19px, 2.5vw, 22px);
}

.article-content h4 {
    font-size: clamp(17px, 2vw, 19px);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, rgba(210, 93, 56, 0.05), rgba(139, 58, 32, 0.05));
    border-radius: 12px;
    font-style: italic;
    color: var(--dark-color);
}

.article-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--secondary-color);
}

.article-content code {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e11d48;
}

.article-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Article Tags */
.article-tags {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(210, 93, 56, 0.12);
}

.article-tags h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tags h4 i {
    color: var(--primary-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(210, 93, 56, 0.1), rgba(139, 58, 32, 0.15));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

a.tag {
    text-decoration: none;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 93, 56, 0.3);
}

/* Article Share */
.article-share {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid rgba(210, 93, 56, 0.12);
}

.article-share h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-share h4 i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-color), var(--whatsapp-color));
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Related Articles Section */
.related-articles {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--light-color), var(--white-color));
}

/* Article Photos Section */
.article-photos-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.section-title-inner {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-inner i {
    color: var(--primary-color);
}

/* Photos Grid - 2 Columns */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.photo-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(210, 93, 56, 0.15);
}

.photo-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: block;
    cursor: zoom-in;
}

.photo-card-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.photo-card:hover .photo-card-image::after {
    opacity: 0.8;
}

.photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-card-image img {
    transform: scale(1.05);
}

.photo-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-card-title-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.photo-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.photo-card-title-link:hover .photo-card-title {
    color: var(--primary-color);
    text-decoration: underline;
}

.photo-card-desc {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .article-main-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .sidebar-card {
        padding: 14px;
    }
    
    .sidebar-card-number {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .sidebar-card-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 400px;
        padding-bottom: 30px;
    }
    
    .article-photos-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .section-title-inner {
        font-size: 20px;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-card-image {
        height: 250px;
    }
    
    .photo-card-content {
        padding: 20px;
    }
    
    .photo-card-title {
        font-size: 16px;
    }
    
    .photo-card-desc {
        font-size: 14px;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .article-date,
    .article-author {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .article-date i,
    .article-author i {
        font-size: 11px;
    }
    
    .article-section {
        padding: 40px 0;
    }
    
    .article-main {
        padding: 25px 18px;
        border-radius: 16px;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .article-content code {
        font-size: 13px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .related-articles {
        padding: 40px 0;
    }
    
    .article-tags h4,
    .article-share h4 {
        font-size: 15px;
    }
    
    .tag {
        font-size: 13px;
        padding: 6px 14px;
    }
}
