/**
 * Humbee News - Frontend Styles
 */

/* News Container */
.humbee-news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* News Grid - 2 columns by default */
.humbee-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

/* News Card */
.humbee-news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    padding: 16px;
}


/* Featured Badge */
.news-card-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Card Inner */
.news-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* News Image */
.news-card-image {
    position: relative;
    width: 100%;
    /* height: 200px; */
    overflow: hidden;
}
/* .news-image {
    padding: 0;
} */

.news-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

/* Channel Image Overlay */
/* .news-card-channel-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

.news-card-channel-overlay .channel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.news-card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0 ;
}

/* Channel Name (when no image) */
.news-card-channel {
    margin-bottom: 10px;
}

.news-card-channel .channel-name {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-description p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Meta Information */
.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-card-date {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

.news-card-external-indicator {
    color: #3498db;
}

.external-icon svg {
    width: 14px;
    height: 14px;
}

/* Load More Section */
.humbee-news-load-more {
    text-align: center;
    margin-top: 40px;
    display: block !important;
    visibility: visible !important;
}

.humbee-news-load-more-btn {
    background: transparent;
    border: 1px solid #8C8C8C !important;
    color: #333333 !important;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 160px;
}
.humbee-news-load-more-btn:hover {
    background: #E5E5E5 !important;
    border: 1px solid #8C8C8C !important;
    color: #333333 !important;
}


.humbee-news-load-more-btn:disabled {
    border: 1px solid #E5E5E5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.load-more-spinner {
    display: inline-block;
}

.spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Posts Message */
.humbee-news-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.humbee-news-no-posts p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    /* .humbee-news-container {
        padding: 15px 10px;
    } */
    
    .humbee-news-grid {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    /* .news-card-image {
        height: 180px;
    } */
    
    .news-card-content {
        padding: 20px 15px 15px;
    }
    
    .news-card-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .news-card-description p {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .humbee-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* .humbee-news-container {
        padding: 10px 5px;
    } */
    
    /* .news-card-image {
        height: 160px;
    } */
    
    .news-card-content {
        padding: 15px 12px 12px;
    }
    
    .news-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .news-card-description p {
        font-size: 12px;
    }
    
    .news-card-meta {
        padding-top: 12px;
    }
    
    .news-card-date {
        font-size: 11px;
    }
    
    /* .news-card-channel-overlay {
        width: 35px;
        height: 35px;
        bottom: 10px;
        left: 10px;
    } */
    
    .humbee-news-load-more {
        margin-top: 30px;
    }   
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .news-card-featured-badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .news-card-content {
        padding: 12px 10px 10px;
    }
    
    .news-card-title {
        font-size: 14px;
    }
}

/* Animation for new cards */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.news-card-title a:focus,
.humbee-news-load-more-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
/* News Category */
/* .news-card-category {
    margin-bottom: 8px;
} */

.category-name {
    display: inline-block;
    color: #333333;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Print styles */
@media print {
    .humbee-news-load-more,
    .news-card-featured-badge {
        display: none !important;
    }
    
    .humbee-news-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}