/* ==========================================
       GENEL STİLLER
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.site-logo {
    position: relative;
    height: 80px;
    top: 10px; 
    left: 10px;
    object-fit: contain;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('arkaplan.jpg'); 
    background-repeat: no-repeat;                 
    background-size: cover;                       
    background-position: center;                  
    background-attachment: fixed;                 
    min-height: 100vh; 
    margin: 0;
}

h1 {
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 28px;
    color: #f1f1f1;
    text-shadow: 0 0 20px rgba(124, 97, 97, 0.1);
    position: relative;
    text-align: center;
}

/* ==========================================
       18 YAŞ DOĞRULAMA MODAL VE BULANIKLIK
========================================== */
#yas-dogrulama-perdesi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 12, 0.85); 
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);   
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 10px;
}
.dogrulama-kutusu {
    background: linear-gradient(145deg, #131822 0%, #090b10 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dogrulama-kutusu h2 {
    margin-top: 0;
    color: #ff453a;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.dogrulama-kutusu p {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.yas-buton-grubu {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.yas-buton-grubu button {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    -webkit-tap-highlight-color: transparent; 
}

.yas-btn-evet {
    background-color: #26bb5d;
    color: #ffffff;
}

.yas-btn-evet:hover, .yas-btn-evet:active {
    background-color: #1e9649;
    transform: translateY(-2px);
}

.yas-btn-hayir {
    background-color: #ff453a;
    color: #ffffff;
}

.yas-btn-hayir:hover, .yas-btn-hayir:active {
    background-color: #d63026;
    transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
    .dogrulama-kutusu {
        padding: 30px 20px;
    }
    .dogrulama-kutusu h2 {
        font-size: 19px;
    }
    .dogrulama-kutusu p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .yas-buton-grubu {
        flex-direction: column; 
        gap: 10px;
    }
    .yas-buton-grubu button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ==========================================
       KART LİSTELEME ALANI
========================================== */
img {
    user-select: none;           
    -webkit-user-drag: none;             
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    max-width: 1380px;
    width: 100%;
    gap: 20px;
    justify-content: center;
    padding: 15px;
    flex: 1 0 auto;
}

.es-card {
    width: 100%; 
    max-width: 280px;
    height: 330px; 
    margin-bottom: 12px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.es-card .main-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.es-card:hover .main-card-img {
    transform: scale(1.05);
}

.es-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 10, 0.95) 0%, rgba(4, 6, 10, 0.3) 50%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.es-name {
    position: absolute;
    bottom: 15px; 
    left: 15px;
    right: 15px; 
    z-index: 2;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: color 0.3s;
    display: flex;
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center; 
}

.blinking-name {
    color: #ff0000 !important; 
    font-weight: bold; 
    font-size: 20px !important; 
    animation: neonBlink 0.8s infinite ease-in-out;

}

@keyframes neonBlink {
    0%, 100% {
        opacity: 1;
        color: #ffffff;
        text-shadow: 0 0 4px rgba(244, 8, 8, 0.981);
    }
    50% {
        opacity: 0.3;
        color: #ff0000; 
        text-shadow: 0 0 3px rgb(250, 6, 6);
    }
}

.es-name .card-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-right: 15px; 
    color: #9ca3af;
    font-weight: 500;
}

.es-name .view-icon {
    width: 15px;
    height: 15px;
    fill: #9ca3af;
}

.es-card:hover .es-name {
    color: #00f2fe;
}

/* ==========================================
PREMIUM MODAL DIŞ ALAN VE KARARTMA
========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(4, 7, 12, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal.active {
    display: flex !important;
    opacity: 1;
}

/* Masaüstü Modal Gövdesi */
.modal-content {
    background: linear-gradient(145deg, #0f131a 0%, #090b10 100%);
    width: 100%;
    max-width: 940px;
    height: 490px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-left {
    width: 55%;
    height: 100%;
    background-color: #040508;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-main-image-wrapper {
    position: relative;
    width: 100%;
    height: 380px; 
    background: radial-gradient(circle, #131822 0%, #030406 100%); 
    border-radius: 14px;
    overflow: hidden;
}

#modalImage {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.modal-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 20, 28, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-slider-btn:hover {
    background: #00f2fe;
    color: #04070c;
}

.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.modal-carousel-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden; 
    padding: 2px 0;
    width: 100%;
    scrollbar-width: none; 
}

.modal-carousel-thumbs::-webkit-scrollbar {
    display: none; 
}

.modal-mini-thumb {
    width: 75px;
    height: 55px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-mini-thumb.active {
    opacity: 1;
    border: 2px solid #00f2fe;
}

/* SAĞ PANEL */
.modal-right {
    width: 45%;
    height: 100%;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.modal-right h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #cb1212;
    background: linear-gradient(90deg, #c51313, #b90d0d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 35px; 
}

.info-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-table td {
    padding: 14px 0;
    font-size: 15px;
}

.info-table tr td:first-child {
    color: #8a99ad;
}

.info-table tr td:last-child {
    color: #ffffff;
    text-align: right;
    font-weight: 620;
}

.contact-info {
    padding: 16px 25px; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    font-size: 17px; 
    color: #eef0f4; 
    display: flex;
    justify-content: flex-start; 
    gap: 5px;                      
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;    
    margin-bottom: 0px; 
    animation: kutuBeyazHizliBlink 1.2s infinite ease-in-out; 
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-info span {
    margin-right: 4px; 
}

.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 5px; 
    color: #26bb5d;
    font-size: 20px; 
    font-weight: 840; 
}

.phone-wrapper .wp-icon {
    width: 21px !important;
    height: 21px !important;
}

/* Sadece kutunun renklerini değiştiren yeni animasyon */
@keyframes kutuBeyazHizliBlink {
    0%, 100% {
        background-color: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.04);
        box-shadow: 0 0 0px transparent;
    }
    50% {
        background-color: rgba(255, 255, 255, 0.25); 
        border-color: rgba(255, 255, 255, 0.6);    
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }
}

.custom-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 35px;
    height: 35px;
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.2);
    border-radius: 50%;
    display: inline-flex;       
    justify-content: center;
    align-items: center;
    line-height: 1;            
    padding: 0 0 3px 0;          
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1100; 
    transition: all 0.2s ease;
}

.custom-close-btn:hover {
    background: #ff453a;
    color: #ffffff;
}

.modal-description-box {
    margin-top: 0px;      
    margin-bottom: 15px;  
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 3px solid #00f2fe; 
    border-radius: 4px;
    max-height: 110px;    
    overflow-y: auto;     
    width: 100%;
}

.modal-description-box p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
    YENİ MOBİL KULLANICI UYUMLULUK AYARLARI 
========================================== */
@media screen and (max-width: 992px) {
    .modal-content {
        max-width: 90%;
        height: 520px;
    }
    .modal-main-image-wrapper {
        height: 320px;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 10px;
    }

    .es-card {
        max-width: 100%;
        height: 240px; 
        border-radius: 12px;
    }

    .es-name {
        font-size: 12px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .es-name .card-views {
        font-size: 11px;
        gap: 4px;
    }

    .modal::-webkit-scrollbar,
    .modal-content::-webkit-scrollbar {
        display: none !important;
    }

    .modal {
        padding: 10px;
        scrollbar-width: none; 
    }

    .modal-content {
        height: auto;
        max-height: 88vh; 
        border-radius: 20px;
        overflow-y: auto; 
        scrollbar-width: none;
    }

    .modal-layout {
        flex-direction: column; 
        height: auto; 
    }

    .modal-left {
        width: 100%;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .modal-main-image-wrapper {
        height: 250px; 
    }

    .modal-slider-btn.prev-btn,
    .modal-slider-btn.next-btn {
        display: none !important;
    }

    .modal-mini-thumb {
        width: 65px;
        height: 50px;
    }

    .modal-right {
        width: 100% !important; 
        height: auto;
        padding: 15px 15px;
    }

    .modal-right h2 {
        font-size: 22px;
        margin-bottom: 12px;
        text-align: center;
    }

    .info-table {
        margin-bottom: 15px;
    }

    .info-table td {
        padding: 10px 0;
        font-size: 14px;
    }

    /* Mobil Açıklama Kutusu */
    .modal-description-box {
        margin-top: 5px !important;
        margin-bottom: 20px !important;
        max-height: none !important;  
        overflow-y: visible !important; 
        padding: 8px 12px;
    }

    .contact-info {
        margin-top: 5px;   
        margin-bottom: 10px; 
        padding: 14px 16px;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .phone-wrapper {
        font-size: 15px;
    }
}

@media screen and (max-width: 380px) {
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .es-card {
        height: 210px;
    }

    .modal-main-image-wrapper {
        height: 200px;
    }
}

/* ==========================================
                FOOTER
========================================== */
.site-footer { 
    width: 100%;                  
    background-color: #0b0e17; 
    color: #e2e3e4;               
    text-align: center;           
    padding: 30px 0;               
    border-top: 1px solid #1e293b; 
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;         
    box-sizing: border-box;       
    flex-shrink: 0; 
    margin-top: 25px; 
}

.site-footer p {
    margin: 0;                     
    padding: 0 15px;              
}

@media (max-width: 480px) {
    .site-footer {
        padding: 20px 0;          
        font-size: 13px;          
    }
}