/* ui_info_panel.css - Sacred Tablet (Info Panel) Enhanced UI */

#unit-info {
    flex: 0 0 55%;
    background: #050505;
    background: linear-gradient(to bottom, #0a0a0a, #000);
    border: 2px solid #3e2723;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Harmonized: Always center content vertically */
    padding: 12px 8px;
    color: #aaa;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

/* Content Fade-in Animation */
.info-content-fade {
    animation: infoFadeIn 0.4s ease-out forwards;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes infoFadeIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.default-state-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.decorative-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border: 1px solid rgba(62, 39, 35, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: tabletPulse 4s infinite ease-in-out;
}

@keyframes tabletPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
}

/* Typography & Titles */
.unit-info-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    margin-bottom: 4px;
    white-space: nowrap;
}

.info-row {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin: 6px 0;
}

/* Promotion Button Styling */
.promo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 6px 0;
}

.promo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 140%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.info-promo-btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #4a148c, #311b92);
    border: 1.5px solid #7c4dff;
    border-radius: 6px;
    color: #fff;
    padding: 8px 18px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.info-promo-btn:hover {
    background: linear-gradient(135deg, #6a1b9a, #4527a0);
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(124, 77, 255, 0.6);
    transform: translateY(-2px);
}

.promo-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-label { font-size: 10px; font-weight: 900; color: #ffd700; letter-spacing: 1px; }
.promo-cost-val { font-size: 8px; font-weight: bold; }

/* Stats Styling */
.unit-info-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.12);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 65px;
}

.unit-info-stats span:first-child { font-size: 8px; color: #ffd700; font-weight: 900; opacity: 0.8; margin-bottom: 2px; }
.unit-info-stats span:last-child { font-size: 12px; font-weight: bold; color: #fff; }

.stat-bonus { font-size: 8px; margin-left: 2px; font-weight: 900; }
.stat-bonus.positive { color: #00ff88; }
.stat-bonus.negative { color: #ff1744; }

/* Enemy Info Specialized Styles */
.enemy-info-avatar {
    font-size: 42px;
    margin: 10px 0;
    filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.6));
    animation: enemyPulse 2s infinite alternate ease-in-out;
}

@keyframes enemyPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 8px #ff4500); }
    to { transform: scale(1.15); filter: drop-shadow(0 0 20px #ff0000); }
}

.unit-info-desc {
    font-size: 10px;
    line-height: 1.4;
    color: #999;
    margin: 8px 0;
    max-width: 90%;
    font-style: italic;
}

.info-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(62, 39, 35, 0.8), transparent);
    margin: 10px 0;
}

.info-default-text {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 900;
    color: #3e2723;
    opacity: 0.7;
    letter-spacing: 5px;
    z-index: 2;
}

.info-subtitle { color: #555; font-size: 10px; margin-top: 4px; letter-spacing: 4px; font-weight: bold; z-index: 2; }
.info-lore-text { color: #444; font-size: 9px; line-height: 1.6; max-width: 85%; margin: 12px 0; z-index: 2; }
.info-hint-text { font-size: 8px; color: #333; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; z-index: 2; }

/* Ominous Sacrifice/Demolish Button Styling */
.info-sacrifice-btn {
    background: linear-gradient(to bottom, #1a0000, #000);
    border: 1.5px solid #3e2723;
    border-radius: 4px;
    color: #555;
    font-size: 9px;
    font-family: 'Cinzel', serif;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.info-sacrifice-btn:hover {
    color: #ff1744;
    border-color: #ff1744;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
    background: #000;
}

.info-sacrifice-btn.shrine-demo:hover {
    color: #00e5ff;
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

#unit-info::before, #unit-info::after {
    content: "🌙";
    position: absolute;
    font-size: 10px;
    color: #3e2723;
    top: 4px;
    z-index: 5;
    opacity: 0.5;
}

#unit-info::before { left: 8px; }
#unit-info::after { right: 8px; transform: scaleX(-1); }
