/*
 * OyunAdası Teklif Sistemi v0.1.0
 */

.oa-offer-center,
.oa-offer-center *,
.oa-offer-modal,
.oa-offer-modal *{
    box-sizing:border-box;
    font-family:'Poppins',sans-serif!important;
}

/* İlan detayındaki teklif butonu */
.oa-offer-open-button{
    position:relative;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    width:100%!important;
    min-height:58px!important;
    margin:0!important;
    padding:0 15px!important;
    overflow:hidden!important;
    border:1px solid rgba(239,174,70,.25)!important;
    border-radius:13px!important;
    color:#f4e6cc!important;
    background:
        radial-gradient(circle at 13% 10%,rgba(255,255,255,.06),transparent 34%),
        linear-gradient(145deg,#211b16,#171512)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:700!important;
    text-transform:none!important;
    cursor:pointer!important;
    transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}

.oa-offer-open-button:hover{
    border-color:rgba(239,174,70,.42)!important;
    color:#fff2da!important;
    background:
        radial-gradient(circle at 13% 10%,rgba(255,255,255,.08),transparent 34%),
        linear-gradient(145deg,#282019,#1a1713)!important;
    transform:translateY(-1px);
}

.oa-offer-open-button__icon{
    display:grid;
    place-items:center;
    width:34px;
    min-width:34px;
    height:34px;
    border-radius:10px;
    color:#f2b85c;
    background:rgba(193,124,30,.13);
}

.oa-offer-open-button__icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.oa-offer-open-button__copy{
    display:grid;
    min-width:0;
    flex:1;
    gap:4px;
    text-align:left;
}

.oa-offer-open-button__copy strong{
    color:inherit!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:700!important;
}

.oa-offer-open-button__copy small{
    overflow:hidden;
    color:rgba(255,255,255,.56)!important;
    font-size:9px!important;
    line-height:1.3!important;
    font-weight:500!important;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.oa-offer-open-button__arrow{
    display:grid;
    place-items:center;
    width:28px;
    min-width:28px;
    height:28px;
    border-radius:9px;
    color:#f2b85c;
    background:rgba(193,124,30,.10);
    font-size:15px;
}

/* Modal */
.oa-offer-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.oa-offer-modal.is-open{
    display:flex;
}

.oa-offer-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(2,5,10,.76);
    backdrop-filter:blur(5px);
}

.oa-offer-modal__panel{
    position:relative;
    z-index:1;
    width:min(100%,520px);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.09);
    border-radius:19px;
    color:#f7f9fc;
    background:#101720;
    box-shadow:0 30px 80px rgba(0,0,0,.48);
    animation:oaOfferModalIn .2s ease both;
}

@keyframes oaOfferModalIn{
    from{opacity:0;transform:translateY(8px) scale(.985)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

.oa-offer-modal__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:21px 22px 17px;
    border-bottom:1px solid rgba(255,255,255,.07);
    background:
        radial-gradient(circle at 100% 0,rgba(87,105,255,.16),transparent 42%),
        #101720;
}

.oa-offer-modal__header span{
    display:block;
    margin-bottom:5px;
    color:#f0b65a;
    font-size:9px;
    font-weight:800;
    letter-spacing:.12em;
}

.oa-offer-modal__header h2{
    margin:0 0 5px!important;
    color:#fff!important;
    font-size:20px!important;
    line-height:1.3!important;
    font-weight:700!important;
}

.oa-offer-modal__header p{
    margin:0!important;
    color:#8895a8!important;
    font-size:10px!important;
    line-height:1.55!important;
}

.oa-offer-modal__close{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:10px!important;
    color:#adb6c4!important;
    background:#171f2b!important;
    font-size:18px!important;
    line-height:1!important;
    cursor:pointer!important;
}

.oa-offer-modal__body{
    padding:20px 22px 22px;
}

.oa-offer-modal__price{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:17px;
}

.oa-offer-modal__price>div{
    padding:12px;
    border:1px solid rgba(255,255,255,.07);
    border-radius:11px;
    background:#0b1119;
}

.oa-offer-modal__price small,
.oa-offer-modal__price strong{
    display:block;
}

.oa-offer-modal__price small{
    margin-bottom:5px;
    color:#7f8b9e;
    font-size:9px;
}

.oa-offer-modal__price strong{
    color:#fff;
    font-size:13px;
    line-height:1.35;
}

.oa-offer-form{
    display:grid;
    gap:13px;
}

.oa-offer-form label{
    display:block;
}

.oa-offer-form label>span{
    display:block;
    margin-bottom:7px;
    color:#afb8c7;
    font-size:10px;
    font-weight:700;
}

.oa-offer-form input,
.oa-offer-form select,
.oa-offer-form textarea{
    width:100%!important;
    margin:0!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:10px!important;
    color:#fff!important;
    background:#070c13!important;
    font-size:11px!important;
    outline:none!important;
    box-shadow:none!important;
}

.oa-offer-form input,
.oa-offer-form select{
    height:47px!important;
    padding:0 13px!important;
}

.oa-offer-form textarea{
    min-height:100px!important;
    padding:12px!important;
    line-height:1.65!important;
    resize:vertical!important;
}

.oa-offer-form input:focus,
.oa-offer-form select:focus,
.oa-offer-form textarea:focus{
    border-color:#f0b65a!important;
    box-shadow:0 0 0 3px rgba(240,182,90,.10)!important;
}

.oa-offer-form__hint{
    margin-top:5px;
    color:#778396;
    font-size:8px;
    line-height:1.5;
}

.oa-offer-form__message{
    display:none;
    padding:10px 12px;
    border-radius:9px;
    font-size:9px;
    font-weight:600;
}

.oa-offer-form__message.is-visible{
    display:block;
}

.oa-offer-form__message.is-error{
    border:1px solid rgba(255,83,106,.25);
    color:#ffc0c8;
    background:rgba(151,27,45,.14);
}

.oa-offer-form__message.is-success{
    border:1px solid rgba(31,213,132,.25);
    color:#b8f0d1;
    background:rgba(14,137,79,.14);
}

.oa-offer-form>button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:49px!important;
    margin:0!important;
    padding:0 17px!important;
    border:1px solid rgba(239,174,70,.30)!important;
    border-radius:11px!important;
    color:#171008!important;
    background:linear-gradient(135deg,#f2bf68,#d99b3b)!important;
    box-shadow:0 12px 26px rgba(172,108,26,.22)!important;
    font-size:11px!important;
    font-weight:800!important;
    text-transform:none!important;
    cursor:pointer!important;
}

.oa-offer-form>button:disabled{
    opacity:.6;
    cursor:wait!important;
}

/* Hesabım teklif merkezi */
.oa-offer-center{
    width:100%;
    color:#f7f9fc;
}

.oa-offer-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-bottom:16px;
    padding:24px 26px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:
        radial-gradient(circle at 86% 18%,rgba(239,174,70,.12),transparent 32%),
        linear-gradient(135deg,#111a27,#0a1018);
    box-shadow:0 18px 42px rgba(0,0,0,.14);
}

.oa-offer-hero span{
    display:block;
    margin-bottom:7px;
    color:#efb45a;
    font-size:10px;
    font-weight:800;
    letter-spacing:.13em;
}

.oa-offer-hero h1{
    margin:0 0 7px;
    color:#fff;
    font-size:28px;
    line-height:1.25;
    font-weight:700;
}

.oa-offer-hero p{
    max-width:760px;
    margin:0;
    color:#929eb1;
    font-size:12px;
    line-height:1.7;
}

.oa-offer-list{
    display:grid;
    gap:12px;
}

.oa-offer-card{
    display:grid;
    grid-template-columns:96px minmax(260px,1fr) 125px minmax(170px,auto);
    gap:15px;
    align-items:center;
    padding:14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:15px;
    background:#101720;
    box-shadow:0 14px 34px rgba(0,0,0,.12);
}

.oa-offer-card__image{
    overflow:hidden;
    width:96px;
    height:76px;
    border-radius:10px;
    background:#070c13;
}

.oa-offer-card__image img{
    display:block;
    width:100%;
    height:100%;
    margin:0;
    object-fit:cover;
}

.oa-offer-card__main{
    min-width:0;
}

.oa-offer-card__top{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:7px;
}

.oa-offer-card__top small{
    color:#8793a6;
    font-size:10px;
}

.oa-offer-status{
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:0 8px;
    border-radius:8px;
    color:#d8deff;
    background:rgba(72,91,210,.16);
    font-size:8px;
    line-height:1;
    font-weight:800;
}

.oa-offer-status.is-pending_seller,
.oa-offer-status.is-pending_buyer,
.oa-offer-status.is-accepted{
    color:#f3ca75;
    background:rgba(151,99,19,.16);
}

.oa-offer-status.is-converted{
    color:#65e3a6;
    background:rgba(15,143,83,.16);
}

.oa-offer-status.is-rejected,
.oa-offer-status.is-withdrawn,
.oa-offer-status.is-expired,
.oa-offer-status.is-payment_expired,
.oa-offer-status.is-payment_cancelled,
.oa-offer-status.is-payment_failed,
.oa-offer-status.is-refunded,
.oa-offer-status.is-listing_locked,
.oa-offer-status.is-admin_cancelled{
    color:#aab4c2;
    background:#1a222e;
}

.oa-offer-card h2{
    overflow:hidden;
    margin:0 0 9px;
    font-size:14px;
    line-height:1.4;
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.oa-offer-card h2 a{
    color:#fff!important;
    text-decoration:none!important;
}

.oa-offer-card__prices{
    display:flex;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:18px;
}

.oa-offer-card__prices>div{
    display:grid;
    gap:3px;
}

.oa-offer-card__prices small{
    color:#7f8b9e;
    font-size:8px;
}

.oa-offer-card__prices del{
    color:#8d98aa;
    font-size:11px;
}

.oa-offer-card__prices strong{
    color:#f2c06c;
    font-size:16px;
    line-height:1.25;
    font-weight:800;
}

.oa-offer-history{
    margin-top:10px;
}

.oa-offer-history summary{
    color:#8ea0ff;
    font-size:9px;
    font-weight:600;
    cursor:pointer;
}

.oa-offer-history>div{
    margin-top:8px;
    padding:10px;
    border-radius:9px;
    background:#0b1119;
}

.oa-offer-history p{
    margin:0 0 8px;
    color:#909caf;
    font-size:8px;
    line-height:1.55;
}

.oa-offer-history p:last-child{
    margin-bottom:0;
}

.oa-offer-history p strong{
    color:#d9dfe9;
}

.oa-offer-history p span{
    color:#aab4c3;
}

.oa-offer-card__side{
    text-align:right;
}

.oa-offer-card__side small,
.oa-offer-card__side strong{
    display:block;
}

.oa-offer-card__side small{
    margin-bottom:5px;
    color:#7f8b9e;
    font-size:8px;
}

.oa-offer-card__side strong{
    color:#fff;
    font-size:11px;
    line-height:1.4;
}

.oa-offer-card__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:7px;
}

.oa-offer-inline-form{
    margin:0;
}

.oa-offer-card__actions button,
.oa-offer-card__actions>a,
.oa-offer-counter>summary{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:36px!important;
    margin:0!important;
    padding:0 11px!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:9px!important;
    color:#d7deea!important;
    background:#171e29!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:700!important;
    text-transform:none!important;
    text-decoration:none!important;
    cursor:pointer!important;
}

.oa-offer-card__actions .is-accept,
.oa-offer-pay-button{
    border-color:rgba(39,213,135,.24)!important;
    color:#b9f0d2!important;
    background:rgba(14,137,79,.14)!important;
}

.oa-offer-card__actions .is-reject{
    border-color:rgba(255,83,106,.22)!important;
    color:#ff9caa!important;
    background:rgba(145,26,45,.12)!important;
}

.oa-offer-order-button{
    border-color:rgba(83,107,255,.25)!important;
    color:#cdd5ff!important;
    background:rgba(67,85,198,.14)!important;
}

.oa-offer-counter{
    position:relative;
}

.oa-offer-counter[open]{
    z-index:10;
}

.oa-offer-counter>summary{
    list-style:none;
}

.oa-offer-counter>summary::-webkit-details-marker{
    display:none;
}

.oa-offer-counter>form{
    position:absolute;
    top:43px;
    right:0;
    z-index:12;
    display:grid;
    gap:10px;
    width:260px;
    padding:13px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:12px;
    background:#101720;
    box-shadow:0 22px 50px rgba(0,0,0,.35);
}

.oa-offer-counter label>span{
    display:block;
    margin-bottom:5px;
    color:#aab4c3;
    font-size:8px;
    font-weight:700;
}

.oa-offer-counter input,
.oa-offer-counter textarea{
    width:100%!important;
    margin:0!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:8px!important;
    color:#fff!important;
    background:#070c13!important;
    font-size:10px!important;
    box-shadow:none!important;
}

.oa-offer-counter input{
    height:39px!important;
    padding:0 10px!important;
}

.oa-offer-counter textarea{
    min-height:70px!important;
    padding:9px!important;
    resize:vertical!important;
}

.oa-offer-counter form>button{
    border-color:rgba(239,174,70,.28)!important;
    color:#211507!important;
    background:linear-gradient(135deg,#f2bf68,#d99b3b)!important;
}

.oa-offer-alert{
    margin-bottom:13px;
    padding:11px 13px;
    border-radius:10px;
    font-size:10px;
    font-weight:600;
}

.oa-offer-alert.is-success{
    border:1px solid rgba(31,213,132,.25);
    color:#b8f0d1;
    background:rgba(14,137,79,.14);
}

.oa-offer-alert.is-error{
    border:1px solid rgba(255,83,106,.25);
    color:#ffc0c8;
    background:rgba(151,27,45,.14);
}

.oa-offer-empty{
    display:grid;
    place-items:center;
    min-height:220px;
    padding:30px;
    border:1px dashed rgba(255,255,255,.12);
    border-radius:15px;
    color:#8793a6;
    background:#101720;
    text-align:center;
}

.oa-offer-empty h2{
    margin:0 0 7px;
    color:#fff;
    font-size:16px;
}

.oa-offer-empty p{
    margin:0;
    font-size:10px;
}

/* Responsive */
@media(max-width:1100px){
    .oa-offer-card{
        grid-template-columns:88px minmax(0,1fr) 120px;
    }

    .oa-offer-card__image{
        width:88px;
        height:70px;
    }

    .oa-offer-card__actions{
        grid-column:2/-1;
        justify-content:flex-start;
    }
}

@media(max-width:680px){
    .oa-offer-modal{
        padding:10px;
    }

    .oa-offer-modal__panel{
        max-height:calc(100vh - 20px);
        overflow:auto;
    }

    .oa-offer-modal__price{
        grid-template-columns:1fr;
    }

    .oa-offer-hero{
        padding:20px;
    }

    .oa-offer-hero h1{
        font-size:24px;
    }

    .oa-offer-card{
        grid-template-columns:74px minmax(0,1fr);
        gap:12px;
        padding:12px;
    }

    .oa-offer-card__image{
        width:74px;
        height:64px;
    }

    .oa-offer-card__side{
        grid-column:2;
        text-align:left;
    }

    .oa-offer-card__actions{
        grid-column:1/-1;
        width:100%;
        justify-content:flex-start;
    }

    .oa-offer-counter>form{
        right:auto;
        left:0;
        width:min(280px,calc(100vw - 40px));
    }
}
