/**
 * Dynamic Blog Styles
 * Custom styles for the dynamic technology blog
 */

/* Dynamic Content Controls */
.dynamic-content-controls {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    margin-bottom: 40px;
}

.dynamic-content-controls .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dynamic-content-controls .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
}

/* Category Filters */
.category-filters {
    margin-top: 25px;
}

.category-filters h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-category-filter {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.tech-category-filter:hover,
.tech-category-filter.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Post Source Badge */
.post-source-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Post Tags */
.post-tags {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Loading States */
.loading-indicator {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
}

.loading-indicator i {
    margin-right: 10px;
    color: #667eea;
}

.refresh-content.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Load More Button */
.load-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Trending Topics Widget */
.trending-topics-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.trending-topics-widget .widget-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.trending-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-topic-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.trending-topic-item:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
    border-left-color: #ff6b6b;
}

.trending-topic-item i {
    margin-right: 10px;
    color: #667eea;
    transition: color 0.3s ease;
}

.trending-topic-item:hover i {
    color: white;
}

/* No Content State */
.no-content {
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.no-content i {
    color: #6c757d;
    margin-bottom: 20px;
}

.no-content h4 {
    color: #495057;
    margin-bottom: 15px;
}

/* Notifications */
.tech-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-notification.success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.tech-notification.error {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0;
    }
    to { 
        transform: translateX(0); 
        opacity: 1;
    }
}

/* Enhanced Post Cards */
.single-blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.single-blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-featured-thumb {
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: #667eea;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #667eea;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dynamic-content-controls {
        padding: 20px;
        text-align: center;
    }
    
    .dynamic-content-controls .section-title {
        font-size: 2rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .tech-category-filter {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .trending-topics-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .dynamic-content-controls {
        padding: 15px;
    }
    
    .dynamic-content-controls .section-title {
        font-size: 1.8rem;
    }
    
    .tech-category-filter {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .post-featured-thumb {
        height: 200px;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
}

