/* assets/css/style.css */

body {
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, .font-playfair {
    font-family: 'Playfair Display', serif;
}

.perspective-1000 {
    perspective: 1000px;
}

/* Card Stack Layout */
.tinder-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

/* Flip Container */
.flip-container {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

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

/* Card Faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
    /* Glassmorphism base */
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-front {
    display: flex;
    flex-direction: column;
}

.card-back {
    transform: rotateY(180deg);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Scrollbar hiding for card back */
.card-back::-webkit-scrollbar {
    display: none;
}
.card-back {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Gradients for CEO Archetype badges */
.badge-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* Utility for dynamic z-index and scaling based on stack position */
.stacked-0 {
    z-index: 10;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.stacked-1 {
    z-index: 9;
    transform: scale(0.95) translateY(-20px);
    opacity: 0.8;
}

.stacked-2 {
    z-index: 8;
    transform: scale(0.9) translateY(-40px);
    opacity: 0.6;
}

.stacked-hidden {
    z-index: 1;
    transform: scale(0.8) translateY(-60px);
    opacity: 0;
    pointer-events: none;
}

/* Grayscale Image Filters */
.card-front img,
.editor-image-preview {
    filter: grayscale(100%) contrast(1.1) brightness(0.95);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tinder-card:hover .card-front img {
    filter: grayscale(20%) contrast(1.05) brightness(1);
}

/* Live Claiming Session Styles */

/* Lock Overlay for Claimed Cards */
.lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 2.2rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
}

.lock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Highlight user's own claim uniquely */
.lock-overlay.my-claim {
    background: rgba(30, 58, 138, 0.88); /* Deep Blue/Indigo for my claim */
}

/* Claim Button styling */
.claim-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.claim-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.claim-btn:disabled {
    background: #334155;
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    border-color: transparent;
}


