/* Modern design for Bale Mini‑app */

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', system-ui, sans-serif;
    background-color: var(--bale-bg-color, #f8fafc);
    color: var(--bale-text-color, #1e293b);
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Header / Hero section */
.hero {
    background: linear-gradient(135deg, #2c7da0 0%, #1f5e7a 100%);
    border-radius: 0 0 2rem 2rem;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Card container for menu items */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.menu-card {
    background: var(--bale-secondary-bg-color, white);
    border-radius: 1.25rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.1s ease, box-shadow 0.2s;
    cursor: pointer;
}

.menu-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.menu-icon {
    font-size: 2rem;
    width: 3rem;
    text-align: center;
}

.menu-text {
    flex: 1;
}

.menu-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-text p {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

/* Special card for expert */
.menu-card.expert {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}
.menu-card.expert .menu-text p {
    color: rgba(255,255,255,0.8);
}

/* Dark theme adjustments */
body.bale-dark-theme .menu-card {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.bale-dark-theme .menu-text p {
    color: #94a3b8;
}
body.bale-dark-theme .hero {
    background: linear-gradient(135deg, #1e4a6e, #0f3b54);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #1e293b;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-secondary:active {
    background-color: #cbd5e1;
}
body.bale-dark-theme .btn-secondary {
    background-color: #334155;
    color: #f1f5f9;
}