/**
 * Atom: Image
 *
 * 5 varyant: default, cover, logo, portrait, circle.
 *
 * Figma değerleri:
 *   cover:    bg #F0F0F0, object-fit cover, overflow hidden
 *   logo:     bg white, border 1px #E9E9E9, object-fit contain, centered
 *   portrait: object-fit cover, doğal aspect ratio
 *   circle:   border-radius 50%, object-fit cover
 *   default:  düz img, ek stil yok
 *
 * @package Saha
 */

/* ----------------------------------------
   Base
   ---------------------------------------- */

.saha-image {
    position: relative;
    overflow: hidden;
}

.saha-image__img {
    display: block;
    max-width: 100%;
    height: auto;
}

.saha-image__caption {
    font-family: var(--saha-font-primary);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--saha-color-text-secondary);
    margin-top: 8px;
}

/* ----------------------------------------
   Variant: Default
   ---------------------------------------- */

/* No additional styles — base is sufficient. */

/* ----------------------------------------
   Variant: Cover
   ---------------------------------------- */

.saha-image--cover {
    background-color: var(--saha-color-bg-secondary);
}

.saha-image--cover .saha-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------------------
   Variant: Logo
   ---------------------------------------- */

.saha-image--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--saha-color-bg-primary);
    border: 1px solid var(--saha-color-border);
}

.saha-image--logo .saha-image__img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* ----------------------------------------
   Variant: Portrait
   ---------------------------------------- */

.saha-image--portrait .saha-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------------------
   Variant: Circle
   ---------------------------------------- */

.saha-image--circle {
    border-radius: 50%;
}

.saha-image--circle .saha-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
