/* chat-contact-switch.css mtime:1755704586 */
/* Chat Contact Switch Component Styles - SaintChannel */

/* === CONTAINER PRINCIPALE === */
.chat-contact-switch-container {
    background: transparent;
    position: relative;
    width: 100%;
}

/* === SWITCH STILE ABBONAMENTO === */
.switch-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 1.5rem 0;
    background: transparent;
    margin-bottom: 1rem;
}

.switch-selector {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--st-border, rgba(255, 255, 255, 0.1));
    border-radius: 2rem;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.switch-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.switch-background {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    background: linear-gradient(135deg, var(--st-primary, #00ff9d), var(--st-secondary, #00ccff));
    border-radius: 1.75rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
    z-index: 1;
}

.switch-option {
    position: relative;
    z-index: 2;
    padding: 0.75rem 1.5rem;
    border-radius: 1.75rem;
    background: transparent;
    border: none;
    color: var(--st-text-muted, #9ca3af);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.switch-option:hover {
    color: var(--st-text, #ffffff);
}

.switch-option.active {
    color: var(--st-dark, #0a0a0a);
}

.switch-option i {
    font-size: 1rem;
}

/* Calcolo dinamico larghezza background */
.switch-selector[data-active="chat"] .switch-background {
    width: var(--chat-width);
    left: 0.25rem;
}

.switch-selector[data-active="contact"] .switch-background {
    width: var(--contact-width);
    left: var(--contact-left);
}

/* === VIEW CONTAINER === */
.switch-views {
    position: relative;
    width: 100%;
}

.view {
    width: 100%;
}

/* Panel Headers */
.panel-header {
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border-radius: 0.25rem;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--st-text, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 1;
}

/* Panel Content */
.panel-content { position: relative; }

/* === ANIMAZIONI === */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility fade */
.fade-enter { opacity: 0; }
.fade-enter-active { transition: opacity .25s ease; opacity: 1; }

/* === LOADING STATES === */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--st-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ERROR STATES === */
.error-state {
    text-align: center;
    padding: 2rem;
    color: var(--st-text-muted);
}

.error-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .switch-selector-container {
        padding: 1rem;
    }
    
    .switch-option {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .switch-option i {
        font-size: 0.9rem;
    }
    
    .view { padding: 1.5rem 0; }
    
    .panel-title { font-size: 1rem; }
    
    .panel-subtitle { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .switch-option {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .view { padding: 1rem 0; }
}

/* === ACCESSIBILITY === */
.switch-option:focus {
    outline: 2px solid var(--st-primary);
    outline-offset: 2px;
}

.switch-selector:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.3);
}

/* === DARK MODE OPTIMIZATIONS === */
@media (prefers-color-scheme: dark) {
    .chat-contact-switch-container {
        background: transparent;
    }
}


/* === PRINT STYLES === */
@media print {
    .chat-contact-switch-container {
        display: none !important;
    }
}

/* Nessuna regola fullscreen: gestione demandata alla chat o overlay JS */

/* === CONTACT LINKS STYLE (no multicolor, match site theme) === */
.chat-contact-switch-container .view.view-contact .panel-content.contact-content a,
.chat-contact-switch-container .view.view-contact .panel-content .contact-social-block .social-buttons a,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn {
    color: var(--st-primary, #00ff9d);
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.1rem;
    margin: 0.125rem 0.75rem 0.125rem 0;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.chat-contact-switch-container .view.view-contact .panel-content.contact-content a:hover,
.chat-contact-switch-container .view.view-contact .panel-content .contact-social-block .social-buttons a:hover,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn:hover {
    color: var(--st-primary, #00ff9d);
    border-bottom-color: currentColor !important;
    opacity: 0.9;
}

.chat-contact-switch-container .view.view-contact .panel-content.contact-content a i,
.chat-contact-switch-container .view.view-contact .panel-content.contact-content a svg,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn i,
.chat-contact-switch-container .view.view-contact .panel-content .social-btn svg {
    color: currentColor;
}

/* Social buttons uniformi */
.chat-contact-switch-container .contact-social-block,
.chat-contact-switch-container .contact-buttons-section { margin-top: 1.25rem; }
.chat-contact-switch-container .social-buttons,
.chat-contact-switch-container .contact-buttons-section .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.chat-contact-switch-container .social-btn,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a,
.chat-contact-switch-container .contact-buttons-section .social-buttons a,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn {
    --btn-bg: rgba(255,255,255,0.06);
    --btn-bg-hover: rgba(255,255,255,0.1);
    --btn-border: rgba(255,255,255,0.12);
    color: var(--st-primary, #00ff9d) !important;
    background: var(--btn-bg) !important;
    border: 1px solid var(--btn-border) !important;
    border-radius: 8px !important; /* più quadrati */
    height: 56px !important; /* altezza uniforme */
    padding: 0 1rem !important; /* spazio orizzontale */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    line-height: 1.15;
    font-size: 1rem;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease, color .2s ease;
}
.chat-contact-switch-container .social-btn:hover,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a:hover,
.chat-contact-switch-container .contact-buttons-section .social-buttons a:hover,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn:hover {
    background: var(--btn-bg-hover) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.chat-contact-switch-container .social-btn i,
.chat-contact-switch-container .social-btn svg,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a i,
.chat-contact-switch-container .view.view-contact .panel-content .social-buttons a svg,
.chat-contact-switch-container .contact-buttons-section .social-buttons a i,
.chat-contact-switch-container .contact-buttons-section .social-buttons a svg,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn i,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn svg {
    color: currentColor;
    font-size: 0.95rem;
}

/* Forza rimozione stili preesistenti su anchor base dentro il blocco social */
.chat-contact-switch-container .contact-social-block .social-buttons a,
.chat-contact-switch-container .contact-buttons-section .social-buttons a,
.chat-contact-switch-container .contact-buttons-section a.contact-action-btn {
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* === GLOBAL: Uniforma i pulsanti in .contact-buttons-section (fuori dal componente) === */
.contact-buttons-section a.contact-action-btn {
    --btn-bg: rgba(255,255,255,0.06);
    --btn-bg-hover: rgba(255,255,255,0.1);
    --btn-border: rgba(255,255,255,0.12);
    color: var(--st-primary, #00ff9d) !important;
    background: var(--btn-bg) !important;
    border: 1px solid var(--btn-border) !important;
    border-radius: 8px !important; /* più quadrati */
    height: 56px !important; /* altezza uniforme */
    padding: 0 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}
.contact-buttons-section a.contact-action-btn:hover {
    background: var(--btn-bg-hover) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.contact-buttons-section a.contact-action-btn i,
.contact-buttons-section a.contact-action-btn svg {
    color: currentColor !important;
    font-size: 1.05rem !important;
}
.contact-buttons-section .col-md-3 .contact-action-btn,
.contact-buttons-section .col-sm-6 .contact-action-btn {
    /* a tutta larghezza dentro la colonna */
    width: 100% !important;
}

/* Larghezza uniforme per i pulsanti dentro il componente (non in griglia) */
.chat-contact-switch-container .social-buttons { justify-content: center; }
.chat-contact-switch-container .social-buttons a { width: 210px; }

/* Mobile: pulsanti a tutta larghezza */
@media (max-width: 576px) {
    .chat-contact-switch-container .social-buttons a { width: 100%; }
}

/* === ABOUT PAGE: Migliora styling sezione contatti === */
.contact-section .text-center .text-muted {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400;
}

.contact-section .contact-buttons-section {
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem !important;
    position: relative;
    z-index: 10;
}

/* Separazione netta dal componente sopra */
.contact-section .contact-switch-wrapper + * {
    clear: both;
    margin-top: 3rem !important;
}

/* Wrapper indipendente per la sezione social */
.contact-section .social-section-wrapper {
    margin-top: 3rem !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 10;
}

.contact-section .contact-buttons-section .row {
    justify-content: center;
}

.contact-section .contact-buttons-section a.contact-action-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-section .contact-buttons-section a.contact-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,255,157,0.15);
}

.contact-section .contact-buttons-section a.contact-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.contact-section .contact-buttons-section a.contact-action-btn:hover::before {
    left: 100%;
}

/* Specifici colori per tipo di pulsante */
.contact-section .email-btn:hover { border-color: #ff6b6b !important; }
.contact-section .linkedin-btn:hover { border-color: #0077b5 !important; }
.contact-section .github-btn:hover { border-color: #333 !important; }
.contact-section .website-btn:hover { border-color: #00ff9d !important; }
.contact-section .twitter-btn:hover { border-color: #1da1f2 !important; }
.contact-section .phone-btn:hover { border-color: #25d366 !important; }
