/* ========================================
   Form Elemanları (input, select, buton)
======================================== */

/* Metin kutuları ve select öğeleri için temel stil */
input[type=text], select {
    width: 100%; /* Genişlik tam */
    padding: 12px 20px; /* İç boşluklar */
    margin: 8px 0; /* Üst-alt dış boşluk */
    display: inline-block; /* Satır içi blok */
    border: 1px solid #ccc; /* Gri kenarlık */
    border-radius: 4px; /* Köşeleri yuvarlat */
    box-sizing: border-box; /* Padding dahil hesaplama */
}

/* Gönder (submit) butonları için stil */
input[type=submit] {
    width: 100%;
    background-color: #4CAF50; /* Yeşil arka plan */
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer; /* Üzerine gelindiğinde el imleci */
}

/* Submit butonuna hover efekti */
input[type=submit]:hover {
    background-color: #45a049; /* Daha koyu yeşil */
}


/* ========================================
   Genel Yardımcı Sınıflar
======================================== */

/* Ortalanmış metin */
.text-center{
    text-align: center !important;
}


/* ========================================
   Genel Buton Stilleri
======================================== */

/* Genel buton görünümü */
.button {
    display: inline-block;
    font-weight: 4000; /* Hatalı olabilir, 100-900 arasında olmalı */
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 2.2;
    border-radius: 0.3rem;
    transition: color 150ms ease-in-out, background-color 150ms ease-in-out, border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
    position: relative;
    z-index: 9;
}

/* Buton hover efekti */
.button:hover {
    transition: all 150ms linear;
    opacity: .85;
}

/* Buton aktifken (basılı) */
.button:active {
    transition: all 150ms linear;
    opacity: .75;
}

/* Buton focus efekti */
.button:focus {
    outline: 1px dotted #959595;
    outline-offset: -4px;
}

/* Mavi renkli buton */
.button.button-blue {
    color: #FFFFFF;
    background: #416dea;
}

/* Tam genişlikli buton */
.button.button-block{
    width: 100%;
}

/* Devre dışı bırakılmış buton */
.button:disabled {
    opacity: 0.5;
    cursor: no-drop;
}


/* ========================================
   Kupon Filtresi (xfilter) - Soldan açılan
======================================== */

/* Filtre paneli genel stil */
.cd-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    height: 100%;
    background: #ECEFF1 url(../img/shattered-island.gif) repeat;
    box-shadow: -2px -4px 20px 6px transparent, inset 0px 0px 20px 0px rgb(0, 0, 0);
    z-index: 2;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    transform: translateX(-100%); /* Ekranın dışında başlar */
    transition: transform 300ms, box-shadow 300ms;
    border-right: 5px solid #292c34;
}

/* Filtre içeriği */
.cd-filter p{
    margin-top: 0;
    margin-bottom: 15px;
}

