/* ============================================================
   TATTOO SIMULATOR CSS — Bombay Beauty
   ============================================================ */

.tattoo-body {
    background: #0a0a0a;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

/* ---- HERO ---- */
.tattoo-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tattoo-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(255,51,102,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(255,100,50,0.15) 0%, transparent 55%),
        linear-gradient(135deg, #0a0a0a 0%, #150a10 50%, #0a0a0a 100%);
}

/* Animated ink-drop particles in hero */
.tattoo-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 20% 30%, rgba(255,51,102,0.5) 0%, transparent 1px),
        radial-gradient(circle 1px at 80% 20%, rgba(255,51,102,0.4) 0%, transparent 1px),
        radial-gradient(circle 2px at 50% 70%, rgba(255,51,102,0.3) 0%, transparent 2px),
        radial-gradient(circle 1px at 10% 80%, rgba(255,51,102,0.4) 0%, transparent 1px),
        radial-gradient(circle 1px at 90% 60%, rgba(255,51,102,0.3) 0%, transparent 1px);
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}

/* ---- TATTOO DESIGN GRID ---- */
.tattoo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.tattoo-card {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 600;
}

.tattoo-card:hover {
    border-color: #ff3366;
    background: #200010;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,51,102,0.3);
}

.tattoo-card.active {
    border-color: #ff3366;
    background: #1a0010;
    box-shadow: 0 0 20px rgba(255,51,102,0.5);
}

.tattoo-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    mix-blend-mode: multiply;
}

/* ---- CANVAS / OVERLAY AREA ---- */
.canvas-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#tattooCanvas {
    max-width: 100%;
    max-height: 480px;
    border-radius: 10px;
    display: block;
}

/* ---- RESULT / ACTION BUTTONS ---- */
.order-btn {
    background: linear-gradient(135deg, #ff3366, #c00030);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,51,102,0.5);
}

.order-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- RETAKE BTN ---- */
.retake-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid #555;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    z-index: 20;
}

.retake-btn:hover {
    background: rgba(255,51,102,0.3);
    border-color: #ff3366;
}

/* ---- UPLOAD BTN ---- */
.upload-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #ff3366;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    margin-top: 10px;
}

.upload-btn:hover {
    background: #ff3366;
    color: #fff;
}

.upload-placeholder {
    text-align: center;
    padding: 40px;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* ---- SCANNER LAYOUT ---- */
.scanner-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.scanner-container {
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.scanner-view {
    background: #000;
    border-radius: 15px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px dashed #333;
}

.scanner-controls {
    flex: 1;
}

.sub-text {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 15px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .scanner-container {
        padding: 20px;
        flex-direction: column !important;
    }

    .tattoo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tattoo-hero .hero-title {
        font-size: 2.5rem !important;
    }
}
