/*================================================
Link Page Styles for Jarvis and Sam Website
Consistent with existing design system
=================================================*/

/* Links Section */
.links-section {
    background-color: var(--DarkBg);
    position: relative;
    overflow: hidden;
    padding-top: 40px !important;
    padding-bottom: 100px;
}

/* Section Title Styling */
.links-section .section-title h2 {
    font-size: 48px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.links-section .section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* Category Tabs */
.category-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: transparent;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    background: transparent;
    border: none;
    color: #E0E0E0;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--fontFamily);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    border-bottom: 2px solid transparent;
    min-width: 70px;
}

.tab-button:hover {
    color: #FFFFFF;
    background: linear-gradient(90deg, #00BFFF, #FF3333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tab-button.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, #00BFFF, #FF3333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom-color: transparent;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00BFFF, #FF3333);
    border-radius: 2px;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    opacity: 1;
    height: 60px;
    box-sizing: border-box;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 191, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    border-left-color: rgba(255, 255, 255, 1);
    background: rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
}

.link-card:hover::before {
    left: 100%;
}

.link-card.hidden {
    display: none;
}

/* Link Icon */
.link-icon {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    border-radius: 8px;
    background: rgba(0, 191, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.link-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(87%) sepia(6%) saturate(400%) hue-rotate(169deg) brightness(95%) contrast(87%);
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    background: linear-gradient(45deg, #00BFFF, #FF3333);
    transform: scale(1.1);
}

.link-card:hover .link-icon img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(109deg) brightness(101%) contrast(101%);
    transform: scale(1.1);
}

/* Link Text */
.link-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #E0E0E0;
    transition: all 0.3s ease;
    font-family: var(--fontFamily);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.link-card:hover .link-text {
    background: linear-gradient(90deg, #00BFFF, #FF3333);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-tabs {
        gap: 30px;
    }
    
    .tab-button {
        font-size: 16px;
        min-width: 80px;
    }
}

@media (max-width: 767px) {
    .links-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .links-section .section-title h2 {
        font-size: 32px;
    }
    
    .links-section .section-description {
        font-size: 16px;
    }
    
    .category-tabs-wrapper {
        margin-bottom: 40px;
    }
    
    .category-tabs {
        gap: 20px;
        padding: 0 15px;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 12px 0;
        min-width: 70px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
    
    .link-card {
        padding: 12px 16px;
        height: 55px;
    }
    
    .link-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
    
    .link-icon img {
        width: 20px;
        height: 20px;
    }
    
    .link-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        gap: 10px;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .tab-button {
        font-size: 12px;
        padding: 10px 12px;
        min-width: 50px;
        flex-shrink: 0;
        letter-spacing: 0.3px;
    }
    
    .link-card {
        padding: 14px 16px;
        height: 65px;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
        margin-right: 14px;
    }
    
    .link-icon img {
        width: 22px;
        height: 22px;
    }
    
    .link-text {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .category-tabs {
        gap: 8px;
        padding: 0 5px;
    }
    
    .tab-button {
        font-size: 11px;
        padding: 8px 10px;
        min-width: 45px;
        letter-spacing: 0.2px;
    }
}

/* Animation for card filtering */
.links-grid {
    transition: all 0.3s ease;
}

.link-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background decoration */
.links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 51, 51, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.links-section .container {
    position: relative;
    z-index: 1;
}
