.pad-board {
    padding-top: 20px;
}

.tinder-container {
    width: 100%;
    max-width: 350px;
    height: 400px;
    position: relative;
    margin: 0 auto;
    perspective: 1000px;
}

.tinder-card-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    will-change: transform;
    /* This container handles dragging and stack offset */
}

.tinder-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    cursor: grab;
    /* This element handles the flipping */
}

.tinder-card:active {
    cursor: grabbing;
}

.tinder-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.card-front {
    background: linear-gradient(135deg, #4D96FF 0%, #7fabff 100%);
    color: white;
}

.card-back {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: white;
    transform: rotateY(180deg);
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.3);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-word {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.card-sub {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
    font-weight: 600;
}

.swipe-instructions {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
}

.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.swipe-btn {
    appearance: none;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

.swipe-btn:active {
    transform: scale(0.9);
}

.swipe-btn .icon {
    font-size: 1.8rem;
    line-height: 1;
}

.swipe-btn .label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-color);
}

.swipe-btn.wrong {
    color: var(--secondary-coral);
    border: 2px solid var(--secondary-coral);
}

.swipe-btn.correct {
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.swipe-btn.flip {
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

/* Animations for swipe off */
.swipe-left {
    transform: translateX(-150%) rotate(-30deg) !important;
    opacity: 0;
    transition: all 0.5s ease-out;
}

.swipe-right {
    transform: translateX(150%) rotate(30deg) !important;
    opacity: 0;
    transition: all 0.5s ease-out;
}

.deck-empty {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .tinder-container {
        height: 350px;
    }
    
    .card-word {
        font-size: 2.2rem;
    }
    
    .swipe-btn {
        width: 60px;
        height: 60px;
    }
    
    .swipe-btn .icon {
        font-size: 1.4rem;
    }
}
