/* public/styles/oracle.css */

/* 1. HUGE CARD CONTAINER (Restored Original Dimensions) */
.flip-card {
    background-color: transparent;
    /* Base massive size */
    width: 600px;
    height: 900px;
    
    /* Responsive constraint: Fits on your 22" screen */
    max-width: 90vw;
    max-height: 85vh; 
    aspect-ratio: 2 / 3;
    
    perspective: 1000px;
    cursor: pointer;
    margin: 0 auto; 
}

/* Inner Container */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* FLIP LOGIC */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Common Styles */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    border-radius: 20px; 
    overflow: hidden; 
    -webkit-backface-visibility: hidden;
}

/* --- THE BACK (Gold Side) --- */
.flip-card-back {
    background-color: #b08a48 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(0deg);
    border: 4px solid #fff;
    z-index: 2;
}

/* The Star Icon (Restored Original Look) */
.flip-card-back i {
    color: #fff;
    font-size: 4rem;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- THE FRONT (Image + Text) --- */
.flip-card-front {
    background-color: #fff; /* White background for text area */
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column; /* Stack Image then Text */
}

/* 1. The Image (Top 75%) */
.card-image-full {
    width: 100%;
    height: 75%; /* Occupies top 3/4 of the card */
    object-fit: cover; 
    display: block;
    border-bottom: 1px solid rgba(176, 138, 72, 0.3); /* Thin gold line separator */
}

/* 2. The Text Area (Bottom 25%) */
.card-overlay {
    position: relative; /* No longer absolute/overlay */
    height: 25%;        /* Occupies bottom 1/4 */
    width: 100%;
    padding: 1.5rem;
    
    background: #fff;   /* Clean white background */
    color: #333;        /* Dark Readable Text */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Typography (Restored Elegance) */
.card-overlay h5 {
    font-family: serif; 
    font-size: 1.8rem;
    color: #b08a48; /* Gold Title */
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.card-overlay p {
    font-size: 1rem;
    line-height: 1.4;
    color: #444; /* Dark Grey Body */
    margin-bottom: 0;
    
    /* Ensure long text doesn't overflow the 25% area */
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    line-clamp: 4; /* ✅ FIXED: Added standard property to satisfy linter */
    -webkit-box-orient: vertical;
    overflow: hidden; 
}

/* Placeholder adjustments */
#cardPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #b08a48;
    background: rgba(176, 138, 72, 0.05);
    border-radius: 20px;
}