﻿:root {
    --primary-brand: #4a154b;
    --accent-a: #ff6b6b;
    --accent-b: #4dadf7;
}

.btn-brand {
    background-color: var(--primary-brand);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 21, 75, 0.3);
    transition: all 0.15s ease;
}

    .btn-brand:hover {
        background-color: #5c1b5d;
        color: white;
        transform: scale(1.03);
    }

    .btn-brand:active {
        transform: scale(0.98);
    }

/* 🎒 DRAGGABLE TOKENS */
.drag-token {
    background: white;
    color: #212529;
    border: 2px solid #ced4da;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: grab;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    /* 📱 Built-in Mobile Touch Overrides */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s;
}

    .drag-token:active {
        cursor: grabbing;
        transform: scale(0.95);
    }

/* 🎨 PERFECT OVERLAPPING VENN DESIGN */
.venn-diagram-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0;
    aspect-ratio: 16 / 10;
}

.venn-canvas-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Responsive Drop Zones - Guaranteed Perfect Circular Shapes */
.venn-zone {
    position: absolute;
    top: 18%;
    height: 65%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap; /* ✅ Kept flex-wrap */
    align-content: center; /* 🎯 Centers rows vertically */
    justify-content: center; /* 🎯 Centers tokens horizontally */
    gap: 6px; /* Slightly increased gap so tokens don't choke */
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* Left Circle alignment settings */
.zone-a {
    left: 2%;
    background-color: rgba(255, 107, 107, 0.08);
    border: 2px dashed var(--accent-a);
    padding: 55px 45px 55px 25px; /* 🎯 Balanced padding to center tokens away from intersection */
    z-index: 1;
}

/* Right Circle alignment settings */
.zone-b {
    right: 2%;
    background-color: rgba(77, 173, 247, 0.08);
    border: 2px dashed var(--accent-b);
    padding: 55px 25px 55px 45px; /* 🎯 Balanced padding to center tokens away from intersection */
    z-index: 2;
}

/* Shared Overlap styling - Kept exactly as you liked it */
.zone-intersect {
    left: 27%;
    width: 40%;
    border-radius: 50%;
    background-color: rgba(255, 212, 59, 0.12);
    border: 2px dashed #f59f00;
    justify-content: center;
    align-content: center;
    z-index: 3;
    padding: 40px;
}

.venn-zone.drag-over {
    background-color: rgba(43, 138, 62, 0.15) !important;
    border-style: solid;
}

/* Dynamic Labels Position Layouts */
.label-tag {
    position: absolute;
    top: 4%;
    font-weight: bold;
    font-size: 1.4rem;
}

.label-a {
    left: 6%;
    color: var(--accent-a);
}

.label-b {
    right: 6%;
    color: var(--accent-b);
}

.label-shared {
    left: 50%;
    transform: translateX(-50%);
    color: #d9480f;
    white-space: nowrap;
}

/* 📱 Mobile Adjustments */
@media (max-width: 576px) {
    .label-tag {
        font-size: 1.1rem;
        top: 2%;
    }

    .drag-token {
        width: 2.03rem;
        height: 2.03rem;
        font-size: 1rem;
        border-width: 1px;

    }

        .drag-token.selected {
            background-color: #fff3bf !important; /* Soft yellow background color */
            border-color: #fab005 !important; /* Bright gold border line */
            box-shadow: 0 0 0 4px rgba(250, 176, 5, 0.4), 0 6px 12px rgba(0,0,0,0.15); /* Glowing selection ring */
            transform: scale(1.08); /* Slightly pops up to stand out */
        }

    .zone-a {
        padding: 30px 15px 30px 10px;
    }

    .zone-b {
        padding: 30px 10px 30px 25px;
    }

    .zone-intersect {
        padding: 20px;
    }
}
