/**
 * Blog Auto-Update Styling
 * Styles for trending badges, tools display, and trending topics
 */


/* Trending Badge */

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e40f15, #ff6b6b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(228, 15, 21, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-glow {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(228, 15, 21, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(228, 15, 21, 0.6);
    }
}


/* Blog Tools Display */

.blog-tools {
    margin: 12px 0;
    padding: 10px;
    background: rgba(0, 102, 255, 0.08);
    border-left: 3px solid #0066ff;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.blog-tools strong {
    color: #0066ff;
    font-weight: 600;
}

.blog-card {
    position: relative;
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}


/* Trending Topics List */

.trending-topics-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f8 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.trending-topics-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0066ff;
}

.trending-topics-list {
    display: grid;
    gap: 15px;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e40f15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trending-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trending-item .rank {
    display: inline-block;
    background: linear-gradient(135deg, #e40f15, #ff6b6b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.trending-item .topic-info {
    flex: 1;
}

.trending-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #001a4d;
}

.trending-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}


/* Popular Tools Section */

.popular-tools-section {
    background: linear-gradient(135deg, #f8f0f4 0%, #f8e8f0 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.popular-tools-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #e40f15;
}

.popular-tools-list {
    display: grid;
    gap: 25px;
}

.tools-category h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0066ff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066ff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.tool-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    border-color: #0066ff;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.15);
    transform: translateY(-4px);
}

.tool-name {
    font-size: 14px;
    font-weight: 700;
    color: #001a4d;
    margin-bottom: 8px;
}

.tool-rating {
    font-size: 13px;
    color: #e40f15;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-usage {
    font-size: 12px;
    color: #666;
}


/* Blog Last Updated Badge */

.blog-last-updated {
    display: inline-block;
    background: linear-gradient(135deg, #0066ff, #0099ff);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}


/* Responsive Design */

@media (max-width: 768px) {
    .trending-item {
        flex-direction: column;
    }
    .trending-item .rank {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .trending-topics-section,
    .popular-tools-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .trending-topics-section h3,
    .popular-tools-section h3 {
        font-size: 18px;
    }
    .trending-item h4 {
        font-size: 14px;
    }
    .trending-item p {
        font-size: 12px;
    }
}


/* Animation for new posts */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: slideIn 0.6s ease-out;
}


/* Dark Mode Support */

@media (prefers-color-scheme: dark) {
    .trending-topics-section {
        background: linear-gradient(135deg, #1a1f2e 0%, #16192a 100%);
    }
    .trending-item {
        background: #252a3a;
        color: #f5f5f5;
    }
    .trending-item h4 {
        color: #0099ff;
    }
    .trending-item p {
        color: #aaa;
    }
    .popular-tools-section {
        background: linear-gradient(135deg, #2a1f2e 0%, #2a1925 100%);
    }
    .popular-tools-section h3 {
        color: #ff6b6b;
    }
    .tools-category h4 {
        color: #0099ff;
        border-bottom-color: #0099ff;
    }
    .tool-card {
        background: #252a3a;
        border-color: #333;
        color: #f5f5f5;
    }
    .tool-name {
        color: #0099ff;
    }
    .tool-card:hover {
        border-color: #0099ff;
        box-shadow: 0 4px 16px rgba(0, 153, 255, 0.25);
    }
    .tool-usage {
        color: #aaa;
    }
    .blog-tools {
        background: rgba(0, 102, 255, 0.15);
        color: #f5f5f5;
    }
    .blog-tools strong {
        color: #0099ff;
    }
}