﻿/*
 * Styles της εφαρμογής κάρτας - μεταφορά του src/assets/css/styles.css και των
 * component styles του safedealspwa.client (Bootstrap 4 -> 5).
 */

/* ==================== Βάση ==================== */

body.app-body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;
    background-color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Το Site.css του template περιορίζει τα inputs στα 280px */
.app-body input,
.app-body select,
.app-body textarea {
    max-width: none;
}

main.page h1 {
    color: #9F008C;
    font-size: 26px;
}

.text-no-decoration { text-decoration: none; }
.text-justify { text-align: justify; }
.z-999 { z-index: 999; }
.w-60 { width: 60%; }
.w-40 { width: 40%; }
.mb-50 { margin-bottom: 50px; }
.mb-100 { margin-bottom: 100px; }
.pd-lr { padding-left: 0; padding-right: 0; }
.pd-5 { padding: 5px; }
.action-caption { width: 90px; display: inline-block; }

/* ==================== Χρώματα ==================== */

.safe_font_color { color: #ca4398; }
.safe_bg_color { background-color: #ca4398; }
.safe_bg_color_purple { background-color: #8670ad; }
.white-font { color: #fff; }
.black-font { color: #000; }
.green-font { color: #19aaaf; }
.pink-font { color: #ca4398; }
.lightgrey-font { color: #ced4da; }
.bg-violet { background-color: #DF99CA !important; }

/* ==================== Μεγέθη γραμματοσειράς ==================== */

.fs-8 { font-size: 8px; }
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-24 { font-size: 24px; }
.fs-30 { font-size: 30px; }
.fw-300 { font-weight: 300; }

h2.big-section-title {
    color: #b30d43;
    margin-bottom: 0;
    line-height: 1;
    font-size: 1.6rem;
}

    h2.big-section-title span {
        font-weight: bold;
    }

/* ==================== Κουμπιά ==================== */

.btn-round {
    padding: 0 40px;
    height: 36px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-round:before {
        content: "";
        position: absolute;
        inset: 0;
        background: #3d8c9d;
        z-index: 1;
    }

    .btn-round:after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(to right, #19aaaf 60%, #3d8c9d 100%);
        transform: translateX(-20%);
        transition: transform .3s ease-in-out;
        z-index: 10;
    }

    .btn-round:hover, .btn-round:focus, .btn-round:active {
        color: #fff;
    }

        .btn-round:hover:after, .btn-round:focus:after, .btn-round:active:after {
            transform: translateX(0);
        }

    .btn-round span,
    .btn-round i {
        position: relative;
        z-index: 20;
    }

    .btn-round:disabled {
        opacity: .7;
        cursor: wait;
    }

.btn-circle.btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.btn-circle.btn-md {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
}

/* ==================== Header ==================== */

.app-header {
    position: relative;
}

.safeheaderlogo {
    display: block;
    width: 100%;
    height: auto;
}

.app-logout {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .85);
    color: #ca4398;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

html.is-authenticated .app-logout {
    display: inline-flex;
}

/* ==================== Bottom navigation (footer του PWA) ==================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    will-change: transform;
    transform: translateZ(0);
    display: flex;
    height: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 5px -2px #333;
    background-color: #fff;
}

.mobile-bottom-nav__item {
    flex-grow: 1;
    flex-basis: 0;
    text-align: center;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-bottom-nav__item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #212529;
}

.mobile-bottom-nav__item--active .mobile-bottom-nav__item-content,
.mobile-bottom-nav__item--active .mobile-bottom-nav__item-content i {
    color: #ca4398 !important;
}

.mobile-bottom-nav__home {
    margin-top: -20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* ==================== Κάρτα ==================== */

.partnerimglogo {
    width: 300px;
    height: auto;
    margin: 0 auto;
}

@media only screen and (max-width: 768px) {
    .partnerimglogo {
        width: 65%;
    }
}

.card-barcode {
    max-width: 100%;
    height: auto;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(6deg); }
    40%, 80% { transform: rotate(-6deg); }
}

.alertBell i {
    animation-name: shake;
    animation-timing-function: ease-in-out;
    animation-duration: .5s;
    animation-iteration-count: 2;
    animation-delay: .5s;
}

.alertBell .icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alertBell .dropdown-item p {
    white-space: normal;
}

/* ==================== Backend card (πορτοφόλι / καταστήματα) ==================== */

.backend-card {
    background-color: #fff;
    border: none;
    box-shadow: 0 .125rem .8rem rgba(0, 0, 0, .1);
    border-radius: 1rem;
}

.backend-card-header {
    padding: 1.5rem 2rem;
    background-color: #fff;
    border-bottom: none;
    box-shadow: 0 .125rem .8rem rgba(0, 0, 0, .1);
    border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
}

.backend-card-body {
    padding: 2rem;
}

@media (max-width: 575.98px) {
    .backend-card-header { padding: 1rem 1.25rem; }
    .backend-card-body { padding: 1.25rem; }
}

/* ==================== Πορτοφόλι ==================== */

.transaction-date {
    margin-top: .5rem;
    font-size: 13px;
}

.transaction-row {
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}

.transaction-icon {
    min-width: 22px;
}

.currency-switch {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding-left: 0;
}

    .currency-switch .form-check-input {
        margin-left: 0;
        width: 2.5em;
        height: 1.3em;
        cursor: pointer;
    }

        .currency-switch .form-check-input:checked {
            background-color: #ca4398;
            border-color: #ca4398;
        }

.currency-switch__label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
}

.load-more {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

    .load-more a {
        border: 0;
        background-color: #3d8c9d;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .load-more a:hover {
            opacity: .7;
        }

/* ==================== Κοντινά καταστήματα ==================== */

.nearby-map {
    height: 300px;
}

#nearby-stores .list-group-item {
    margin-bottom: 4px;
    border-radius: .5rem;
}

/* ==================== Κατάστημα ==================== */

.single-shop {
    padding-top: 40px;
}

    .single-shop .shop-header {
        margin-bottom: 60px;
    }

        .single-shop .shop-header .shop-type {
            color: #b30d43;
        }

        .single-shop .shop-header .shop-description {
            margin-top: 10px;
            font-size: 18px;
            color: #adb5bd;
            margin-bottom: 20px;
        }

        .single-shop .shop-header .shop-info {
            border-radius: 25px;
            padding: 20px 40px;
            box-shadow: 0 0 30px 0 rgba(0, 0, 0, .1);
        }

            .single-shop .shop-header .shop-info .title {
                text-align: center;
                font-size: 28px;
                color: #b30d43;
                margin-bottom: 20px;
            }

            .single-shop .shop-header .shop-info .all-cats {
                font-size: 20px;
                color: #ced4da;
            }

            .single-shop .shop-header .shop-info .epistrofi {
                color: #9F008C;
                text-align: center;
                font-size: 28px;
            }

            .single-shop .shop-header .shop-info .col-shop-cta {
                text-align: right;
            }

            .single-shop .shop-header .shop-info .shop-cta-btn {
                width: 50px;
                height: 50px;
                background-image: linear-gradient(to right, #19aaaf 0%, #3d8c9d 100%);
                display: inline-flex;
                border-radius: 50%;
                justify-content: center;
                align-items: center;
                flex-shrink: 0;
            }

                .single-shop .shop-header .shop-info .shop-cta-btn:hover,
                .single-shop .shop-header .shop-info .shop-cta-btn:focus {
                    background: #19aaaf;
                }

                .single-shop .shop-header .shop-info .shop-cta-btn svg {
                    width: 20px;
                    height: 20px;
                    fill: #fff;
                }

@media (max-width: 575.98px) {
    .single-shop .shop-header .shop-info { padding: 20px; }
    .single-shop .shop-header .shop-info .title,
    .single-shop .shop-header .shop-info .epistrofi { font-size: 22px; }
}

.store-position {
    position: relative;
    width: 100%;
    height: 300px;
}

    .store-position #map {
        height: 300px;
    }

.photo-gallery {
    columns: 250px;
    column-gap: 20px;
}

    .photo-gallery img {
        width: 100%;
    }

    .photo-gallery article {
        padding: 20px;
        border: 1px solid #999;
        border-radius: 5px;
        background: #fff;
        break-inside: avoid-column;
        margin-bottom: 1rem;
    }

    .photo-gallery a:hover {
        opacity: .7;
    }

/* ==================== Οδηγός εγκατάστασης ==================== */

.a2hs-guide {
    padding: .5rem .25rem 0;
    font-size: 14px;
}

.a2hs-steps {
    padding-left: 1.25rem;
    margin-bottom: .5rem;
}

    .a2hs-steps li {
        margin-bottom: .35rem;
    }

    .a2hs-steps i {
        color: #1976d2;
    }

/* ==================== Loader ==================== */

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 40, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .page-loader .spinner-border {
        width: 3.5rem;
        height: 3.5rem;
        color: #ca4398 !important;
    }

.toast-container {
    z-index: 2100;
}
