/* ===================================
   LOCAL HOURS - HOST ADVANCED STYLES
   Stili aggiuntivi per Profili Host Avanzati
   =================================== */

/* ============================================
   VIDEO PLAYER STYLES
   ============================================ */

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-container video {
    width: 100%;
    display: block;
    background-color: #000;
}

.video-container video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Video Preview Card */
.video-preview-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.video-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-preview-card:hover .video-preview-overlay {
    opacity: 1;
}

.video-play-button {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-preview-card:hover .video-play-button {
    transform: scale(1);
    background: rgba(255, 255, 255, 1);
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge-card {
    position: relative;
    transition: all 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Badge Pills (Compact Mode) */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.2s ease;
    cursor: default;
}

.badge-pill:hover {
    transform: scale(1.05);
}

/* Badge Mini Icons */
.badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid;
    transition: all 0.2s ease;
    cursor: help;
}

.badge-mini:hover {
    transform: scale(1.15);
}

/* Badge Animation quando guadagnato */
@keyframes badgeEarn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.badge-newly-earned {
    animation: badgeEarn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Badge Glow Effect */
.badge-superhost {
    position: relative;
}

.badge-superhost::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.badge-superhost:hover::before {
    opacity: 0.3;
}

/* ============================================
   ABOUT ME SECTION
   ============================================ */

.about-me-section {
    background: linear-gradient(135deg, #fff5f0 0%, #fffaf5 100%);
    border: 2px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.about-me-section::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    color: #fed7aa;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

.about-me-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: #374151;
    line-height: 1.7;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.social-link-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: transparent;
}

.social-link-facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-link-youtube:hover {
    background-color: #ff0000;
    color: white;
}

.social-link-tiktok:hover {
    background-color: #000000;
    color: white;
}

.social-link-linkedin:hover {
    background-color: #0a66c2;
    color: white;
}

/* ============================================
   LANGUAGE TAGS
   ============================================ */

.language-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.language-tag-input {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.language-tag-input:focus-within {
    border-color: #f97316;
    background-color: white;
}

.language-tag-input input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
}

/* ============================================
   HOST PROFILE STATS
   ============================================ */

.host-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.host-stat-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.host-stat-card:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.host-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
}

.host-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.host-stat-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
    color: #f97316;
}

/* ============================================
   VERIFICATION BADGES (inline)
   ============================================ */

.verification-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #86efac;
}

.verification-inline svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   PROFILE COMPLETION INDICATOR
   ============================================ */

.profile-completion {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.profile-completion-bar {
    width: 100%;
    height: 8px;
    background-color: #fef3c7;
    border-radius: 9999px;
    overflow: hidden;
    margin: 12px 0;
}

.profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-completion-checklist {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.profile-completion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #78350f;
}

.profile-completion-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.profile-completion-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .host-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badge-card {
        padding: 12px;
    }
    
    .about-me-section::before {
        font-size: 60px;
    }
    
    .social-links-container {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f3f4f6 0%,
        #e5e7eb 50%,
        #f3f4f6 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Animation delay utilities */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .badge-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .about-me-section {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: #4b5563;
    }
    
    .about-me-text {
        color: #e5e7eb;
    }
    
    .host-stat-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .host-stat-value {
        color: #f3f4f6;
    }
    
    .social-link {
        background-color: #374151;
        color: #e5e7eb;
    }
    
    .social-link:hover {
        background-color: #4b5563;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .video-container,
    .video-preview-card {
        display: none;
    }
    
    .badge-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .about-me-section {
        border: 2px solid #000;
        background: white;
    }
}
