/* MozDotArt Linktree Frontend Styles */

.mozdotart-linktree-container {
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mozdotart-linktree-container * {
    box-sizing: border-box;
}

/* Profilo */
.mozdotart-profile {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.mozdotart-profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.mozdotart-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mozdotart-profile-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.mozdotart-profile-bio {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Container link */
.mozdotart-links {
    max-width: 600px;
    margin: 0 auto;
}

/* Singolo link */
.mozdotart-link {
    display: block;
    text-decoration: none;
    padding: 18px 25px;
    margin-bottom: 15px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
    backdrop-filter: blur(10px);
}

.mozdotart-link:nth-child(1) { animation-delay: 0.1s; }
.mozdotart-link:nth-child(2) { animation-delay: 0.2s; }
.mozdotart-link:nth-child(3) { animation-delay: 0.3s; }
.mozdotart-link:nth-child(4) { animation-delay: 0.4s; }
.mozdotart-link:nth-child(5) { animation-delay: 0.5s; }
.mozdotart-link:nth-child(n+6) { animation-delay: 0.6s; }

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

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

.mozdotart-link:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.mozdotart-link:active {
    transform: translateY(-1px);
}

/* Contenuto link */
.mozdotart-link-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.mozdotart-link-icon {
    font-size: 20px;
    min-width: 24px;
    transition: all 0.3s ease;
}

.mozdotart-link:hover .mozdotart-link-icon {
    transform: scale(1.1);
}

.mozdotart-link-text {
    flex: 1;
    text-align: left;
}

.mozdotart-link-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
    line-height: 1.3;
}

.mozdotart-link-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* Effetti speciali */
.mozdotart-link-special {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite, fadeInUp 0.6s ease both;
}

.mozdotart-link-special:hover {
    animation: gradientShift 2s ease infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .mozdotart-linktree-container {
        padding: 30px 15px;
    }
    
    .mozdotart-profile-image {
        width: 80px;
        height: 80px;
    }
    
    .mozdotart-profile-name {
        font-size: 24px;
    }
    
    .mozdotart-profile-bio {
        font-size: 14px;
    }
    
    .mozdotart-link {
        padding: 15px 20px;
        margin-bottom: 12px;
    }
    
    .mozdotart-link-content {
        gap: 12px;
    }
    
    .mozdotart-link-icon {
        font-size: 18px;
        min-width: 20px;
    }
    
    .mozdotart-link-title {
        font-size: 15px;
    }
    
    .mozdotart-link-description {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .mozdotart-linktree-container {
        padding: 20px 10px;
    }
    
    .mozdotart-link {
        padding: 12px 15px;
    }
    
    .mozdotart-link-content {
        gap: 10px;
    }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-10px,0); }
    70% { transform: translate3d(0,-5px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

/* Stati di caricamento */
.mozdotart-loading .mozdotart-link {
    opacity: 0.6;
    pointer-events: none;
}

.mozdotart-loading .mozdotart-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tema scuro (opzionale) */
.mozdotart-dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.mozdotart-dark-theme .mozdotart-link {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.mozdotart-dark-theme .mozdotart-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Social Media Styles */
.mozdotart-social-media {
    margin-top: 40px;
    text-align: center;
}

.mozdotart-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Base social icon styles */
.mozdotart-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mozdotart-social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mozdotart-social-icon:hover::before {
    left: 100%;
}

/* Icon style variations */
.social-style-icons .mozdotart-social-icon {
    background: var(--social-bg);
    color: var(--social-color);
    border-radius: 50%;
    border: 2px solid transparent;
}

.social-style-buttons .mozdotart-social-icon {
    background: var(--social-bg);
    color: var(--social-color);
    border-radius: 12px;
    padding: 0 15px;
    border: 2px solid transparent;
}

.social-style-minimal .mozdotart-social-icon {
    background: transparent;
    color: var(--social-color, inherit);
    border: 2px solid var(--social-color, currentColor);
    border-radius: 50%;
}

/* Size variations */
.social-size-small .mozdotart-social-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
}

.social-size-medium .mozdotart-social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
}

.social-size-large .mozdotart-social-icon {
    width: 55px;
    height: 55px;
    font-size: 24px;
}

/* Button style specific sizing */
.social-style-buttons.social-size-small .mozdotart-social-icon {
    height: 35px;
    min-width: 35px;
}

.social-style-buttons.social-size-medium .mozdotart-social-icon {
    height: 45px;
    min-width: 45px;
}

.social-style-buttons.social-size-large .mozdotart-social-icon {
    height: 55px;
    min-width: 55px;
}

/* Hover effects */
.social-animated .mozdotart-social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.social-style-minimal .mozdotart-social-icon:hover {
    background: var(--social-bg);
    color: var(--social-color);
    border-color: var(--social-bg);
}

/* Individual social network hover effects */
.social-animated .social-instagram:hover {
    box-shadow: 0 8px 25px rgba(240, 148, 51, 0.4);
}

.social-animated .social-facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-animated .social-twitter:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-animated .social-linkedin:hover {
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.4);
}

.social-animated .social-youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-animated .social-tiktok:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-animated .social-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for social icons */
@media (max-width: 480px) {
    .mozdotart-social-icons {
        gap: 12px;
    }
    
    .social-size-small .mozdotart-social-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .social-size-medium .mozdotart-social-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .social-size-large .mozdotart-social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 320px) {
    .mozdotart-social-icons {
        gap: 8px;
    }
}

/* Animation keyframes for social icons */
@keyframes socialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes socialBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

/* Special effects for certain social networks */
.social-animated .social-tiktok:hover {
    animation: socialBounce 0.8s ease;
}

.social-animated .social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    animation: socialPulse 1s ease;
}

/* Dark/Light theme specific overrides for social icons */
@media (prefers-color-scheme: dark) {
    .social-style-minimal .mozdotart-social-icon {
        border-color: rgba(255,255,255,0.6);
    }
}

@media (prefers-color-scheme: light) {
    .social-style-minimal .mozdotart-social-icon {
        border-color: rgba(0,0,0,0.6);
    }
}

/* Tema chiaro (opzionale) */
.mozdotart-light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

.mozdotart-light-theme .mozdotart-link {
    background: rgba(255,255,255,0.8);
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.mozdotart-light-theme .mozdotart-link:hover {
    background: rgba(255,255,255,0.95);
    color: #333;
}