html {
    scroll-padding-top: 80px;
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
        font-size: 14px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin-bottom: 60px;
    padding-top: 80px;
    background-color: #232323;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.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;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #FFC107;
    color: #000;
    border: none;
    border-radius: 50%;
    padding: 10px 13px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none;
}

    #backToTop:hover {
        background-color: #e0a800;
    }

.app-card-flex {
    background-color: #2b2b2b;
    border-radius: 1rem;
    border: 1px solid #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 185px;
    display: flex;
    overflow: hidden;
}

    .app-card-flex:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
    }

.app-img-col {
    width: 160px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

    .app-img-col img {
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }

.app-info-flex {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-badge {
    height: 50px;
    width: 95px;
    margin: 0 4px;
}

.bg-dark-gray {
    --bs-bg-opacity: 1;
    background-color: #232323;
}

.fst-x-small {
    font-size: x-small !important
}

/*pets*/
#midias-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr); /* Padrão: 2 colunas no mobile */
}

@media (min-width: 576px) {
    #midias-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    #midias-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    #midias-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    #midias-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #333;
    height: 250px;
}

    .gallery-item:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

/* Aspect ratio fixo para os vídeos */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Background desfocado nas imagens */
.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 0;
    transform: scale(1.1);
    opacity: 0.6;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
}

    .image-wrapper img {
        position: relative;
        z-index: 1;
        max-height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

/* Estilo do Gallery Info */
.gallery-info {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 3;
}

.gallery-item:hover .gallery-info {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 3;
}

/* Estilo do Gallery Caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 2;
}

/* Popover de reações */
.reacoes-popover {
    position: absolute;
    top: 10px;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
}

    .reacoes-popover .emoji {
        font-size: 16px;
        line-height: 1;
    }

    .reacoes-popover .count {
        font-size: 12px;
        font-weight: bold;
        margin-left: -4px;
        color: #222;
    }

.gallery-item:hover .reacoes-popover {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.reacoes-popover:hover {
    opacity: 1 !important;
    transition: opacity 0.2s ease;
}

.reacoes-popover {
    pointer-events: auto;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #fadf25 !important;
    color: #000 !important;
    border-color: #d9bc00;
}

.nav-pills .nav-link {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
    border-radius: 8px;
    margin: 2px;
    border: 1px solid #444;
}

#daycare-tab.nav-link {
    border-radius: 8px 0 0 8px !important;
}

#banho-tosa-tab.nav-link {
    border-radius: 0 8px 8px 0 !important;
}

#btn-carregar-mais {
    background-color: #fadf25;
    border: none;
    color: #232323;
    font-weight: bold;
    transition: background-color 0.3s;
}

    #btn-carregar-mais:hover {
        background-color: #e1c821;
    }