/**
 * Archetype Image Display Styles
 * Sleek, luxury presentation for archetype imagery
 */

/* ========================================
   ARCHETYPE HERO (Single Page)
   ======================================== */

.archetype-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.archetype-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.archetype-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 11, 19, 0.3) 0%,
        rgba(2, 11, 19, 0.6) 50%,
        rgba(2, 11, 19, 0.85) 100%
    );
}

.archetype-hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.archetype-hero-eyebrow {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #C9A96E;
    margin-bottom: 16px;
}

.archetype-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 400;
    color: #FAF7F2;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Placeholder when no image */
.archetype-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A1410 0%, #0D0A08 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.archetype-hero-glyph {
    font-size: 120px;
    color: rgba(201, 169, 110, 0.15);
    position: absolute;
}

/* ========================================
   ARCHETYPE CARD (Archive/Grid)
   ======================================== */

.archetype-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #1A1410;
}

.archetype-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.archetype-card-image-wrap:hover .archetype-card-image {
    transform: scale(1.05);
}

.archetype-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1410 0%, #2A2018 100%);
}

.archetype-card-image-fallback .archetype-glyph {
    font-size: 64px;
    color: rgba(201, 169, 110, 0.3);
}

/* Card overlay on hover */
.archetype-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(2, 11, 19, 0.8) 100%
    );
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.archetype-card-image-wrap:hover::after {
    opacity: 1;
}

/* ========================================
   UM PROFILE ARCHETYPE IMAGE
   ======================================== */

.um-archetype-image-card {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.um-archetype-image-link {
    display: block;
    text-decoration: none;
}

.um-archetype-image-bg {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.um-archetype-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 11, 19, 0.2) 0%,
        rgba(2, 11, 19, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    transition: background 0.4s ease;
}

.um-archetype-image-link:hover .um-archetype-image-overlay {
    background: linear-gradient(
        180deg,
        rgba(2, 11, 19, 0.1) 0%,
        rgba(2, 11, 19, 0.6) 100%
    );
}

.um-archetype-label {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #FAF7F2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.um-archetype-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9A96E;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.um-archetype-image-link:hover .um-archetype-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SHORTCODE IMAGE
   ======================================== */

.archetype-image-shortcode {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.archetype-image-shortcode img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .archetype-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .archetype-hero-content {
        bottom: 40px;
    }
    
    .archetype-hero-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    
    .um-archetype-image-bg {
        aspect-ratio: 4/3;
    }
}

/* ========================================
   ARCHIVE PAGE - COMPENDIUM GRID
   Enhanced with images
   ======================================== */

.aa-grid .archetype-card-image-wrap {
    aspect-ratio: 3/4;
}

/* Integration with existing archive-archetype.css */
.aa-arch-card .archetype-card-image-wrap {
    position: relative;
}

.aa-arch-card .archetype-card-image-wrap img {
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.5s ease, transform 0.8s ease;
}

.aa-arch-card:hover .archetype-card-image-wrap img {
    filter: saturate(1) contrast(1);
}
