/* Tag-based Icon Display System */

/* Featured Icons (Large Display) */
.featured-icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
}

.featured-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-icon:hover {
    transform: translateY(-5px);
}

.featured-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.featured-icon:hover .featured-icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.featured-icon:hover .featured-icon-wrapper::before {
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
}

.featured-icon i {
    font-size: 32px;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.featured-icon:hover i {
    transform: scale(1.1);
}

.featured-icon span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.featured-icon:hover span {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Featured icon pulse animation */
@keyframes featuredIconPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.featured-icon:hover .featured-icon-wrapper {
    animation: featuredIconPulse 1.5s infinite;
}

/* Featured icon glow effect */
.featured-icon-wrapper {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-icon:hover .featured-icon-wrapper {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Regular Article Icons (Small Display) */
.article-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.article-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Icon variations based on technology type */
.article-icon.ai-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.article-icon.web-icon {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.article-icon.cloud-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.article-icon.security-icon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.article-icon.vr-icon {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.article-icon.hardware-icon {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.article-icon.mobile-icon {
    background: linear-gradient(135deg, #81ecec, #00cec9);
}

.article-icon.blockchain-icon {
    background: linear-gradient(135deg, #fab1a0, #e17055);
}

.article-icon.innovation-icon {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.article-icon.design-icon {
    background: linear-gradient(135deg, #a29bfe, #fd79a8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .article-icons {
        gap: 6px;
    }
    
    /* Featured icons mobile adjustments */
    .featured-icons-container {
        gap: 15px;
        padding: 15px;
    }
    
    .featured-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .featured-icon i {
        font-size: 24px;
    }
    
    .featured-icon span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .featured-icons-container {
        gap: 10px;
        padding: 10px;
    }
    
    .featured-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .featured-icon i {
        font-size: 20px;
    }
    
    .featured-icon span {
        font-size: 10px;
    }
}

/* Animation for icon appearance */
@keyframes iconFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.article-icon {
    animation: iconFadeIn 0.3s ease-out;
}

/* Icon tooltip */
.article-icon {
    position: relative;
    cursor: pointer;
}

.article-icon::after {
    content: attr(data-tag);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.article-icon:hover::after {
    opacity: 1;
}

/* Fallback for when no icons are available */
.no-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.no-icons i {
    color: #999;
}