/* İç panel */
.cd-filter .cd-filter-inner{
    position: relative;
    width: 100%;
    height:100%;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Filtre açıkken görünür hale gelir */
.cd-filter.filter-is-visible {
    transform: translateX(0);
    box-shadow: -2px -4px 20px 6px rgba(0, 0, 0, 0.5), inset -30px 0px 30px -30px rgb(0, 0, 0);
}


/* ========================================
   Filtre Açma / Kapama Butonu
======================================== */

.cd-filter-trigger {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    height: 60px;
    line-height: 60px;
    padding: 0 18px;
    background: #292c34;
    color: #e0e0e0;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
    transition: color 500ms, background 500ms;
}

/* Filtre açıkken buton arka planı */
.cd-filter.filter-is-visible .cd-filter-trigger, .cd-filter.filter-is-visible .cd-filter-trigger:hover {
    background: #292c34;
}

/* Butonun metinsel ve ikon gösterimi */
.cd-filter-trigger:before {
    content: "KUPON"; /* Başlangıçta görünen metin */
    opacity: 1;
}
.cd-filter-trigger::after {
    content: "";
    opacity: 0;
}

/* Filtre açıkken "KAPAT" olarak değişir */
.cd-filter.filter-is-visible .cd-filter-trigger::before {
    content: "KAPAT";
}

/* Filtre açıkken çarpı işareti görünümü */
.cd-filter.filter-is-visible .cd-filter-trigger::before,
.cd-filter.filter-is-visible .cd-filter-trigger::after {
    content: '';
    position: relative;
    top: 25px;
    width: 22px;
    height: 3px;
    background-color: #e0e0e0;
    z-index: 10;
    display: block;
    opacity: 1;
}

/* Çarpı işareti dönüşler */
.cd-filter.filter-is-visible .cd-filter-trigger::before{
    transform: rotate(45deg);
    top: 28px;
}
.cd-filter.filter-is-visible .cd-filter-trigger::after{
    transform: rotate(-45deg);
}

/* Popup kapatma ikonları */
.cd-popup-container .cd-popup-close::before {
    transform: rotate(45deg);
    left: 8px;
}
.cd-popup-container .cd-popup-close::after {
    transform: rotate(-45deg);
    right: 8px;
}


/* ========================================
   Mobil Uyumluluk
======================================== */

/* Ekran daraldığında filtre genişliği */
@media only screen and (max-width: 800px) {
    .cd-filter {
        width: 500px;
    }
}

@media only screen and (max-width: 580px) {
    .cd-filter.filter-is-visible .cd-filter-trigger {
        transform: none;
        top: 0;
        left: auto;
        right: 0;
    }

    .cd-filter {
        width: 100%;
    }
}


/* ========================================
   Tekerlek ve İçerik Alanı
======================================== */

/* Filtre başlığı boşluğu */
.cd-filter-title {
    margin-bottom: 30px;
}

/* Tekerlek içerik bölgesi */
.wheel-content-wrapper{
    padding: 40px 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid rgba(255, 255, 255, 0.02);
    color: #fff;
    margin-top: 20px;
}

/* Masaüstü arası ekranlarda dönüş efekti iptali */
@media only screen and (min-width: 798px) and (max-width: 799px) {
    .wheel-wrapper {
        transition: transform 0ms;
    }
}

/* Büyük ekranlarda dönüş ve konumlandırma */
@media only screen and (min-width: 799px) {
    .wheel-wrapper {
        float: left;
        transform: translate(-130%, -20%) rotate(90deg);
        transition: transform 1800ms;
    }

    .cd-filter.filter-is-visible .wheel-wrapper {
        transform: translate(-40%, 40%) rotate(90deg);
    }

    .wheel-content-wrapper {
        float: right;
        width: 86%;
        position: absolute;
        right: 0;
        height: 60%;
        padding: 25px;
        margin: 0;
        display: table;
    }

    .wheel-content-center {
        vertical-align: middle;
        display: table-cell;
    }
}


/* ========================================
   SweetAlert Butonu
======================================== */

.swal-button {
    padding: 7px 19px;
    border-radius: 2px;
    background-color: #416dea;
    font-size: 12px;
    border: 1px solid #416dea;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
}


/* ========================================
   Sağdan Açılan Filtre (Right Position)
======================================== */

.cd-filter.cd-filter-right {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.cd-filter.cd-filter-right.filter-is-visible {
    transform: translateX(0%);
}

.cd-filter.cd-filter-right .cd-filter-trigger {
    right: 100%;
    left: auto;
}

@media only screen and (min-width: 799px) {
    .cd-filter.cd-filter-right .wheel-wrapper {
        float: right;
        transform: translate(100%, 50%) rotate(-90deg);
    }

    .cd-filter.cd-filter-right.filter-is-visible .wheel-wrapper {
        transform: translate(50%,50%) rotate(-90deg);
    }

    .cd-filter.cd-filter-right .wheel-content-wrapper {
        float: left;
        right: auto;
        left: 0;
    }
}


/* ========================================
   Yukarıdan Açılan Filtre (Top Position)
======================================== */

.cd-filter.cd-filter-top {
    left: 0;
    transform: translateY(-100%);
    width: 100%;
    height: 100%;
    box-shadow: none;
    border: 0;
    transition: transform 600ms, box-shadow 600ms;
}

.cd-filter.cd-filter-top.filter-is-visible {
    transform: translateY(0%);
}

.cd-filter.cd-filter-top .cd-filter-trigger {
    left: auto;
    right: 50%;
    top: 100%;
    transform: translateX(50%);
}

.cd-filter.cd-filter-top.filter-is-visible .cd-filter-trigger {
    left: auto;
    right: 0;
    top: 0;
    transform: translateX(0%);
}

@media only screen and (min-width: 799px) {
    .cd-filter.cd-filter-top .wheel-wrapper {
        float: right;
        transform: translate(0%,-100%) rotate(-180deg);
        width: 100%;
    }

    .cd-filter.cd-filter-top.filter-is-visible .wheel-wrapper {
        transform: translate(0%,-50%) rotate(-180deg);
    }

    .cd-filter.cd-filter-top .wheel-content-wrapper {
        float: none;
        left: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
    }
}
