/**
 * Cat Food Draw - Created by Dragon
 * Cat-themed styles for the 9-slot game
 * v1.0.0-alpha
 */

/* Cat Theme Colors */
.cat-theme {
    --cat-primary: #ff6b9d;
    --cat-secondary: #c44569;
    --cat-accent: #f8b500;
}

/* Cat Header */
.cat-header h1 {
    color: var(--cat-primary);
}

/* 3x3 Cat Grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
}

/* Cat Slot */
.cat-slot {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 3px var(--cat-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-slot:hover {
    transform: scale(1.03);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 157, 0.4),
        inset 0 0 0 3px var(--cat-accent);
}

/* Cat Image Background */
.cat-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/catfood.png') no-repeat center center;
    background-size: 80%;
    z-index: 0;
}

/* Slot Number - Big for unselected */
.cat-slot .slot-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow:
        0 0 20px rgba(255, 20, 147, 1),
        0 0 40px rgba(255, 20, 147, 0.8),
        3px 3px 0 #ff1493,
        -3px -3px 0 #ff1493,
        3px -3px 0 #ff1493,
        -3px 3px 0 #ff1493,
        0 4px 8px rgba(0, 0, 0, 0.8);
    z-index: 2;
    transition: all 0.3s;
}

.cat-slot:hover .slot-number {
    color: var(--cat-accent);
    text-shadow:
        0 0 15px rgba(248, 181, 0, 0.9),
        2px 2px 0 white,
        -2px -2px 0 white;
}

/* Selected Cat Slot */
.cat-slot.selected {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 3px var(--secondary-color);
}

.cat-slot.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 1;
}

.cat-slot.selected .slot-number {
    font-size: 0.7rem;
    top: 3px;
    left: 3px;
    transform: none;
    background: var(--cat-primary);
    padding: 2px 5px;
    border-radius: 4px;
    text-shadow: none;
    color: white;
}

/* Prize text on selected cat slot */
.cat-slot .slot-prize {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    color: var(--cat-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    z-index: 3;
    cursor: pointer;
    text-shadow:
        1px 1px 0 #fff,
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff;
    line-height: 1.3;
}

.cat-slot .slot-prize:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cat Modal Styling */
.cat-modal .prize-card {
    background: linear-gradient(145deg, #ffe4ec 0%, #ffb6c1 50%, #ff69b4 100%);
    border-color: var(--cat-accent);
    padding: 40px;
    padding-bottom: 56px;
}

.cat-modal .prize-card-inner {
    background: linear-gradient(180deg, #fff0f5 0%, #ffe4ec 100%);
    border-color: rgba(255, 107, 157, 0.3);
    padding: 60px 50px;
}

.cat-modal .modal-prize-text {
    color: var(--cat-secondary);
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
    font-size: 2.8rem;
}

.cat-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: catBounce 1s ease-in-out infinite;
}

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

.cat-card .prize-card-type {
    background: linear-gradient(135deg, var(--cat-primary), var(--cat-secondary));
}

/* Cat Footer */
.cat-footer .btn-danger {
    background: linear-gradient(135deg, var(--cat-primary), var(--cat-secondary));
}

.cat-footer .btn-danger:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
}

/* Responsive - Larger screens (tablets) */
@media (min-width: 500px) {
    .cat-grid {
        gap: 15px;
        padding: 1rem;
    }

    .cat-slot .slot-number {
        font-size: 5rem;
    }

    .cat-slot .slot-prize {
        font-size: 1.4rem;
    }
}

/* Responsive - Small screens */
@media (max-width: 450px) {
    .cat-grid {
        gap: 8px;
        padding: 0.25rem;
    }

    .cat-slot .slot-number {
        font-size: 3rem;
    }

    .cat-slot .slot-prize {
        font-size: 0.95rem;
    }
}
