/* Trend Hub Frontend Styles */

.trend-hub-video-container {
    max-width: 100%;
    margin: 20px 0;
}

.trend-hub-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.trend-hub-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.trend-hub-description {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trend-hub-description p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Article Container */
.trend-hub-article-container {
    max-width: 100%;
    margin: 20px 0;
}

.trend-hub-article-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.trend-hub-article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.trend-hub-article-excerpt {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.trend-hub-article-excerpt p {
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.trend-hub-article-source {
    margin: 15px 0;
}

.trend-hub-read-more {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,115,170,0.3);
}

.trend-hub-read-more:hover {
    background: linear-gradient(135deg, #005177, #003d5c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.4);
    color: #fff;
}

/* Source Notice */
.trend-hub-source-notice {
    margin-top: 20px;
    padding: 12px 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
}

.trend-hub-source-notice p {
    margin: 0;
    color: #856404;
}

/* Grid Display */
.trend-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.trend-hub-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.trend-hub-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.trend-hub-item h3 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
}

.trend-hub-item h3 a {
    color: #333;
    text-decoration: none;
}

.trend-hub-item h3 a:hover {
    color: #0073aa;
}

/* Badges */
.trend-hub-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 15px 15px;
}

.badge-youtube { background: #ff0000; color: #fff; }
.badge-rss { background: #ff6600; color: #fff; }

/* Attribution / Copyright Notice */
.trend-hub-attribution {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
}

.trend-hub-attribution p {
    margin: 0;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
}

.trend-hub-attribution a {
    color: #92400e;
    font-weight: 700;
    text-decoration: underline;
}

/* AI Analysis Sections */
.trend-hub-analysis h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin: 24px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f1;
}

.trend-hub-analysis h2:first-child { margin-top: 0; }

.trend-hub-analysis p {
    line-height: 1.8;
    color: #333;
    margin: 0 0 14px;
}

/* Update Notice */
.trend-hub-update-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: .3px;
}

/* RTL Support */
.rtl .trend-hub-source-notice {
    border-left: none;
    border-right: 4px solid #ffc107;
    border-radius: 8px 0 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .trend-hub-grid {
        grid-template-columns: 1fr;
    }
    
    .trend-hub-article-image img {
        max-height: 300px;
    }
    
    .trend-hub-read-more {
        width: 100%;
        text-align: center;
    }
}
