/*===========================================================================
CSS FOR THE INDEX PAGE index.php
===========================================================================*/

body {
margin: 0;
padding: 0;
background: #f7f7f7;
font-family: Arial, sans-serif;
}
.public-hero {
background: #ffffff;
padding: 40px 20px;
text-align: center;
border-bottom: 1px solid #ddd;
}
.public-hero h1 {
margin: 0;
font-size: 32px;
font-weight: 700;
color: #333;
}
.public-hero p {
margin-top: 10px;
font-size: 18px;
color: #666;
}
.public-info {
max-width: 900px;
margin: 40px auto;
padding: 0 20px;
text-align: center;
color: #555;
}
.public-info a {
color: #007bff;
text-decoration: none;
}
.msb-groups-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
.msb-group-card {
background: #ffffff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0,0,0,0.06);
display: flex;
flex-direction: column;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.msb-group-card:hover {
transform: translateY(-4px);
box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}
.msb-group-image {
position: relative;
overflow: hidden;
}
.msb-group-image img {
width: 100%;
height: 220px;
object-fit: cover;
display: block;
}
.msb-badge {
position: absolute;
top: 12px;
left: 12px;
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
color: #fff;
}
/* Legacy near badge (kept for compatibility) */
.msb-badge-near {
background: linear-gradient(135deg, #00b894, #0984e3);
}
/* New tier-based badge styles */
.msb-badge-city {
background: linear-gradient(135deg, #00b894, #0984e3); /* local: green/blue */
}
.msb-badge-nation {
background: linear-gradient(135deg, #ff9f43, #ff6b01); /* nation: orange */
}
.msb-badge-uk {
background: linear-gradient(135deg, #6c5ce7, #a29bfe); /* UK-wide: purple */
}
.msb-badge-world {
background: linear-gradient(135deg, #636e72, #b2bec3); /* worldwide: grey */
}
.msb-group-body {
padding: 1rem 1.1rem 1.2rem;
}
.msb-group-body h3 {
margin: 0 0 0.4rem;
font-size: 1.05rem;
}
.msb-group-location {
margin: 0 0 0.4rem;
font-size: 0.85rem;
color: #666;
}
.msb-group-price {
margin: 0 0 0.4rem;
font-weight: 600;
color: #111;
}
.msb-group-status {
margin: 0 0 0.8rem;
font-size: 0.85rem;
color: #0070ff;
}
.msb-btn {
display: inline-block;
padding: 0.45rem 0.9rem;
border-radius: 999px;
font-size: 0.9rem;
text-decoration: none;
cursor: pointer;
}
.msb-btn-primary {
background: #0070ff;
color: #fff;
}
.msb-pagination {
display: flex;
justify-content: center;
gap: 0.4rem;
margin: 2rem 0 3rem;
flex-wrap: wrap;
}
.msb-page-link {
padding: 0.35rem 0.7rem;
border-radius: 999px;
text-decoration: none;
font-size: 0.9rem;
color: #333;
border: 1px solid #ddd;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.msb-page-link.active {
background: #0070ff;
color: #fff;
border-color: #0070ff;
}
.msb-page-link:hover {
background: #f3f6ff;
border-color: #cbd5ff;
}
.msb-scroll-sentinel {
height: 1px;
}
.msb-badge-extended {
background: #6a1b9a;
color: #fff;
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
position: absolute;
top: 10px;
right: 10px;
z-index: 5;
}

/* Make product grid responsive */
@media (max-width: 600px) {
.product-grid {
grid-template-columns: 1fr !important;
gap: 20px;
}
}
/* Improve spacing between product cards */
.product-card {
margin-bottom: 24px;
}
