/* Nations at War: Premium Indie Game Styles */

:root {
    --card-shadow: 0 10px 20px rgba(0,0,0,0.5);
    --card-glow: 0 0 15px rgba(255,255,255,0.1);
}

body {
    background-color: #0f0f0f;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0) 0%, rgba(15, 15, 15, 1) 100%),
        url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

/* Custom Scrollbar for Hand and Resource lists */
.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Card Styling */
.card-item {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
    pointer-events: none;
}

.card-item:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.1);
    z-index: 50;
}

.card-item.unit { border-left: 4px solid #d4af37; }
.card-item.territory { border-left: 4px solid #28a745; }
.card-item.tactic { border-left: 4px solid #8b5cf6; }

.card-art {
    height: 60%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-name {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    color: #fff;
    padding: 4px;
    text-align: center;
    background: rgba(0,0,0,0.4);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Board Zones */
.zone {
    transition: all 0.3s ease;
}

.zone:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.slot {
    transition: all 0.3s ease;
}

.slot:empty {
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.slot:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Resource Icons */
.res-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

/* Animations */
@keyframes card-draw {
    from { transform: translateY(100px) rotate(10deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

.card-draw-anim {
    animation: card-draw 0.5s ease forwards;
}

@keyframes attack-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.attack-anim {
    animation: attack-shake 0.3s ease;
}
