﻿/* ========================= */
/* Genel Ayarlar */
/* ========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
    color: #2b2d42;
    padding-top: 5rem;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================= */
/* Navbar */
/* ========================= */
.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }

/* ========================= */
/* Kart Tasarımı */
/* ========================= */
.coupon-card, .opportunity-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .coupon-card:hover, .opportunity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* Coupon Card */
    .coupon-card .card-body {
        background-color: #fff;
        border-left: 5px solid #ff6b35;
        border-radius: 12px;
        padding: 20px;
    }

.coupon-code-box input, .coupon-code-input {
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
}

.copy-btn {
    white-space: nowrap;
    font-weight: 500;
    border-radius: 0 10px 10px 0;
    background: #ff6b35;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .copy-btn:hover {
        background: #e45a2e;
        transform: translateY(-2px);
    }

/* Opportunity Card */
.opportunity-card .card-body {
    border-left: 5px solid;
    border-radius: 12px;
    padding: 20px;
}

.opportunity-card.border-primary {
    border-color: #2b2d42 !important;
}

.opportunity-card.border-success {
    border-color: #28a745 !important;
}

.opportunity-card.border-warning {
    border-color: #ffc107 !important;
}

.opportunity-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover shadow helper */
.hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.icon-circle {
    font-size: 1.2rem;
}

/* Buttons */
.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.view-btn {
    background: linear-gradient(135deg, #ff6b35, #ff9248);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

    .view-btn:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

/* ========================= */
/* Scroll To Top */
/* ========================= */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background: #ff6b35;
    color: white;
    cursor: pointer;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

    #scrollToTopBtn:hover {
        background: #e45a2e;
        transform: translateY(-3px);
    }

/* ========================= */
/* Cookie Banner */
/* ========================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2b2d42;
    color: #fff;
    padding: 15px 20px;
    display: none;
    z-index: 1000;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    #cookie-banner.show {
        display: flex;
        justify-content: space-between;
        align-items: center;
        transform: translateY(0);
        opacity: 1;
    }

    #cookie-banner button {
        background: #ff6b35;
        border: none;
        border-radius: 20px;
        padding: 6px 15px;
        font-weight: 600;
        transition: background 0.3s ease;
    }

        #cookie-banner button:hover {
            background: #e45a2e;
        }

/* ========================= */
/* Responsive Ayarlar */
/* ========================= */
@media (max-width: 767px) {
    .coupon-card .card-body, .opportunity-card .card-body {
        padding: 15px;
    }

    .coupon-code-input {
        font-size: 0.9rem;
    }

    .copy-btn, .view-btn {
        width: 100%;
        margin-top: 8px;
    }

    #scrollToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ========================= */
/* Mikro Hover Animasyonları */
/* ========================= */
.coupon-card, .opportunity-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

    .coupon-card:hover, .opportunity-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
        opacity: 0.98;
    }

.copy-btn {
    transition: background 0.25s ease, transform 0.2s ease;
}

    .copy-btn:hover {
        transform: translateY(-2px) scale(1.03);
        background: #e45a2e;
    }

.view-btn {
    transition: opacity 0.25s ease, transform 0.2s ease;
}

    .view-btn:hover {
        transform: translateY(-2px) scale(1.03);
        opacity: 1;
    }

#scrollToTopBtn {
    transition: background 0.3s ease, transform 0.2s ease;
}

    #scrollToTopBtn:hover {
        transform: translateY(-3px) scale(1.05);
        background: #e45a2e;
    }

/* ========================= */
/* Popüler Markalar Swiper Fix */
/* ========================= */

.popular-brands-swiper .swiper-slide {
    width: 100px; /* Slaytlar için sabit bir genişlik */
    max-width: 120px;
    flex-shrink: 0;
}
.swiper-slide img {
    background: white;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .popular-brands-swiper .swiper-slide {
        width: auto;
        flex: 1 1 auto; /* Büyük ekranlarda eşit genişlikte yayılması için */
    }
}