/* news.css - Xəbər səhifəsi üçün xüsusi CSS */

.news-detail-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.breadcrumb-custom {
    background: none;
    padding: 15px 25px 10px;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-custom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.news-header {
    padding: 0 25px;
}

.news-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Paylaşım bölməsi */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.share-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #6c757d; }

/* Şrift kontrolları */
.font-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.font-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-right: 10px;
}

.font-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.font-btn:hover {
    background: var(--primary-color);
    color: white;
}

.main-image-container {
    margin: 0 -25px 20px;
    position: relative;
    cursor: pointer;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
}

.news-content {
    padding: 0 25px 20px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    transition: font-size 0.3s ease;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-content img:hover {
    transform: scale(1.02);
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2, .news-content h3 {
    color: var(--dark-color);
    margin: 25px 0 15px;
    font-weight: 700;
}

.additional-images-section {
    background: var(--secondary-color);
    margin: 0 -25px;
    padding: 25px 25px;
    border-top: 1px solid #e9ecef;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.thumbnail-container {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-container:hover .thumbnail {
    transform: scale(1.05);
}

.thumbnail-container:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 1.5rem;
}

.similar-news {
    margin-top: 40px;
}

.similar-news h3 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.similar-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.similar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-card:hover img {
    transform: scale(1.05);
}

.similar-card-body {
    padding: 15px;
}

.similar-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.similar-card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 15px;
    padding: 15px 25px;
    border-top: 1px solid #e9ecef;
    background: var(--secondary-color);
}

.btn-custom {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-custom.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-custom.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .breadcrumb-custom,
    .news-header,
    .news-content,
    .action-buttons {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .news-header h1 {
        font-size: 1.8rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }
    
    .main-image-container {
        margin: 0 -20px 15px;
    }
    
    .news-content {
        font-size: 1.05rem;
        padding: 0 20px 15px;
    }
    
    .additional-images-section {
        margin: 0 -20px;
        padding: 15px 20px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .share-section,
    .font-controls {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-custom {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-header h1 {
        font-size: 1.5rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .similar-card img {
        height: 150px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .news-header h1 {
        font-size: 1.3rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail {
        height: 120px;
    }
    
    .font-controls {
        justify-content: center;
    }
    
    .btn-custom {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}