/* Common Styles - Shared across all pages */
:root {
    --primary-color: #ffcc00;
    --secondary-color: #3b4cca;
    --accent-color: #ff0000;
    --bg-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--bg-dark);
    color: white;
    overflow: hidden;
}

/* Mezza Tag Design - Shared */
.mezza-tag {
    width: 120px;
    height: 200px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 4px solid gold;
    border-radius: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.9;
}

.tag-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    z-index: 1;
}

.tag-star {
    font-size: 0.8rem;
    color: gold;
    text-shadow: 1px 1px 0 #000;
}

.tag-name-bar {
    position: absolute;
    bottom: 10px;
    left: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
}

.tag-pe {
    position: absolute;
    bottom: 40px;
    left: 10px;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 4px;
}

/* Type Colors */
.type-grass {
    background: #2ecc71;
}

.type-fire {
    background: #e74c3c;
}

.type-water {
    background: #3498db;
}

.type-electric {
    background: #f1c40f;
}

.type-fighting {
    background: #c0392b;
}

.type-psychic {
    background: #9b59b6;
}

.type-ghost {
    background: #8e44ad;
}

.type-dragon {
    background: #34495e;
}

.type-steel {
    background: #7f8c8d;
}

.type-fairy {
    background: #ff9ff3;
}

.type-poison {
    background: #8e44ad;
}

.type-rock {
    background: #7f8c8d;
}

.type-ground {
    background: #d35400;
}

.type-bug {
    background: #27ae60;
}

.type-dark {
    background: #2c3e50;
}

.type-normal {
    background: #95a5a6;
}

.type-ice {
    background: #5dade2;
}

.type-flying {
    background: #85c1e9;
}

/* Common Animations */
@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-5px, 5px);
    }

    50% {
        transform: translate(5px, -5px);
    }

    75% {
        transform: translate(-5px, -5px);
    }
}

.shake {
    animation: shake 0.5s;
}

.hidden {
    display: none !important;
}

/* Animations for Catch Scene */
@keyframes catchShake {
    0% { transform: scale(1) rotate(0); }
    10% { transform: scale(1.1) rotate(-10deg); }
    30% { transform: scale(1.1) rotate(10deg); }
    50% { transform: scale(1.1) rotate(-10deg); }
    70% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.catching-animation {
    animation: catchShake 2s infinite;
    filter: sepia(1) saturate(2) hue-rotate(200deg);
}

.queue-pokemon.caught {
    border: 4px solid #2ecc71;
    background: rgba(46, 204, 113, 0.2);
}

.queue-pokemon.failed {
    opacity: 0.5;
    filter: grayscale(1);
}
