/* Shadow System Styles */

:root {
    /* Inherit theme colors from main CSS */
    --midnight-sky: #1A1A2E;
    --midnight-sky-medium: #24244A;
    --midnight-sky-deep: #0F0F1E;
    --aurora-blue: #0F4C75;
    --aurora-blue-light: #3282B8;
    --aurora-blue-dark: #0A2E48;
    --starlight-silver: #E5E5E5;
    --starlight-silver-dim: #C7D8ED;
    --wish-gold: #FFD700;
    --wish-gold-bright: #F4D03F;
    --blessing-purple: #8B5CF6;
    --blessing-purple-light: #A78BFA;
    --collect-glow: #06D6A0;
    --collect-glow-bright: #34D399;
    --granted-celebration: #FF006E;
    --granted-celebration-light: #FF1580;
}

.shadow-entity {
    position: relative;
    margin: 20px auto;
    text-align: center;
    animation: shadow-float 4s ease-in-out infinite;
}

@keyframes shadow-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shadow-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.shadow-name {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--blessing-purple, #8B5CF6), var(--wish-gold, #FFD700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.shadow-level {
    font-size: 1rem;
    color: var(--starlight-silver-dim, #C7D8ED);
    margin-bottom: 5px;
}

.shadow-strength {
    font-size: 0.9rem;
    color: var(--starlight-silver-dim, #99A8C2);
}

/* 11:11 Synchronicity Overlay */
.synchronicity-active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(139, 92, 246, 0.15) 30%,
        rgba(26, 26, 46, 0.98) 70%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sync-pulse 2s ease-in-out infinite;
}

@keyframes sync-pulse {
    0%, 100% { backdrop-filter: blur(5px); }
    50% { backdrop-filter: blur(10px); }
}

.sync-container {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.98) 0%, 
        rgba(36, 36, 66, 0.98) 50%,
        rgba(15, 76, 117, 0.95) 100%);
    border: 2px solid var(--wish-gold, #FFD700);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 100px rgba(255, 215, 0, 0.3), 0 0 50px rgba(139, 92, 246, 0.2);
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.sync-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--wish-gold, #FFD700), var(--blessing-purple-light, #A78BFA));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.sync-timer {
    font-size: 4rem;
    font-weight: bold;
    color: var(--starlight-silver, #E5E5E5);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 10px rgba(139, 92, 246, 0.4);
}

.sync-participants {
    font-size: 1.2rem;
    color: var(--starlight-silver-dim, #C7D8ED);
    margin: 10px 0;
}

.sync-participants #sync-count {
    font-size: 1.5rem;
    color: var(--blessing-purple-light, #A78BFA);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.sync-multiplier {
    font-size: 1.1rem;
    color: var(--wish-gold, #FFD700);
    margin: 15px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.sync-button {
    background: linear-gradient(135deg, var(--blessing-purple, #8B5CF6), var(--wish-gold, #FFD700));
    color: var(--midnight-sky, #1A1A2E);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3), 0 3px 15px rgba(139, 92, 246, 0.2);
}

.sync-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5), 0 5px 20px rgba(139, 92, 246, 0.4);
}

.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Confession Wall Styles */
.confession-wall {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(36, 36, 66, 0.9) 100%);
    border: 1px solid rgba(199, 216, 237, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.confession-wall h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--collect-glow-bright, #34D399), var(--wish-gold, #FFD700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(6, 214, 160, 0.3);
}

.confession-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.confession-input textarea {
    background: rgba(15, 76, 117, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.25);
    color: var(--starlight-silver, #E5E5E5);
    padding: 12px;
    border-radius: 12px;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.confession-input textarea:focus {
    outline: none;
    border-color: var(--collect-glow, #06D6A0);
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.2);
    background: rgba(15, 76, 117, 0.25);
}

.confession-input button {
    background: linear-gradient(135deg, var(--collect-glow, #06D6A0), var(--collect-glow-bright, #34D399));
    color: var(--midnight-sky, #1A1A2E);
    border: 1px solid rgba(6, 214, 160, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(6, 214, 160, 0.2);
}

.confession-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(6, 214, 160, 0.4);
}

.confessions-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.confession-card {
    background: rgba(15, 76, 117, 0.1);
    border: 1px solid rgba(199, 216, 237, 0.15);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
}

.confession-card:hover {
    border-color: rgba(6, 214, 160, 0.4);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.15);
    background: rgba(15, 76, 117, 0.2);
}

.confession-text {
    color: var(--starlight-silver, #E5E5E5);
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.5;
}

.confession-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.send-light-btn {
    background: linear-gradient(135deg, var(--wish-gold, #FFD700), var(--wish-gold-bright, #F4D03F));
    color: var(--midnight-sky, #1A1A2E);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 18px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.send-light-btn:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 3px 10px rgba(0,0,0,0.2);
}

.confession-time {
    color: var(--starlight-silver-dim, #99A8C2);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Shadow Battle Styles */
.shadow-battle {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.98) 0%, 
        rgba(36, 36, 66, 0.95) 50%,
        rgba(15, 76, 117, 0.9) 100%);
    border: 2px solid var(--aurora-blue, #0F4C75);
    border-radius: 25px;
    padding: 35px;
    margin: 30px auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.battle-header h3 {
    text-align: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--aurora-blue-light, #3282B8), var(--blessing-purple, #8B5CF6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(15, 76, 117, 0.4);
}

.battle-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.player-side, .opponent-side {
    flex: 1;
    text-align: center;
}

.hp-bar {
    background: rgba(0, 0, 0, 0.3);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(199, 216, 237, 0.2);
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--collect-glow, #06D6A0), var(--collect-glow-bright, #34D399));
    transition: width 0.5s ease;
    box-shadow: inset 0 0 10px rgba(6, 214, 160, 0.3);
}

.hp-fill.opponent {
    background: linear-gradient(90deg, var(--granted-celebration, #FF006E), var(--granted-celebration-light, #FF1580));
    box-shadow: inset 0 0 10px rgba(255, 0, 110, 0.3);
}

.fighter-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--starlight-silver, #E5E5E5);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.battle-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.battle-actions button {
    background: linear-gradient(135deg, var(--aurora-blue, #0F4C75), var(--blessing-purple, #8B5CF6));
    color: var(--starlight-silver, #E5E5E5);
    border: 1px solid rgba(15, 76, 117, 0.3);
    padding: 12px 28px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(15, 76, 117, 0.2);
}

.battle-actions button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 25px rgba(15, 76, 117, 0.4), 0 3px 15px rgba(139, 92, 246, 0.3);
}

.battle-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.battle-log {
    background: rgba(15, 76, 117, 0.1);
    border: 1px solid rgba(199, 216, 237, 0.1);
    border-radius: 12px;
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.battle-log p {
    margin: 5px 0;
    color: var(--starlight-silver-dim, #C7D8ED);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Living NFT Evolution Styles */
.nft-evolution {
    position: relative;
    display: inline-block;
}

.nft-evolution.evolving {
    animation: evolution-glow 2s ease-in-out;
}

@keyframes evolution-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 30px var(--wish-gold, #FFD700)); }
}

.evolution-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.evolution-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
    to {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* Wisdom Chain Styles */
.wisdom-chain {
    background: linear-gradient(135deg, 
        rgba(136, 68, 255, 0.1), 
        rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.wisdom-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #FFD700;
    text-align: center;
    margin-bottom: 15px;
}

.wisdom-chain-info {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

.chain-length {
    color: #8844FF;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sync-container {
        padding: 20px;
        margin: 20px;
    }
    
    .sync-timer {
        font-size: 3rem;
    }
    
    .shadow-battle {
        padding: 20px;
    }
    
    .battle-actions {
        flex-direction: column;
    }
    
    .confession-wall {
        padding: 15px;
    }
}