/* ====================================
   FID Technology Tags Styling
   ==================================== */

/* Base Tech Tag Styling */
.tech-tags, .tech-tag {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color, #00618F) 0%, var(--primary-dark, #2A6BC0) 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Hover Effects für klickbare Tags */
.clickable-tech-tag {
    cursor: pointer;
    transform: translateY(0);
}

.clickable-tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: none;
    background: linear-gradient(135deg, var(--primary-hover, #327EBB) 0%, var(--primary-color, #00618F) 100%);
    color: white;
    text-decoration: none;
}

.clickable-tech-tag:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Nicht-klickbare Tags */
.non-clickable-tech-tag {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: none;
    cursor: default;
}

/* Spezielle Farben für verschiedene Kategorien */
.tech-tags[data-category="Python Framework"],
.tech-tags[data-category="Python CMS"] {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
    color: #2d3748;
}

.tech-tags[data-category="JavaScript Framework"] {
    background: linear-gradient(135deg, #f7df1e 0%, #323330 100%);
    color: #000;
}

.tech-tags[data-category="PHP Framework"],
.tech-tags[data-category="PHP CMS"] {
    background: linear-gradient(135deg, #777bb4 0%, #4f5b93 100%);
}

.tech-tags[data-category="Search Engine"],
.tech-tags[data-category="Discovery System"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.tech-tags[data-category="Library Standard"],
.tech-tags[data-category="Metadata Standard"] {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

/* Icons in Tags */
.tech-tags .fas,
.tech-tag .fas {
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Kleine Kategorie-Labels */
.tech-tags small,
.tech-tag small {
    opacity: 0.7;
    font-size: 0.7rem;
    font-weight: 300;
}

/* Tooltip Styling */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Large Badges */
.tech-badge-large {
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 25px;
    margin: 4px 6px 4px 0;
}

.tech-badge-large .fas {
    font-size: 0.9rem;
    margin-right: 6px;
}

/* Small Badges */
.tech-badge-small {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    margin: 1px 2px 1px 0;
}

.tech-badge-small .fas {
    font-size: 0.6rem;
    margin-right: 2px;
}

/* Container für Tech-Tags */
.tech-tags-container {
    margin: 8px 0;
    line-height: 1.6;
}

.tech-tags-container .section-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-tags, .tech-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin: 1px 2px 1px 0;
    }
    
    .tech-badge-large {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Animationen */
@keyframes techTagPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.clickable-tech-tag:focus {
    animation: techTagPulse 0.3s ease-in-out;
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Loading State */
.tech-tags-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tech-tags, .tech-tag {
        box-shadow: none;
    }
    
    .tech-tags-container .section-title {
        color: #d1d5db;
    }
    
    .non-clickable-tech-tag {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    }
}

/* Focus States für Accessibility */
.clickable-tech-tag:focus-visible {
    outline: 2px solid var(--primary-color, #00618F);
    outline-offset: 2px;
}

/* Gruppe von zusammengehörigen Tags */
.tech-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.tech-tags-group .group-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
    margin-right: 8px;
    align-self: center;
    min-width: fit-content;
}
