/* 老黄历组件样式 - 参考cyberpunk风格设计 */

/* 移除外层卡片包装样式 */
.lunar-calendar-card {
    margin-bottom: 1.5rem;
}

/* 主容器 */
.lunar-calendar-widget {
    padding: 20px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.8) 100%);
    border: 3px solid var(--neon-cyan);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(255, 0, 255, 0.3),
        inset 0 0 60px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: lunarBorderGlitch 3s infinite;
}

@keyframes lunarBorderGlitch {
    0%, 90%, 100% {
        border-color: var(--neon-cyan);
    }
    92% {
        border-color: var(--neon-magenta);
    }
    94% {
        border-color: var(--neon-yellow);
    }
}

/* 扫描线效果 */
.lunar-calendar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 255, 255, 0.03) 1px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 10;
    animation: lunarScanline 8s linear infinite;
}

@keyframes lunarScanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 网格背景 */
.lunar-calendar-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* 日期显示区域 */
.lunar-date-display {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-magenta);
    box-shadow:
        0 0 15px rgba(255, 0, 255, 0.4),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
    clip-path: polygon(
        0 8px, 8px 0, 100% 0, 100% calc(100% - 8px),
        calc(100% - 8px) 100%, 0 100%
    );
    position: relative;
    z-index: 5;
}

.lunar-gregorian-date {
    font-family: 'Orbitron', 'Press Start 2P', monospace;
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.lunar-chinese-date {
    font-size: 0.8125rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 8px var(--neon-yellow);
    margin-bottom: 6px;
}

.lunar-jieqi {
    font-size: 0.6875rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
    margin-top: 6px;
}

/* 生肖徽章 - 改为矩形 */
.lunar-shengxiao-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid var(--neon-magenta);
    padding: 6px 16px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    border-radius: 4px;
    animation: lunarPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes lunarPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
    }
}

/* 信息区块 */
.lunar-info-section {
    margin-bottom: 14px;
    position: relative;
    z-index: 5;
}

.lunar-info-label {
    font-family: 'Orbitron', 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    margin-bottom: 6px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: bold;
}

.lunar-info-label::before {
    content: '▸';
    color: var(--neon-magenta);
    animation: lunarBlink 1.5s infinite;
}

@keyframes lunarBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.lunar-info-content {
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--neon-green);
    padding: 8px 10px;
    font-size: 0.75rem;
    color: #fff;
    line-height: 1.6;
    box-shadow:
        -3px 0 10px rgba(0, 255, 65, 0.3),
        inset 0 0 15px rgba(0, 255, 65, 0.05);
}

.lunar-info-content.lunar-good {
    border-left-color: var(--neon-green);
    color: var(--neon-green);
}

.lunar-info-content.lunar-bad {
    border-left-color: var(--neon-magenta);
    color: #ffaaaa;
}

/* 冲煞警告 */
.lunar-chongsha-warning {
    background: rgba(255, 0, 0, 0.1);
    border: 2px dashed var(--neon-magenta);
    padding: 10px;
    margin-top: 14px;
    font-size: 0.6875rem;
    color: #ff6666;
    text-align: center;
    animation: lunarWarningBlink 2s infinite;
    position: relative;
    z-index: 5;
}

@keyframes lunarWarningBlink {
    0%, 100% {
        background: rgba(255, 0, 0, 0.1);
        border-color: var(--neon-magenta);
    }
    50% {
        background: rgba(255, 0, 0, 0.3);
        border-color: var(--neon-yellow);
    }
}

/* 亮色主题适配 */
body.light-theme .lunar-calendar-widget {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 15px rgba(14, 165, 233, 0.3),
        0 0 30px rgba(236, 72, 153, 0.2);
}

body.light-theme .lunar-date-display {
    background: rgba(248, 250, 252, 0.8);
    border-color: var(--neon-magenta);
}

body.light-theme .lunar-info-content {
    background: rgba(248, 250, 252, 0.5);
}

body.light-theme .lunar-shengxiao-badge {
    background: rgba(236, 72, 153, 0.15);
}

body.light-theme .lunar-chongsha-warning {
    background: rgba(239, 68, 68, 0.1);
}
