/* CREATURE DETAIL MODAL - REDESIGN */

/* Modal Overlay */
.creature-detail-modal-redesign {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    to { opacity: 1; }
}

/* Modal Container */
.creature-detail-container-redesign {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.98) 0%, rgba(10, 20, 40, 0.99) 100%);
    border-radius: 30px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(79, 195, 247, 0.3);
    border: 4px solid rgba(79, 195, 247, 0.4);
    position: relative;
    animation: slideUpModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.creature-detail-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(244, 67, 54, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
    z-index: 10;
}

.creature-detail-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 25px rgba(244, 67, 54, 0.7);
}

/* Card Display Section */
.creature-card-display {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.5) 0%, rgba(20, 30, 50, 0.5) 100%);
    border-radius: 30px 30px 0 0;
    position: relative;
    overflow: hidden;
}

.creature-card-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.15) 0%, transparent 70%);
    animation: cardGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    50% { transform: translate(40px, -40px) rotate(180deg); opacity: 0.8; }
}

.creature-card-image {
    width: 280px;
    height: 380px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(79, 195, 247, 0.4);
    position: relative;
    z-index: 1;
}

.creature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Creature Name */
.creature-detail-name {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(79, 195, 247, 0.6);
    position: relative;
    z-index: 1;
}

/* Rarity and Type Badges */
.creature-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.creature-badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.creature-badge.rarity {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.3) 0%, rgba(123, 31, 162, 0.3) 100%);
    border-color: rgba(171, 71, 188, 0.6);
    color: #ce93d8;
}

.creature-badge.type {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(0, 188, 212, 0.3) 100%);
    border-color: rgba(79, 195, 247, 0.6);
    color: #4fc3f7;
}

/* Quantity Badge */
.creature-quantity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 187, 106, 0.3);
    border: 2px solid rgba(102, 187, 106, 0.6);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #66bb6a;
    position: relative;
    z-index: 1;
}

/* Stats Section */
.creature-stats-section {
    padding: 30px 40px;
}

.creature-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.creature-stat-card {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 3px solid;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.creature-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.creature-stat-card.attack {
    border-color: rgba(244, 67, 54, 0.6);
}

.creature-stat-card.defense {
    border-color: rgba(33, 150, 243, 0.6);
}

.creature-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

.creature-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.creature-stat-card.attack .creature-stat-value {
    color: #ff5252;
}

.creature-stat-card.defense .creature-stat-value {
    color: #42a5f5;
}

.creature-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 700;
}

/* Lore Section */
.creature-lore-section {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8) 0%, rgba(20, 30, 50, 0.9) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 3px solid rgba(79, 195, 247, 0.3);
    margin-bottom: 25px;
}

.creature-lore-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creature-lore-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* Actions Section */
.creature-actions {
    padding: 0 40px 40px;
    display: flex;
    gap: 15px;
}

.creature-action-btn {
    flex: 1;
    padding: 16px 25px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 3px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.creature-action-btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
    border-color: rgba(79, 195, 247, 0.6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

.creature-action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.6);
}

.creature-action-btn.secondary {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(0, 188, 212, 0.3) 100%);
    border-color: rgba(79, 195, 247, 0.5);
    color: #4fc3f7;
}

.creature-action-btn.secondary:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.4) 0%, rgba(0, 188, 212, 0.4) 100%);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .creature-card-display {
        padding: 30px 20px;
    }
    
    .creature-card-image {
        width: 220px;
        height: 300px;
    }
    
    .creature-detail-name {
        font-size: 1.5rem;
    }
    
    .creature-stats-section {
        padding: 25px 20px;
    }
    
    .creature-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .creature-actions {
        padding: 0 20px 30px;
        flex-direction: column;
    }
}
