/**
 * Widget Styles
 *
 * @package HaberPro
 */

/* Popüler Haberler Widget */
.haberpro-popular-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-popular-post-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.haberpro-popular-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-popular-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s ease;
}

.haberpro-popular-post-link:hover {
    opacity: 0.8;
}

.haberpro-popular-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.haberpro-popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.haberpro-popular-post-content {
    flex: 1;
    min-width: 0;
}

.haberpro-popular-post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.haberpro-popular-post-views {
    font-size: 12px;
    color: #999;
}

/* En Çok Okunanlar Widget */
.haberpro-most-read-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-most-read-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.haberpro-most-read-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-most-read-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s ease;
}

.haberpro-most-read-link:hover {
    opacity: 0.8;
}

.haberpro-most-read-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.haberpro-most-read-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.haberpro-most-read-content {
    flex: 1;
    min-width: 0;
}

.haberpro-most-read-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.haberpro-most-read-views {
    font-size: 12px;
    color: #999;
}

/* Son Yorumlar Widget */
.haberpro-recent-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-recent-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.haberpro-recent-comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-recent-comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.haberpro-recent-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.haberpro-recent-comment-content {
    flex: 1;
    min-width: 0;
}

.haberpro-recent-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.haberpro-recent-comment-author strong {
    font-size: 14px;
    color: #333;
}

.haberpro-recent-comment-date {
    font-size: 12px;
    color: #999;
}

.haberpro-recent-comment-text {
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.haberpro-recent-comment-post-link {
    font-size: 12px;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.haberpro-recent-comment-post-link:hover {
    color: #005177;
}

/* ============================================
   YENİ WIDGET'LAR - MODERN VE PROFESYONEL
   ============================================ */

/* Trending Posts Widget */
.haberpro-trending-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-trending-post-item {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    transition: transform 0.2s ease;
}

.haberpro-trending-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-trending-post-item:hover {
    transform: translateX(5px);
}

.haberpro-trending-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.haberpro-trending-post-link:hover {
    color: #FF0000;
}

.haberpro-trending-post-image {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.haberpro-trending-post-link:hover .haberpro-trending-post-image {
    transform: scale(1.05);
}

.haberpro-trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.haberpro-trending-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.haberpro-trending-post-content {
    flex: 1;
    min-width: 0;
}

.haberpro-trending-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s ease;
}

.haberpro-trending-post-link:hover .haberpro-trending-post-title {
    color: #FF0000;
}

.haberpro-trending-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.haberpro-trending-post-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.haberpro-trending-post-time {
    color: #999;
}

/* Category Posts Widget */
.haberpro-category-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-category-post-item {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    transition: transform 0.2s ease;
}

.haberpro-category-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-category-post-item:hover {
    transform: translateX(5px);
}

.haberpro-category-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.haberpro-category-post-link:hover {
    color: #FF0000;
}

.haberpro-category-post-image {
    flex-shrink: 0;
    width: 85px;
    height: 65px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.haberpro-category-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.haberpro-category-post-link:hover .haberpro-category-post-image img {
    transform: scale(1.08);
}

.haberpro-category-post-content {
    flex: 1;
    min-width: 0;
}

.haberpro-category-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s ease;
}

.haberpro-category-post-link:hover .haberpro-category-post-title {
    color: #FF0000;
}

.haberpro-category-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.haberpro-category-post-meta time {
    color: #999;
}

.haberpro-category-post-author {
    color: #666;
}

/* Recent Posts Widget */
.haberpro-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.haberpro-recent-post-item {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    transition: transform 0.2s ease;
}

.haberpro-recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.haberpro-recent-post-item:hover {
    transform: translateX(5px);
}

.haberpro-recent-post-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.haberpro-recent-post-link:hover {
    color: #FF0000;
}

.haberpro-recent-post-image {
    flex-shrink: 0;
    width: 85px;
    height: 65px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.haberpro-recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.haberpro-recent-post-link:hover .haberpro-recent-post-image img {
    transform: scale(1.08);
}

.haberpro-recent-post-content {
    flex: 1;
    min-width: 0;
}

.haberpro-recent-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s ease;
}

.haberpro-recent-post-link:hover .haberpro-recent-post-title {
    color: #FF0000;
}

.haberpro-recent-post-meta {
    font-size: 12px;
    color: #999;
}

.haberpro-recent-post-meta time {
    color: #999;
}

/* Newsletter Widget */
.haberpro-newsletter-widget {
    padding: 20px;
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    border-radius: 12px;
    color: #fff;
    text-align: center;
}

.haberpro-newsletter-widget-description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.haberpro-newsletter-widget .haberpro-newsletter-form {
    background: transparent;
    padding: 0;
}

.haberpro-newsletter-widget .haberpro-newsletter-title {
    display: none;
}

.haberpro-newsletter-widget .haberpro-newsletter-description {
    display: none;
}

.haberpro-newsletter-widget .haberpro-newsletter-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.haberpro-newsletter-widget .haberpro-newsletter-email {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}

.haberpro-newsletter-widget .haberpro-newsletter-email::placeholder {
    color: #999;
}

.haberpro-newsletter-widget .haberpro-newsletter-submit {
    background: #fff;
    color: #FF0000;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.haberpro-newsletter-widget .haberpro-newsletter-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Social Media Widget */
.haberpro-social-media-widget {
    padding: 10px 0;
}

.haberpro-social-media-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.haberpro-social-media-list li {
    margin: 0;
    padding: 0;
}

.haberpro-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.haberpro-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.haberpro-social-link svg {
    width: 20px;
    height: 20px;
}

.haberpro-social-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.haberpro-social-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.haberpro-social-instagram:hover {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: #fff;
}

.haberpro-social-youtube:hover {
    background: #ff0000;
    color: #fff;
}

.haberpro-social-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

/* Widget Empty State */
.haberpro-widget-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 0;
}

.haberpro-widget-info {
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #0073aa;
    font-size: 12px;
    color: #666;
    margin: 10px 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .haberpro-popular-post-image,
    .haberpro-most-read-image,
    .haberpro-trending-post-image,
    .haberpro-category-post-image,
    .haberpro-recent-post-image {
        width: 60px;
        height: 45px;
    }
    
    .haberpro-popular-post-title,
    .haberpro-most-read-title,
    .haberpro-trending-post-title,
    .haberpro-category-post-title,
    .haberpro-recent-post-title {
        font-size: 13px;
    }
    
    .haberpro-social-media-list {
        gap: 8px;
    }
    
    .haberpro-social-link {
        width: 40px;
        height: 40px;
    }
    
    .haberpro-newsletter-widget {
        padding: 16px;
    }
}

