/* ============================================
   RWA DEALS - Özel İndirimler
   ============================================ */

.rwa-deals {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 24px;
    padding: 0 20px;
}

/* ---- Section Header ---- */
.rwa-deals__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rwa-deals__browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}
.rwa-deals__browse:hover {
    color: #f23636;
    border-color: rgba(242,54,54,0.2);
    background: rgba(242,54,54,0.05);
}

.rwa-deals__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rwa-deals__title-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #22c55e;
    animation: dealIconPulse 3s ease-in-out infinite;
}

@keyframes dealIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    50% { box-shadow: 0 0 12px 2px rgba(34, 197, 94, 0.2); }
}

.rwa-deals__browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rwa-deals__browse:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #22c55e;
    text-decoration: none;
    transform: translateX(2px);
}

.rwa-deals__browse i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.rwa-deals__browse:hover i {
    transform: translateX(3px);
}

/* ---- Grid ---- */
.rwa-deals__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 8px;
}

.rwa-deals__card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.rwa-deals__card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.rwa-deals__card:nth-child(3) { grid-column: 3; grid-row: 1; }
.rwa-deals__card:nth-child(4) { grid-column: 3; grid-row: 2; }

/* ---- Entrance Animation ---- */
@keyframes dealCardIn {
    from { opacity: 0; transform: scale(0.97) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Card ---- */
.rwa-deals__card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    animation: dealCardIn 0.5s ease backwards;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
}

.rwa-deals__card:nth-child(1) { animation-delay: 0.05s; }
.rwa-deals__card:nth-child(2) { animation-delay: 0.12s; }
.rwa-deals__card:nth-child(3) { animation-delay: 0.19s; }
.rwa-deals__card:nth-child(4) { animation-delay: 0.26s; }

.rwa-deals__card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Green glow border on hover */
.rwa-deals__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.rwa-deals__card:hover::before {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.06);
}

/* ---- Image ---- */
.rwa-deals__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rwa-deals__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
}

.rwa-deals__card:hover .rwa-deals__img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Bottom gradient */
.rwa-deals__img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ---- Discount Ribbon ---- */
.rwa-deals__ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    z-index: 5;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 36px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* ---- Overlay (name + price) ---- */
.rwa-deals__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.rwa-deals__card:hover .rwa-deals__overlay {
    transform: translateY(-2px);
}

.rwa-deals__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---- Discount Badge ---- */
.rwa-deals__discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.02em;
}

/* ---- Price Wrapper ---- */
.rwa-deals__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

/* ---- Old Price (crossed out) ---- */
.rwa-deals__price-old {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    white-space: nowrap;
    line-height: 1;
}

.rwa-deals__price-old img {
    width: 12px;
    height: 12px;
    opacity: 0.45;
}

/* ---- Price Tag ---- */
.rwa-deals__price {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rwa-deals__card:hover .rwa-deals__price {
    background: rgba(34, 197, 94, 0.35);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.rwa-deals__price img {
    width: 16px;
    height: 16px;
}

/* ---- Shimmer effect on hover ---- */
.rwa-deals__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.rwa-deals__card:hover::after {
    animation: dealShimmer 0.8s ease forwards;
}

@keyframes dealShimmer {
    from { left: -60%; }
    to   { left: 120%; }
}

/* ---- Small card tweaks ---- */
.rwa-deals__card:nth-child(3) .rwa-deals__overlay,
.rwa-deals__card:nth-child(4) .rwa-deals__overlay {
    padding: 10px 12px;
}

.rwa-deals__card:nth-child(3) .rwa-deals__name,
.rwa-deals__card:nth-child(4) .rwa-deals__name {
    font-size: 13px;
}

.rwa-deals__card:nth-child(3) .rwa-deals__price,
.rwa-deals__card:nth-child(4) .rwa-deals__price {
    font-size: 12px;
    padding: 4px 9px;
}

.rwa-deals__card:nth-child(3) .rwa-deals__price-old,
.rwa-deals__card:nth-child(4) .rwa-deals__price-old {
    font-size: 10px;
}

.rwa-deals__card:nth-child(3) .rwa-deals__discount-badge,
.rwa-deals__card:nth-child(4) .rwa-deals__discount-badge {
    font-size: 10px;
    padding: 3px 7px;
    top: 8px;
    left: 8px;
}

.rwa-deals__card:nth-child(3) .rwa-deals__ribbon,
.rwa-deals__card:nth-child(4) .rwa-deals__ribbon {
    font-size: 9px;
    padding: 3px 32px;
    top: 8px;
    right: -32px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .rwa-deals__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px;
    }

    .rwa-deals__card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .rwa-deals__card:nth-child(2) { grid-column: 2; grid-row: 1; }
    .rwa-deals__card:nth-child(3) { grid-column: 1; grid-row: 2; }
    .rwa-deals__card:nth-child(4) { grid-column: 2; grid-row: 2; }
}

@media (max-width: 768px) {
    .rwa-deals {
        padding: 0 12px;
        margin: 14px auto 18px;
    }

    .rwa-deals__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 190px 190px;
        gap: 6px;
    }

    .rwa-deals__name {
        font-size: 12px;
    }

    .rwa-deals__price {
        font-size: 11px;
        padding: 3px 8px;
    }

    .rwa-deals__price img {
        width: 13px;
        height: 13px;
    }

    .rwa-deals__overlay {
        padding: 8px 10px;
    }

    .rwa-deals__ribbon {
        font-size: 8px;
        padding: 3px 28px;
        top: 6px;
        right: -32px;
    }

    .rwa-deals__discount-badge {
        font-size: 10px;
        padding: 3px 7px;
        top: 6px;
        left: 6px;
    }

    .rwa-deals__price-old {
        font-size: 9px;
    }

    .rwa-deals__price-old img {
        width: 10px;
        height: 10px;
    }

    .rwa-deals__header { margin-bottom: 8px; }

    .rwa-deals__title {
        font-size: 14px;
        gap: 8px;
    }

    .rwa-deals__title-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .rwa-deals__browse {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .rwa-deals__grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .rwa-deals__card:nth-child(1),
    .rwa-deals__card:nth-child(2),
    .rwa-deals__card:nth-child(3),
    .rwa-deals__card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .rwa-deals__name { font-size: 14px; }
    .rwa-deals__price { font-size: 13px; padding: 4px 10px; }
}
