/* INVESTIGATION FLIP CARDS - BETTER FORMATTING */

/* Card Structure */
.investigation-card {
    width: 100%;
    height: 420px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.investigation-card:hover .card-inner,
.investigation-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Card Front */
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card Back - Dark theme with good contrast */
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1);
}

/* Back Card Content */
.investigation-details {
    text-align: center;
    width: 100%;
}

.card-back h3 {
    color: #d4af37 !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

.card-back p {
    color: #f4e4bc !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    opacity: 0.95;
}

.btn-investigate {
    display: inline-block;
    padding: 12px 30px;
    background: #d4af37;
    color: #0a0a0a !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #d4af37;
}

.btn-investigate:hover {
    background: transparent;
    color: #d4af37 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Front Card Styling */
.investigation-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
}

.investigation-image.placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghost-icon {
    font-size: 4rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.investigation-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.investigation-content h3 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

.investigation-excerpt {
    color: rgba(244, 228, 188, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.investigation-date {
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hover Effects */
.investigation-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.investigation-card:hover .card-front {
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}