﻿.erasmus-bolum {
    padding: 25px 0 0px;
}

    .erasmus-bolum .bolum-baslik {
        font-size: 1.8rem;
        font-weight: 700;
        color: #1a1a2e;
    }

    .erasmus-bolum .bolum-aciklama {
        color: #555;
        max-width: 860px;
        margin: 0 auto;
        line-height: 1.7;
    }

.erasmus-bolum-blok1 {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 10px 10px 20px 10px;
    box-shadow: 0px 0px 15px #ababab;
}

.erasmus-bolum-blok2 {
}

/* Kart */
.erasmus-kart {
    border-radius: 16px !important;
    overflow: hidden;
    transition: box-shadow .28s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

    .erasmus-kart:hover {
        box-shadow: 0 12px 32px rgba(0,0,0,.13) !important;
    }

    .erasmus-kart .kart-gorsel {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

/* Erişebilirlik ikonu */
.erasmus-erisim-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5c518;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 2;
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 0;
}

    .erasmus-erisim-btn:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.25);
    }

@@keyframes erasmusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245,197,24,.55);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(245,197,24,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245,197,24,0);
    }
}

.erasmus-erisim-btn.has-video {
    animation: erasmusPulse 2.2s infinite;
}

/* Kart alt bilgi */
.erasmus-kart-bilgi {
    padding: 14px 16px 16px;
    text-decoration: none;
    display: block;
    color: inherit;
}

    .erasmus-kart-bilgi:hover {
        color: inherit;
    }

.erasmus-kart-baslik {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.erasmus-kart-aciklama {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

/* ─────────────────────────────────────────────
   Video Modal
───────────────────────────────────────────── */

#erasmusVideoModal {
    background: transparent !important;
    pointer-events: none;
}

    #erasmusVideoModal .modal-dialog {
        position: fixed;
        top: 70px;
        right: 15px;
        left: auto;
        margin: 0;
        width: 620px;
        max-width: calc(100vw - 30px);
        pointer-events: all;
        z-index: 1050;
    }

    #erasmusVideoModal .modal-content {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0,0,0,.4);
        border: none;
    }
.erasmus-erisim-btn--blok1 {
    position: absolute;
    /* flex-shrink: 0; */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5c518;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1a1a1a;
    cursor: pointer;
    margin-top: 4px;
    padding: 0;
    animation: erasmusPulse 2.2s infinite;
    transition: transform .2s ease, box-shadow .2s ease;
    right: 15px;
    top: 35px;
}

    .erasmus-erisim-btn--blok1:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(0,0,0,.25);
    }
    /* Header — sürükleme alanı */
    #erasmusVideoModal .modal-header {
        background: #1a1a2e;
        padding: 0 10px;
        border-bottom: none;
        display: flex;
        align-items: center;
        height: 44px;
        user-select: none;
        -webkit-user-select: none;
        cursor: grab;
    }

        #erasmusVideoModal .modal-header:active {
            cursor: grabbing;
        }

#erasmusDragHandle {
    color: rgba(255,255,255,.4);
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    pointer-events: none;
}

#erasmusVideoModal .modal-title {
    color: #fff;
    font-size: 13px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 8px 0 0;
    line-height: 1.3;
}

#erasmusMinimizeBtn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 20px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 2px;
}

    #erasmusMinimizeBtn:hover {
        color: #fff;
    }

#erasmusVideoModal .close {
    color: rgba(255,255,255,.7);
    opacity: 1;
    text-shadow: none;
    font-size: 22px;
    margin: 0;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    float: none;
}

    #erasmusVideoModal .close:hover {
        color: #fff;
    }

#erasmusVideoModal .modal-body {
    background: #000;
    padding: 0;
}

#erasmusVideoModal iframe,
#erasmusVideoModal video {
    width: 100%;
    display: block;
    border: none;
    height: 420px;
}

/* ── Minimized ── */
#erasmusVideoModal.erasmus-minimized .modal-dialog {
    width: 300px;
}

#erasmusVideoModal.erasmus-minimized .modal-body {
    display: none;
}

#erasmusVideoModal.erasmus-minimized .modal-content,
#erasmusVideoModal.erasmus-minimized .modal-header {
    border-radius: 10px;
}

#erasmusVideoModal.erasmus-minimized .modal-header {
    cursor: pointer;
}

#erasmusVideoModal.erasmus-minimized #erasmusMinimizeBtn,
#erasmusVideoModal.erasmus-minimized #erasmusDragHandle,
#erasmusVideoModal.erasmus-minimized .erasmus-resize {
    display: none;
}

/* ─────────────────────────────────────────────
   Resize Köşe Handle'lar
   Sadece sol-alt ve sağ-alt. Hover efekti YOK.
   Mousedown basılı tutunca resize başlar.
───────────────────────────────────────────── */
.erasmus-resize {
    position: absolute;
    bottom: 0;
    width: 22px;
    height: 22px;
    z-index: 20;
    /* Noktalı ızgara — resize yapılabileceğini gösterir */
    background-image: radial-gradient(circle, rgba(255,255,255,.5) 1.2px, transparent 1.2px);
    background-size: 5px 5px;
    background-position: 2px 2px;
    background-repeat: repeat;
}

/* Sağ-alt köşe */
.erasmus-resize-se {
    right: 0;
    cursor: nwse-resize;
    border-radius: 0 0 10px 0;
}

/* Sol-alt köşe */
.erasmus-resize-sw {
    left: 0;
    cursor: nesw-resize;
    border-radius: 0 0 0 10px;
}
