/* Custom styles to complement Bootstrap Flatly theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover effect */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Store card links */
.card-title a {
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #2C3E50 !important;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.375em 0.75em;
}

/* Footer styling */
footer a:hover {
    opacity: 0.8;
}

/* Flash message animation */
.flash-messages .alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ad container */
.ad-container {
    min-height: 90px;
}

/* Responsive typography */
@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Store detail spacing */
.store-detail .card {
    border-width: 1px;
}

/* Custom button hover effects */
.btn {
    transition: all 0.2s ease;
}

/* Fix for long content in cards */
.card-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure cards in grid are same height */
.row-cols-1 > * .card,
.row-cols-md-2 > * .card,
.row-cols-md-3 > * .card,
.row-cols-lg-3 > * .card {
    height: 100%;
}

/* Store logos */
.logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 5px;
    background-color: transparent;
    border: 1px solid #e9ecef;
    padding: 5px;
    overflow: hidden;
}

.logo.light {
    background-color: #f8f9fa;
}

.logo.dark {
    background-color: #888;
}

.logo.no-padding {
    padding: 0;
}

.logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #edf1f7 100%);
}

.logo.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}
