/**
 * Maido Menu Frontend Styles
 * 
 * Elegant card layout for treatment menu items
 */

/* ==========================================================================
   Menu Container
   ========================================================================== */

.maido-menu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1rem;
    background-color: var(--bg-light, #fff7ee);
    border-top: 1px solid var(--border, #e0d2c2);
    border-bottom: 1px solid var(--border, #e0d2c2);
}

.maido-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Menu Card
   ========================================================================== */

.maido-menu-card {
    background: var(--white, #ffffff);
    border-radius: 3rem 3rem 0.5rem 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border, #e0d2c2);
    position: relative;
}

.maido-menu-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.maido-menu-card:nth-child(3n+2) {
    transform: translateY(-1rem);
}

@media (max-width: 768px) {
    .maido-menu-card:nth-child(3n+2) {
        transform: translateY(0);
    }
}

/* Image Wrapper */
.maido-menu-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 14rem;
    overflow: hidden;
    background: var(--bg-dark, #eed8b8);
    border-radius: 3rem 3rem 0 0;
}

.maido-menu-card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 1;
}

.maido-menu-card-image-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.maido-menu-card-image,
.maido-menu-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.7s ease;
    border-radius: 3rem 3rem 0 0;
}

.maido-menu-card:hover .maido-menu-card-image,
.maido-menu-card:hover .maido-menu-card-image-wrapper img {
    transform: scale(1.05);
}

/* Image Placeholder */
.maido-menu-card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light, #8c5a3d) 0%, var(--primary, #6b3922) 100%);
}

.maido-menu-card-image-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--bg-light, #fff7ee);
    opacity: 0.8;
}

/* Card Content */
.maido-menu-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.maido-menu-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--font-heading, 'Playfair Display', serif);
}

.maido-menu-card-title a {
    color: var(--primary, #6b3922);
    text-decoration: none;
    transition: color 0.3s ease;
}

.maido-menu-card-title a:hover {
    color: var(--primary-light, #8c5a3d);
}

/* Description */
.maido-menu-card-description {
    margin: 0 0 2rem 0;
    color: var(--text-light, #7a6a5e);
    font-size: 0.875rem;
    line-height: 1.7;
    flex-grow: 1;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.maido-menu-card-description p {
    margin: 0;
}

/* Pricing Table */
.maido-menu-card-pricing-table {
    margin-top: auto;
    margin-bottom: 2rem;
}

/* Price Rows */
.maido-menu-card-price {
    margin: 0;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border, #e0d2c2);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.maido-menu-card-price:first-child {
    padding-top: 0;
}

.maido-menu-card-price:last-child {
    border-bottom: none;
}

.maido-menu-card-price .price-label {
    color: var(--text-body, #4a3f35);
    font-size: 0.9375rem;
    font-weight: 400;
}

.maido-menu-card-price .price-value {
    color: var(--primary, #6b3922);
    font-size: 1.375rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Playfair Display', serif);
    text-align: right;
    min-width: 100px;
}

/* Card Footer */
.maido-menu-card-footer {
    margin-top: 0;
    padding-top: 0;
}

.maido-menu-card-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary, #6b3922);
    background: transparent;
    color: var(--primary, #6b3922);
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.maido-menu-card-button:hover {
    background: var(--primary, #6b3922);
    color: var(--white, #ffffff);
}

/* Popular/Featured Card */
.maido-menu-card.featured .maido-menu-card-content {
    background: var(--bg-light, #fff7ee);
}

.maido-menu-card.featured .maido-menu-card-button {
    background: var(--primary, #6b3922);
    color: var(--white, #ffffff);
}

.maido-menu-card.featured .maido-menu-card-button:hover {
    background: var(--primary-light, #8c5a3d);
}

/* Popular Badge */
.maido-menu-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning, #c9a66b);
    color: var(--primary-dark, #4d2617);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* Image Overlay Text */
.maido-menu-card-overlay-text {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    color: var(--white, #ffffff);
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-style: italic;
    z-index: 2;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.maido-menu-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.125rem;
}

.maido-menu-empty p {
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (2 columns) */
@media (max-width: 992px) {
    .maido-menu-container {
        padding: 3rem 1rem;
    }
    
    .maido-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile (1 column) */
@media (max-width: 768px) {
    .maido-menu-container {
        padding: 2.5rem 1rem;
    }
    
    .maido-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .maido-menu-card-image-wrapper {
        height: 12rem;
    }
    
    .maido-menu-card-content {
        padding: 1.5rem;
    }
    
    .maido-menu-card-title {
        font-size: 1.25rem;
    }
    
    .maido-menu-card-description {
        margin-bottom: 1.5rem;
        font-size: 0.8125rem;
    }
    
    .maido-menu-card-pricing-table {
        margin-bottom: 1.5rem;
    }
    
    .maido-menu-card-price {
        padding: 0.625rem 0;
    }
    
    .maido-menu-card-price .price-label {
        font-size: 0.875rem;
    }
    
    .maido-menu-card-price .price-value {
        font-size: 1.125rem;
        min-width: 80px;
    }
    
    .maido-menu-card-overlay-text {
        font-size: 1rem;
        bottom: 0.75rem;
        left: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .maido-menu-container {
        padding: 10px;
    }
    
    .maido-menu-card-content {
        padding: 12px;
    }
    
    .maido-menu-card-button {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .maido-menu-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .maido-menu-card-button {
        display: none;
    }
}
