/* Links Page Styling */

.links-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.links-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.links-btn-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.link-list {
    position: relative;
    background: linear-gradient(135deg, #1b7dbe, #024175);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
}

.link-list:has(h3 strong) {
    background: linear-gradient(135deg, #8e44ad, #c0392b);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.link-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.link-list:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #024175 , #1b7dbe);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.link-list:hover::before {
    opacity: 1;
}

.link-list a {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
}

.link-list i {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.link-list:hover i {
    transform: scale(1.2);
}

.link-list h3 {
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.link-list:hover h3 {
    transform: translateX(5px);
}

/* Add a subtle pulse animation for new links */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.link-list.new {
    animation: pulse 2s infinite;
}

/* Ripple effect for click feedback */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    z-index: 1;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Additional hover state class added by JS */
.link-list.hover-active i {
    transform: scale(1.2);
    color: #ffffff;
}

.link-list.hover-active h3 {
    transform: translateX(5px);
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .links-btn-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .links-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .links-btn-container {
        grid-template-columns: 1fr;
    }
    
    .link-list a {
        padding: 1rem;
    }
    
    .link-list i {
        font-size: 1.2rem;
    }
    
    .link-list h3 {
        font-size: 0.9rem;
    }
}