/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* 定義自定義屬性 --angle */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.neon-current-box {
    border-radius: 20px;
    overflow:hidden;
    padding:2px;
    position: relative;
    background-color: #FFFFFF;
}

/* 旋轉邊框 - 使用 conic-gradient 和 @property 創建貪食蛇線條效果 */
.neon-current-box::before {
    content: '';
    position: absolute;
    top: 70%;
    left: 70%;
    width: 150%;
    height: 150%;
    transform-origin: center;
    border-radius: 20px;
    background: conic-gradient(
		from 0deg, 
		transparent 0deg, 
		transparent 270deg, 
		#00bfff69 300deg, 
		#00c3ff 330deg, 
		transparent 360deg
	);
    animation: snakeSpotlight 3s linear infinite;
    filter: drop-shadow(0 0 10px #00bfff);
}

@keyframes snakeSpotlight {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.neon-current-box .elementor-widget-container{
	position: relative;
	background-color:#fff;
	border-radius: 20px;
}

/* 內容樣式 */
.neon-current-box-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00ffff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}


/**/
.neon-border {
    position: relative;
    border-radius: 20px;
}

/* 真正只存在於邊框的動畫 */
.neon-border::after {
    content: "";
    position: absolute;
    inset: -3px;                 /* 邊框外擴 */
    border-radius: 22px;
    padding: 3px;                /* 邊框粗細 */
    pointer-events: none;

    background: conic-gradient(
        transparent 0deg,
        transparent 260deg,
        #00c3ff 300deg,
        #66e6ff 330deg,
        transparent 360deg
    );

    /* 關鍵：只留下邊框環 */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    animation: snakeSpin 3s linear infinite;
}

/* 直接旋轉整個偽元素（一定會動） */
@keyframes snakeSpin {
    to {
        transform: rotate(360deg);
    }
}