﻿@import url(fonts.css);

html {
    position: relative;
    min-height: 100%;
}

body {
    font-size: 0.875rem;
    font-family: IRANSansXFA;
}

a {
    color: inherit;
    text-decoration: inherit;
}



.soldout {
    display: inline-block;
    width: 101px;
    height: 31px;
    background-image: url(/img/soldout2.png);
    background-size: contain;
    position: absolute;
    left: 10px;
    top: 10px;
}

.section-title {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 2px solid #258cfb;
    padding-bottom: 8px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}


.showtime-card {
    border: 2px solid #ddd;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .showtime-card:hover {
        border-color: #0d6efd;
    }

    .showtime-card.selected {
        border-color: #0d6efd;
        background-color: #e7f1ff;
    }

    .showtime-card .status-badge {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
    }

    .showtime-card .countdown {
        font-family: monospace;
        font-size: 0.9rem;
    }

    .showtime-card.selected {
        border-color: #0d6efd !important;
        background-color: #e7f1ff;
    }


/*------- OTP  ------*/

.otp-digit {
    width: 48px;
    height: 56px;
    font-size: 1.5rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s ease;
}

#otpBox {
    direction: ltr;
    gap: 0.5rem;
    justify-content: center;
}

    #otpBox.shake {
        animation: shake 0.4s;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .event-loc-size {
        font-size: .665rem;
    }

    .event-title-size {
        font-size: .795rem;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.bg-soft-gray {
    background-color: #f7f7f7;
}


.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
}

    .product-card:hover {
        box-shadow: 0 0 10px #aaa;
    }

.product-img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

footer {
    background-color: #f8f9fa;
    padding: 0;
    text-align: center;
    margin-top: 40px;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



.custom-bullet-list {
    list-style: none;
    padding-right: 1rem;
}

    .custom-bullet-list li {
        position: relative;
        padding-right: 1.5em;
        margin-bottom: 0.5rem;
    }

        .custom-bullet-list li::before {
            content: "•";
            position: absolute;
            right: 0;
            font-size: 2rem;
            line-height: 0.8;
            color: rgb(0 79 185 / 1);
        }




.checkout-steps {
    position: relative;
    counter-reset: step;
    padding-top: 1rem;
}

    .checkout-steps .step {
        position: relative;
        text-align: center;
        flex: 1;
    }

        /* رسم خط بین هر دو استپ (به جز اولین سمت چپ) */
        .checkout-steps .step::before {
            content: "";
            position: absolute;
            top: 16px;
            right: 100%;
            width: 100%;
            height: 2px;
            background-color: #ccc;
            z-index: 0;
            transform: translateX(50%);
        }

        .checkout-steps .step.active::before {
            background-color: rgb(0 79 185);
        }


        /* مخفی کردن خط برای آخرین مرحله سمت چپ */
        .checkout-steps .step:last-child::before {
            content: none;
        }

    .checkout-steps .circle {
        background-color: #ccc;
        color: white;
        width: 32px;
        height: 32px;
        line-height: 32px;
        border-radius: 50%;
        margin: 0 auto;
        font-weight: bold;
        z-index: 1;
        position: relative;
    }

    .checkout-steps .title {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        color: #888;
    }

    .checkout-steps .step.active .circle {
        background-color: rgb(0 79 185);
    }

    .checkout-steps .step.active .title {
        color: rgb(0 79 185);
        font-weight: bold;
    }



.text-melotik {
    color: rgb(0, 79, 185);
}

.bg-gray {
    background-color: #ededed;
}

.bg-blue-light {
    background-color: #e4eefd;
}

.icon-spacer {
    margin-left: 0.5rem; /* مناسب برای RTL */
    font-size: .8rem;
}

.showtime-meta {
    font-size: 0.7rem;
    color: #444;
}

.filter-btn {
    white-space: nowrap;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.buy-ticket-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.45rem 1rem;
    border-radius: 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease-in-out;
    /*margin-top: 0.5rem;*/
}

/* رنگ‌ها (بدون تداخل با Bootstrap) */
.bt-primary {
    background-color: #0d6efd;
}

.bt-danger {
    background-color: #dc3545;
}

.bt-secondary {
    background-color: #6c757d;
}

.bt-info {
    background-color: #0dcaf0;
}

/* hover رنگ‌ها */
.bt-primary:hover {
    background-color: #0b5ed7;
}

.bt-danger:hover {
    background-color: #bb2d3b;
}

.bt-secondary:hover {
    background-color: #5c636a;
}

.bt-info:hover {
    background-color: #31d2f2;
}

.sale-start-label {
    display: block;
    background-color: #ffffff;
    color: #000000;
    padding: 0.4rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.65rem;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    text-align: center;
}
    /*.sale-start-label {
    display: block;
    background-color: #fff;
    color: #333;
    padding: 0.4rem 0.75rem;
    border-radius: 0.9rem;
    font-size: 0.65rem;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);*/ /* یا border اگر خواستی */
    /*line-height: 1.5;
    text-align: center;
}*/
    .sale-start-label span {
        border-bottom: 1px dotted #000;
        display: inline-block;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

@media (min-width: 768px) {
    .max-md-240 {
        max-width: 240px;
    }
}

@media (max-width: 430.98px) {
    h5, .h5 {
        font-size: 1rem;
    }
}

@media (min-width: 576px) {
    .poster-box {
        height: 407px;
    }
}
.step-title h5 {
    font-weight:700;
}
@media (max-width: 575.98px) {
    h5, .h5 {
        font-size: 1rem;
    }
    .step-title div {
        font-size: 0.775rem;
    }
    .poster-box {
        height: auto;
        aspect-ratio: 3 / 4; /* نسبت متناسب برای تصویر */
    }

    .checkout-steps .title {
        font-size: 0.6rem;
    }

    .custom-bullet-list {
        padding-right: 0;
        font-size: 0.8rem;
    }

    .buy-ticket-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 0.4rem;
    }
}

@media (max-width: 767.98px) {
    h5, .h5 {
        font-size: 1rem;
    }

    .mobile-border-rounded {
        border: 1px solid #1f5a95;
        border-radius: 0.75rem; /* مساوی با rounded-3 */
        padding: 1rem;
    }
}

@media (max-width: 1024.98px) {
    h5, .h5 {
        font-size: 1rem;
    }
}
