/**
 * Widgets & Additional Sections Styles
 */

/* ========================================
   FEATURED BANNER / AD SPACE
   ======================================== */

.featured-banner-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.featured-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 24px;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.banner-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #6366f1;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #6366f1;
}

.banner-visual {
    position: relative;
    height: 200px;
}

.banner-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
}

/* ========================================
   DUAL CONTENT SECTION
   ======================================== */

.dual-content-section {
    padding: 5rem 0;
    background: white;
}

.dual-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Widget Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.widget-title svg {
    color: #6366f1;
}

.widget-more {
    font-size: 0.875rem;
    color: #6366f1;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget-more:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

/* ========================================
   LATEST POSTS WIDGET
   ======================================== */

.latest-posts-widget {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-post-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mini-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-post-item:hover {
    transform: translateX(4px);
}

.mini-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mini-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-post-item:hover .mini-post-thumb {
    transform: scale(1.05);
}

.mini-post-content {
    flex: 1;
    min-width: 0;
}

.mini-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mini-post-title a {
    color: #0f172a;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-post-item:hover .mini-post-title a {
    color: #6366f1;
}

.mini-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ========================================
   HOT TOPICS WIDGET
   ======================================== */

.hot-topics-widget {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hot-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.topic-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-color: #6366f1;
    transform: translateX(4px);
}

.topic-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.topic-tag:nth-child(1) .topic-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.topic-tag:nth-child(2) .topic-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.topic-tag:nth-child(3) .topic-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.topic-name {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
}

.topic-count {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ========================================
   AD SPACE
   ======================================== */

.ad-space {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #cbd5e1;
    position: relative;
    overflow: hidden;
}

.ad-space::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ad-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-content p {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ad-content p:first-of-type {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.ad-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.ad-link:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .featured-banner {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    
    .banner-visual {
        display: none;
    }
    
    .dual-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-banner {
        padding: 2rem;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .latest-posts-widget,
    .hot-topics-widget {
        padding: 1.5rem;
    }
    
    .mini-post-thumb {
        width: 60px;
        height: 60px;
    }
}
