/* ======================================================
   Tailwind base
   (используется точечно, НЕ ломает Bootstrap)
====================================================== */
@tailwind base;
@tailwind components;
@tailwind utilities;


/* ======================================================
   Global
====================================================== */

body {
    color: #212529;
}


/* ======================================================
   Athlete cards
====================================================== */

.athlete-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.athlete-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}


/* ======================================================
   Federation
====================================================== */

.federation-flag {
    height: 20px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}


/* ======================================================
   Gallery
====================================================== */

/* Контейнер превью */
.gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

/* Контент внутри превью */
.gallery-thumb img,
.gallery-thumb iframe,
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover эффект */
.gallery-thumb img {
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15);
}

/* Бейдж (фото / видео) */
.gallery-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Focus (accessibility) */
.gallery-thumb:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}


/* ======================================================
   Modal gallery
====================================================== */

.modal-content img {
    user-select: none;
    -webkit-user-drag: none;
}


/* ======================================================
   Helpers
====================================================== */

img {
    max-width: 100%;
    height: auto;
}

main {
    flex-shrink: 0;
}
