/* Responsive Visibility Styles */

/* Desktop visibility (1024px and up) */
@media (min-width: 1024px) {
    .eightam-hide-desktop {
        display: none !important;
    }
}

/* Tablet visibility (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .eightam-hide-tablet {
        display: none !important;
    }
}

/* Mobile visibility (767px and below) */
@media (max-width: 767px) {
    .eightam-hide-mobile {
        display: none !important;
    }
}

/* Mobile Text Alignment */
@media (max-width: 767px) {
    .eightam-mobile-align-left {
        text-align: left !important;
    }
    
    .eightam-mobile-align-center {
        text-align: center !important;
    }
    
    .eightam-mobile-align-right {
        text-align: right !important;
    }
    
    .eightam-mobile-align-justify {
        text-align: justify !important;
    }
}

/* Tablet Text Alignment */
@media (min-width: 768px) and (max-width: 1023px) {
    .eightam-tablet-align-left {
        text-align: left !important;
    }
    
    .eightam-tablet-align-center {
        text-align: center !important;
    }
    
    .eightam-tablet-align-right {
        text-align: right !important;
    }
    
    .eightam-tablet-align-justify {
        text-align: justify !important;
    }
}

/* Editor Styles for Better UX */
.eightam-responsive-tabs .components-tab-panel__tab {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-right: 2px;
    cursor: pointer;
}

.eightam-responsive-tabs .components-tab-panel__tab.is-active {
    background-color: #007cba;
    color: white;
}

.eightam-align-button {
    transition: all 0.2s ease;
}

.eightam-align-button:hover {
    background-color: #005a87 !important;
    color: white !important;
}


@media screen and (min-width: 769px) {
	 body .blockopts-hide.blockopts-desktop, body .editorskit-no-desktop {
		 display: none;
	}
	 body .blockopts-show.blockopts-desktop {
		 display: block;
	}
}
 @media screen and (max-width: 768px) and (min-width: 737px) {
	 body .blockopts-hide.blockopts-tablet, body .editorskit-no-tablet {
		 display: none;
	}
	 body .blockopts-show.blockopts-tablet {
		 display: block;
	}
	 body .has-tablet-text-align-center {
		 text-align: center;
	}
	 body .has-tablet-text-align-center.wp-block-buttons {
		 justify-content: center;
	}
	 body .has-tablet-text-align-right {
		 text-align: right;
	}
	 body .has-tablet-text-align-right.wp-block-buttons {
		 justify-content: right;
	}
	 body .has-tablet-text-align-left {
		 text-align: left;
	}
	 body .has-tablet-text-align-left.wp-block-buttons {
		 justify-content: left;
	}
	 body .has-tablet-text-align-justify {
		 text-align: justify;
	}
}
 @media screen and (max-width: 736px) {
	 body .blockopts-hide.blockopts-mobile, body .editorskit-no-mobile {
		 display: none;
	}
	 body .blockopts-show.blockopts-mobile {
		 display: block;
	}
	 body .has-mobile-text-align-center {
		 text-align: center;
	}
	 body .has-mobile-text-align-center.wp-block-buttons {
		 justify-content: center;
	}
	 body .has-mobile-text-align-right {
		 text-align: right;
	}
	 body .has-mobile-text-align-right.wp-block-buttons {
		 justify-content: right;
	}
	 body .has-mobile-text-align-left {
		 text-align: left;
	}
	 body .has-mobile-text-align-left.wp-block-buttons {
		 justify-content: left;
	}
	 body .has-mobile-text-align-justify {
		 text-align: justify;
	}
}

/* Test indicator for legacy class detection */
.eightam-legacy-detected {
    border: 2px solid red !important;
    position: relative;
}

.eightam-legacy-detected::before {
    content: "LEGACY DETECTED";
    position: absolute;
    top: -20px;
    left: 0;
    background: red;
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    z-index: 1000;
}
