/* =========================================
   FLIP CARD STYLES (Dynamic Preview)
   ========================================= */
.flip-card {
    background-color: transparent;
    width: 100%;
    /* Let grid control width */
    max-width: 300px;
    aspect-ratio: 2/3;
    /* Maintain card proportion */
    perspective: 1000px;
    /* 3D effect */
    margin: 0 auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Flip on hover */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* FRONT STYLE (The Color Back) */
.flip-card-front {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.flip-card-front .category-label {
    position: absolute;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    text-transform: uppercase;
}

/* BACK STYLE (The Real Card) */
.flip-card-back {
    background-color: #0b0e14;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flip-card-back img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.flip-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 2rem 1rem 1.5rem;
    z-index: 2;
    text-align: center;
}

.flip-card-title {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.flip-card-cta {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-top: 5px;
    display: inline-block;
    border-bottom: 1px solid var(--gold);
}