/* Collegamenti Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

/* Link Card - Stile Immagine */
.link-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

/* Card Image */
.link-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio come nell'immagine */
    overflow: hidden;
    /* Gradient colori ispirati all'immagine allegata: tonalità di blu profondo -> più chiaro */
    background: linear-gradient(180deg, #06284b 0%, #0f4fa0 45%, #1677d3 100%);
}

.link-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge su Immagine */
.link-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.link-card-badge.badge-public {
    background: #10b981;
    color: white;
}

.link-card-badge.badge-private {
    background: #f59e0b;
    color: white;
}

.link-card-badge.badge-fiera {
    background: #ef4444;
    color: white;
}

.link-card-badge.badge-coralmc {
    background: #3b82f6;
    color: white;
}

.link-card-badge.badge-gdr {
    background: #8b5cf6;
    color: white;
}

.link-card-badge.badge-admin {
    background: #dc2626;
    color: white;
}

.link-card-badge.badge-auth {
    background: #059669;
    color: white;
}

/* Card Content */
.link-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1d24;
}

.link-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.link-card-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.95rem;
}

/* Card Info (Data/Dettagli) */
.link-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.link-card-info-icon {
    font-size: 1.1rem;
}

/* Card Features List */
.link-card-features {
    margin-bottom: 1rem;
}

.link-card-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-success);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.link-card-feature::before {
    content: '✅';
    font-size: 0.9rem;
}

/* Card Button */
.link-card-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.link-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.4);
}

/* Denied Overlay */
.link-card-denied {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: not-allowed;
}

.link-card-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.link-card-denied-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.link-card-denied-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-card-badge {
        top: 12px;
        left: 12px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .link-card-title {
        font-size: 1.25rem;
    }
}
