/* Modern News Page Styling */
/* Enhanced layout and design for news.php page */

/* News Detail Section */
.news-detail-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Breadcrumb Styling */
.news-detail-section .breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.news-detail-section .breadcrumb-item a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-detail-section .breadcrumb-item a:hover {
    color: #b02a37;
}

.news-detail-section .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Main News Card */
.news-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.news-card .card-img-top {
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    width: 100%;
    min-height: 400px;
}

/* Video Container */
.video-embed-container {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    width: 100%;
    background: #000;
}

.video-embed-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 20px 20px 0 0;
    display: block;
}

.video-embed-container video {
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 20px 20px 0 0;
    display: block;
    background: #000;
}

/* Video Thumbnail with Play Button */
.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.video-thumbnail img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover::before {
    opacity: 0.8;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
}

.video-play-button i {
    color: white;
    font-size: 32px;
    margin-left: 8px;
}

.video-thumbnail:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(220, 53, 69, 1);
}

/* Image Container */
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* News Card Body */
.news-card .card-body {
    padding: 2rem;
}

/* Category Badge */
.news-card .badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Source Badge */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.source-badge i {
    color: white !important;
}

.source-badge span {
    color: #000000 !important;
}

.source-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* News Title */
.news-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* News Meta Info */
.news-card .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* News Content */
.news-card .card-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.news-card .card-text p {
    margin-bottom: 1rem;
}

/* Share Buttons */
.share-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8ecf 100%);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.share-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.share-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-email {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

/* Tags Section */
.tags-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e9ecef;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.tag-cloud .badge:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    transform: translateY(-2px);
}

/* Sidebar Widget Modern Styling */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 50%, #dc3545 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget h3 i {
    color: #dc3545;
    font-size: 1.1rem;
}

/* Weather Widget - Modern Design */
.weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.weather-widget .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.weather-widget .card-body {
    padding: 0;
    position: relative;
    z-index: 1;
}

.weather-widget h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.weather-widget .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.weather-widget h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.weather-widget .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.weather-widget .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Related News - Modern Card Design */
.sidebar-widget .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-widget .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-widget .card img {
    height: 100px;
    object-fit: cover;
    width: 100%;
}

.sidebar-widget .card-body {
    padding: 1rem;
}

.sidebar-widget .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sidebar-widget .card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-widget .card-title a:hover {
    color: #dc3545;
}

.sidebar-widget .card-text small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Newsletter Widget */
.newsletter-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
}

.newsletter-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.newsletter-form .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-section h4 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

/* Comment Form */
.comment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.comment-form .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.comment-form .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Comment Items */
.comment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.comment-avatar .avatar-circle {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    font-weight: 700;
    font-size: 1.1rem;
}

.comment-author {
    color: #212529;
    font-weight: 600;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
}

/* Reply Items */
.reply-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.reply-avatar .avatar-circle {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-card .card-body {
        padding: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .news-detail-section {
        padding: 1rem 0;
    }
    
    .news-card .card-body {
        padding: 1.25rem;
    }
    
    .news-card .card-title {
        font-size: 1.4rem;
    }
    
    .news-card .card-img-top {
        min-height: 250px;
    }
    
    .video-embed-container iframe {
        height: 300px;
    }
    
    .video-thumbnail img {
        height: 300px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 16px;
    }
    
    .sidebar-widget h3 {
        font-size: 1.1rem;
    }
    
    .comments-section {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .comment-form {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .news-card .card-title {
        font-size: 1.25rem;
    }
    
    .news-card .card-text {
        font-size: 1rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button i {
        font-size: 24px;
    }
    
    .sidebar-widget {
        padding: 0.875rem;
    }
    
    .weather-widget h4 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c82333 0%, #e65555 100%);
}
