/**
 * J_Blotty Plugin CSS
 * @package     J_Blotty
 * @version     1.0.0
 */

.j-blotty-badge {
    position: fixed;
    z-index: 9999;
    /*padding: 15px 25px;*/
    /*background-color: var(--j-blotty-bg-color, #007bff);*/
    color: var(--j-blotty-text-color, #ffffff);
    /*border-radius: 50px;*/
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /*opacity: .5;*/
	white-space: nowrap;
	opacity: 1;
    background-image: url(/media/plg_system_j_blotty/images/avatar.webp);
    width: 159px;
    height: 300px;
    border-radius: 0;
}

/* Entrance animation states */
.j-blotty-badge.j-blotty-entrance-start {
    opacity: 1;
}

.j-blotty-badge.j-blotty-to-center {
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.j-blotty-badge.j-blotty-to-final {
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced styling when badge is centered */
.j-blotty-badge.j-blotty-animating {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform-origin: center center;
}

#j-blotty-badge.badge-open{
	transition: none;
	transform: translateY(0);
	cursor: default;
	box-shadow: none;
	outline: none;
	background-color: transparent;
	/*pointer-events: none;*/
	padding:0;
}


#j-blotty-badge.badge-open .comunicazione{
	/*background-color: #fff;*/
    height: max-content;
    width: max-content;
    /*border: 1px solid #000;*/
    color: #000;
    padding: 5px 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
}

#j-blotty-badge.badge-open .comunicazione-btn{
	border: 1px solid #000;
    height: 70px;
    width: 70px;
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
	border-radius: 50%;
	box-shadow: 0 0 12px #969696;
    cursor: pointer;
}
#j-blotty-badge.badge-open .comunicazione-btn:hover{
	/*filter: drop-shadow(0px 0px 1px black);*/
}
#j-blotty-badge.badge-open .comunicazione-btn.talk{ 
	background-color: #548bff;
}

#j-blotty-badge.badge-open .comunicazione-btn.chat{ 
	background-color: #ffcc65;;
}

#j-blotty-badge.badge-open .comunicazione-btn.cancel{ 
	background-color: #ff7a7a;
}


#j-blotty-badge.badge-open .comunicazione-btn:not(:last-child){
    margin-right: 30px;
}

.j-blotty-badge:hover {
    /*transform: translateY(-2px);*/
    /*box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);*/
	opacity: 1 !important;
}

/* Don't apply hover effect during animation */
.j-blotty-badge.j-blotty-animating:hover {
    transform: none;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
}

.j-blotty-badge:active {
    transform: translateY(0);
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);*/
}

/* Don't apply active effect during animation */
.j-blotty-badge.j-blotty-animating:active {
    transform: none;
}

.j-blotty-badge:focus {
    /*outline: 2px solid rgba(255, 255, 255, 0.5);*/
    /*outline-offset: 2px;*/
	outline: none;
}

/* Position variants */
.j-blotty-bottom-right {
    /* bottom: 20px;*/
    /* right: 20px;*/
}

.j-blotty-bottom-left {
    /* bottom: 20px;*/
    /* left: 20px;*/
}

.j-blotty-top-right {
    /* top: 20px;*/
    /* right: 20px;*/
}

.j-blotty-top-left {
    /* top: 20px;*/
    /* left: 20px;*/
}

/* Badge text */
.j-blotty-badge-text {
    display: inline-block;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .j-blotty-badge {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .j-blotty-bottom-right,
    .j-blotty-bottom-left {
        bottom: 15px;
    }
    
    .j-blotty-bottom-right,
    .j-blotty-top-right {
        right: 15px;
    }
    
    .j-blotty-bottom-left,
    .j-blotty-top-left {
        left: 15px;
    }
    
    .j-blotty-top-right,
    .j-blotty-top-left {
        top: 15px;
    }
	
	body.j-blotty-modal-active {
		overflow: hidden;
	}	
}

/* Animation classes */
.j-blotty-badge.j-blotty-pulse {
    animation: j-blotty-pulse 2s infinite;
}

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

/* Loading state */
.j-blotty-badge.j-blotty-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hidden state */
.j-blotty-badge.j-blotty-hidden {
    display: none;
}

/* ========================================
   FULLSCREEN MODAL STYLES
   ======================================== */

.j-blotty-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.j-blotty-modal.j-blotty-modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Overlay (sfondo scuro) */
.j-blotty-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Modal Content Container */
.j-blotty-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: #ffffff;
    z-index: 1;
    overflow-y: auto;
    animation: j-blotty-modal-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Definisci l'animazione */
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#eye.flashing{
	animation: fadeInOut 3s ease-in-out infinite;
}

/* Animazione di entrata modale */
@keyframes j-blotty-modal-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.j-blotty-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.j-blotty-modal-close span {
font-size: 2.62rem;
    width: 100%;
    height: 100%;
}

.j-blotty-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg) scale(1.1);
}

.j-blotty-modal-close:focus {
    outline: 2px solid white;
    outline-offset: 3px;
}

.j-blotty-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Modal Body (contenuto) */
.j-blotty-modal-body {
    padding: 80px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.j-blotty-modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.j-blotty-modal-body p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .j-blotty-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .j-blotty-modal-body {
        padding: 70px 20px 30px;
    }
    
    .j-blotty-modal-body h2 {
        font-size: 2rem;
    }
    
    .j-blotty-modal-body p {
        font-size: 1rem;
    }
	
	body.j-blotty-modal-active {
		overflow: hidden;
	}	

	#j-blotty-badge{
		height: 150px;
        width: calc(150px * 0.53);
        background-size: contain;
	}
}

@media ( max-width:769 and min-width: 1200px) {
	
		
	
}
/* Prevent body scroll when modal is open */
body.j-blotty-modal-active {
    overflow: hidden;
}

/* Mobile First - Base styles (mobile) */
#j-blotty-badge {
  width: 80px;
  height: 150px;
	background-size: contain;
}

/* Small devices (≥576px) */
@media (min-width: 576px) {
  #j-blotty-badge {
    width: 100px;
    height: 188px;
	  opacity: 1;
  }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
  #j-blotty-badge {
    width: 120px;
    height: 226px;
	  opacity: 1;
  }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
  #j-blotty-badge {
    width: 140px;
    height: 263px;
	  opacity: 1;
  }
}

/* Extra large (≥1200px) */
@media (min-width: 1200px) {
  #j-blotty-badge {
    width: 159px;
    height: 300px;
	  opacity: 1;
  }
}
