/* =========================
   MENU CARD STYLES
========================= */
.menu-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.2);
}

/* =========================
   CARD CONTENT
========================= */
.card-content {
    padding: 10px 20px 0;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    text-align: left;
    color: #8B4513;
    position: relative;
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 0px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #D2691E;
    transition: width 0.4s ease;
}

.menu-card:hover .card-title::after {
    width: 100%;
}

/* =========================
   CARD IMAGE STYLES
========================= */
.card-image-container {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.menu-card:hover .card-image {
    transform: scale(1.05);
}

/* =========================
   DESCRIPTION OVERLAY
========================= */
.description-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 70%, transparent 100%);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.5s ease;
    border-radius: 0 0 12px 12px;
}

.menu-card:hover .description-overlay {
    height: 70%;
    opacity: 1;
    padding-bottom: 5px;
}

.description-content {
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.menu-card:hover .description-content {
    transform: translateY(0);
}

.description-title {
    font-weight: 700;
    color: #8B4513;
    text-align: center;
    margin-bottom: 15px;
}

.description-text {
    color: #5D4037;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 15px;
}

/* =========================
   FLOATING ELEMENTS & BADGES
========================= */
.floating-elements {
    position: absolute;
    top: 65px;
    right: 25px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.floating-badge {
    background: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: float 3s ease-in-out infinite;
}

.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================
   RESPONSIVE GRID FOR CARDS
========================= */

/* Phone size - 2 cards per row */
@media (max-width: 575.98px) {
    .row.g-4 { margin: 0 -8px; }
    .row.g-4 > [class*="col-"] { padding: 0 8px; margin-bottom: 16px; }
    .col-12.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .menu-card { margin-bottom: 0; }
    .card-content { padding: 8px 15px 0; }
    .card-title { font-size: 18px; }
    .floating-elements { top: 55px; right: 20px; }
    .floating-badge { padding: 4px 8px; font-size: 10px; }
    .description-title { font-size: 13px; margin-bottom: 5px; }
    .description-text { font-size: 12px; margin-bottom: 10px; line-height: 1.2; }
}

/* Small tablet - 3 cards per row */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-12.col-sm-6 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .card-content { padding: 8px 15px 0; }
    .card-title { font-size: 20px; }
    .floating-elements { top: 60px; right: 20px; }
    .floating-badge { padding: 4px 10px; font-size: 11px; }
    .description-title { font-size: 15px; margin-bottom: 5px; }
    .description-text { font-size: 13px; margin-bottom: 10px; line-height: 1.3; }
}

/* Medium tablet - 3 cards per row */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .col-12.col-sm-6.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .card-content { padding: 8px 15px 0; }
    .card-title { font-size: 20px; }
    .floating-elements { top: 60px; right: 20px; }
    .floating-badge { padding: 4px 10px; font-size: 11px; }
    .description-title { font-size: 18px; margin-bottom: 5px; }
    .description-text { font-size: 15px; margin-bottom: 10px; line-height: 1.3; }
}

/* Large screens - 4 cards per row */
@media (min-width: 1200px) {
    .col-12.col-sm-6.col-md-4.col-lg-4.col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .card-content { padding: 8px 15px 0; }
    .card-title { font-size: 20px; }
    .floating-elements { top: 60px; right: 20px; }
    .floating-badge { padding: 4px 10px; font-size: 11px; }
    .description-title { font-size: 20px; margin-bottom: 10px; }
    .description-text { font-size: 16px; margin-bottom: 10px; line-height: 1.3; }
}