/* ========================================
   vCard Template - Stile QRCode.de
   ======================================== */

/* Reset e Base */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #403f3f;
    background: #f5f5f5;
}

body {
    overflow-x: hidden;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container principale */
.vcard-template {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Blur Background */
.blur-bgd {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

#blurBgInner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.1);
    opacity: 0.3;
}

.bgd-shadow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    z-index: -1;
}

/* Header e Avatar */
.vcard-header {
    position: relative;
}

.vcard-header-wrapper {
    position: relative;
}

.avatar-container {
    width: 100%;
    height: 200px;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.avatar-container .top {
    margin: 0;
}

/* Sezione titolo */
.event-section-title {
    padding: 20px;
    text-align: center;
}

.event-content-container {
    max-width: 100%;
}

.event-tagline {
    font-size: 24px;
    font-weight: 500;
    color: #403f3f;
    margin-bottom: 8px;
    word-break: break-word;
}

.event-teaser {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    word-break: break-word;
}

/* Pulsante CTA */
.event-action-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26,115,232,0.3);
}

.event-action-btn:hover {
    background: #1557b0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26,115,232,0.4);
}

/* Body */
.event-body {
    padding: 0;
}

.vcard-body-wrapper {
    padding: 0 15px 30px;
}

.vcard-body {
    background: #fff;
    border-radius: 8px;
}

/* Separatore */
.vcard-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 0 15px;
}

/* Righe vCard */
.vcard-row {
    padding: 20px 15px;
    position: relative;
}

.vcard-row > label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.vcard-row > i {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: 24px;
    color: #ccc;
}

.vcard-row h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 400;
    color: #403f3f;
}

.vcard-row h4 a {
    color: #1a73e8;
}

.vcard-row small {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.vcard-row small:last-child {
    margin-bottom: 0;
}

/* Contatti */
.contact-item {
    margin-bottom: 15px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* Orari apertura */
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    color: #403f3f;
    min-width: 50px;
}

.hours-time {
    color: #666;
    text-align: right;
}

.hours-closed {
    color: #999;
    font-style: italic;
}

/* Indirizzo */
.address-line {
    margin-bottom: 5px;
    color: #403f3f;
}

/* Pulsante mappa */
.event-slim-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid currentColor;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.event-slim-button:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Social Network */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.social-item {
    width: 50px;
    height: 50px;
}

.channel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.channel-container:hover {
    transform: scale(1.1);
}

.channel-container span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
}

/* Colori Social */
.channel-bgd-linkedin { background: #0077b5; }
.channel-bgd-facebook { background: #1877f2; }
.channel-bgd-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.channel-bgd-twitter, .channel-bgd-x { background: #000; }
.channel-bgd-youtube { background: #ff0000; }
.channel-bgd-tiktok { background: #000; }
.channel-bgd-whatsapp { background: #25d366; }
.channel-bgd-telegram { background: #0088cc; }
.channel-bgd-pinterest { background: #bd081c; }
.channel-bgd-snapchat { background: #fffc00; color: #000 !important; }
.channel-bgd-googlereview { background: #4285f4; }

/* Icone Social (Font Icons placeholder) */
[class^="icon-social-"]::before,
[class*=" icon-social-"]::before {
    font-family: 'FontAwesome', sans-serif;
}

.icon-social-linkedin::before { content: "in"; font-weight: bold; font-style: normal; }
.icon-social-facebook::before { content: "f"; font-weight: bold; }
.icon-social-instagram::before { content: "ig"; font-weight: bold; font-size: 14px; }
.icon-social-twitter::before, .icon-social-x::before { content: "X"; font-weight: bold; }
.icon-social-youtube::before { content: "yt"; font-weight: bold; font-size: 12px; }
.icon-social-whatsapp::before { content: "wa"; font-weight: bold; font-size: 12px; }
.icon-social-googlereview::before { content: "G"; font-weight: bold; }

/* Icone sezioni */
.icon-event-contact::before { content: "\1F464"; }
.icon-event-time::before { content: "\1F550"; }
.icon-event-location::before { content: "\1F4CD"; }
.icon-event-about::before { content: "\2139"; }
.icon-business-socialmedia::before { content: "\1F310"; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f7f7f7;
    border-radius: 8px;
}

.empty-state h4 {
    color: #999;
    font-weight: 400;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.welcome-screen .progress {
    width: 100%;
    height: 3px;
    position: absolute;
    top: 0;
}

.welcome-screen .loading-bar {
    height: 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { width: 0; margin-left: 0; }
    50% { width: 50%; margin-left: 25%; }
    100% { width: 0; margin-left: 100%; }
}

/* Utility */
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }

.text-break {
    word-break: break-word;
    overflow-wrap: break-word;
}

.text-center { text-align: center; }

/* Grid per social */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.col-xs-4 {
    width: 33.333%;
    padding: 0 5px;
}

.col-sm-3 {
    width: 33.333%;
    padding: 0 5px;
}

@media (min-width: 576px) {
    .col-sm-3 {
        width: 25%;
    }
}

.col-md-2 {
    width: 33.333%;
    padding: 0 5px;
}

@media (min-width: 768px) {
    .col-md-2 {
        width: 16.666%;
    }
}

/* Ripple Effect */
.ripplelink {
    position: relative;
    overflow: hidden;
}

.ripplelink::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.ripplelink:active::after {
    width: 200px;
    height: 200px;
}

/* Responsive */
@media (max-width: 600px) {
    .vcard-template {
        max-width: 100%;
        box-shadow: none;
    }

    .avatar-container {
        height: 180px;
    }

    .event-tagline {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .avatar-container {
        height: 250px;
    }

    .event-tagline {
        font-size: 28px;
    }
}

/* Dark Theme adjustments */
.darkTheme .vcard-template {
    background: #fff;
}

/* FAB Buttons (se necessari in futuro) */
.fabs {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* About toggle */
#aboutToggle {
    color: #1a73e8;
    cursor: pointer;
}

#aboutFull, #aboutShort {
    line-height: 1.6;
}
