@font-face {
    font-family: 'Kalpurush';
    src: url('/fonts/kalpurush.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fefcf5;
    --surface: #ffffff;
    --text: #1e2a2e;
    --text-soft: #2d3e42;
    --muted: #6c7a6e;
    --border: #e2e0cf;
    --primary: #2a6e3b;
    --primary-dark: #1f5230;
    --accent: #d68c3c;
    --grad-start: #2a6e3b;
    --grad-end: #d68c3c;
    --shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
    --glass: rgba(255,248,235,0.7);
}

body.dark {
    --bg: #121d12;
    --surface: #1e2a1f;
    --text: #eef2e6;
    --text-soft: #cfdec2;
    --muted: #9aa88d;
    --border: #2c3b2a;
    --glass: rgba(30,42,31,0.85);
}

body {
    font-family: 'Kalpurush', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* প্রিমিয়াম হেডার */
.premium-header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-radius: 3rem;
    padding: 0.8rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,200,0.3);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.premium-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.theme-btn-glass, .back-premium {
    background: var(--surface);
    border: none;
    border-radius: 2.5rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.theme-btn-glass:hover, .back-premium:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* হিরো প্রিমিয়াম */
.hero-premium {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(145deg, var(--surface) 0%, transparent 100%);
    border-radius: 3rem;
    margin-bottom: 2rem;
}
.gradient-text {
    background: linear-gradient(120deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.search-premium {
    position: relative;
    max-width: 550px;
    margin: 2rem auto 0;
}
.search-input-premium {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border-radius: 3rem;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: 'Kalpurush', monospace;
    font-size: 1rem;
}
.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--muted);
}
.clear-premium {
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* কার্ড গ্রিড (প্রিমিয়াম) */
.cards-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.card-premium {
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}
.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
}
.card-img-premium {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--primary-dark);
}
.card-content-premium {
    padding: 1.5rem;
}
.card-title-premium {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.card-desc-premium {
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* পোস্ট পেজ প্রিমিয়াম */
.post-premium {
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    margin: 2rem 0;
}
.post-hero {
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}
.hero-content h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 10px black;
}
.hero-desc {
    color: #f0f0f0;
    font-size: 1.2rem;
}
.post-body {
    padding: 2rem;
}
.post-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--glass);
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
}
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.ing-item {
    background: var(--bg);
    padding: 0.8rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.accordion-item {
    border-bottom: 1px solid var(--border);
    margin: 0.5rem 0;
}
.accordion-btn {
    background: none;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.accordion-content {
    display: none;
    padding: 0 1rem 1rem 1rem;
}
.share-premium-btn {
    background: var(--accent);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    color: white;
    cursor: pointer;
}

/* ফুটার প্রিমিয়াম */
.premium-footer {
    margin-top: 4rem;
    padding: 2rem 0 1rem;
    border-top: 2px solid var(--border);
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.footer-social a {
    background: var(--surface);
    display: inline-block;
    width: 36px;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    margin-right: 8px;
    transition: 0.2s;
}
.footer-social a:hover {
    background: var(--primary);
    color: white;
}
@media (max-width: 720px) {
    .app-container { padding: 0.8rem; }
    .post-hero { height: 280px; }
    .hero-content h1 { font-size: 1.8rem; }
    .footer-grid { flex-direction: column; text-align: center; }
}