/* ================================
   Skincare Page Styles
   Base styles inherited from magnesium.css
   Adapted with a softer, beauty-focused palette
 ================================ */

/* Main */
.mg-main {
    padding-top: var(--header-height);
}

/* ================================
   Hero Section
 ================================ */
.mg-hero {
    background: linear-gradient(135deg, #fdfcfb 0%, #e2ebf0 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    border-bottom: 1px solid #dde2e8;
}

.mg-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.mg-hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(148, 163, 184, 0.1);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.mg-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.mg-hero-subtitle {
    color: #475569;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.mg-hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.mg-badge {
    padding: var(--space-xs) var(--space-md);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ================================
   About Section
 ================================ */
.mg-about {
    padding: var(--space-3xl) 0;
}

.mg-about-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid #94a3b8;
}

.mg-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-md);
}

.mg-section-title.centered {
    text-align: center;
}

.mg-section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: var(--space-2xl);
    font-size: 0.95rem;
}

.mg-about-text {
    color: #475569;
    line-height: 1.9;
    margin-bottom: var(--space-lg);
}

.mg-about-text strong {
    color: #0f172a;
}

.mg-guideline-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.mg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.mg-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: #f1f5f9;
    border-radius: var(--radius-md);
    text-align: center;
}

.mg-benefit-icon {
    font-size: 1.75rem;
}

.mg-benefit-text {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

/* ================================
   Recipes Section
 ================================ */
.mg-recipes {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: #f8fafc;
}

/* Servings Panel */
.mg-servings-panel {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2xl);
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 100;
}

.mg-servings-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.mg-servings-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
}

.mg-servings-unit {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.mg-servings-inner .number-input {
    background: #f1f5f9;
    padding: 2px;
}

.mg-servings-inner .number-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.mg-servings-inner .form-input {
    width: 40px;
    font-size: 1.1rem;
}

.mg-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Recipe Card */
.mg-recipe-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-top: 3px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.mg-recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.mg-recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.mg-recipe-emoji {
    font-size: 2.5rem;
}

.mg-recipe-meta {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mg-recipe-tag {
    font-size: 0.7rem;
    padding: 2px 10px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    color: #64748b;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.mg-recipe-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-sm);
}

.mg-recipe-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Recipe Detail (accordion) */
.mg-recipe-detail {
    display: none;
    margin-bottom: var(--space-md);
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.mg-recipe-detail.open {
    display: block;
}

.mg-detail-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-sm);
}

.mg-ingredient-section {
    margin-bottom: var(--space-md);
}

.mg-ingredient-list {
    list-style: none;
}

.mg-ingredient-list li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #f0f4f8;
    color: #475569;
    font-size: 0.9rem;
}

.mg-ingredient-list li:last-child {
    border-bottom: none;
}

.mg-steps-section {
    margin-bottom: var(--space-md);
}

.mg-steps-list {
    padding-left: 1.2rem;
}

.mg-steps-list li {
    color: #475569;
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
    line-height: 1.6;
}

.mg-point-box {
    background: #ebf8ff;
    border-left: 3px solid #63b3ed;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
}

.mg-point-box strong {
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
}

/* Toggle Button */
.mg-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-sm);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: auto;
}

.mg-toggle-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.mg-toggle-icon {
    transition: transform var(--transition-normal);
    font-size: 0.75rem;
}

/* ================================
   Safety Guide Section
 ================================ */
.mg-guide {
    padding: var(--space-3xl) 0;
}

.mg-guide-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    margin: 0 auto;
}

.mg-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.mg-guide-item {
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.mg-guide-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.mg-guide-caution {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.mg-guide-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-md);
}

.mg-guide-list {
    list-style: none;
}

.mg-guide-list li {
    font-size: 0.9rem;
    color: #475569;
    padding: var(--space-xs) 0;
    padding-left: var(--space-sm);
    border-left: 2px solid #d1d5db;
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.mg-guide-list li strong {
    color: #0f172a;
}

.mg-tips-box {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: #f0f7ff;
    border-radius: var(--radius-md);
    border: 1px solid #cce3ff;
}

.mg-tips-box .mg-guide-list li {
    border-left-color: #60a5fa;
}

.mg-guide-note {
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    line-height: 1.7;
}

/* ================================
   CTA Section
 ================================ */
.mg-cta-section {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: #f8fafc;
}

.mg-cta-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 600px;
    margin: 0 auto;
    border-top: 3px solid #94a3b8;
}

.mg-cta-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: var(--space-md);
}

.mg-cta-text {
    color: #475569;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.mg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
    transition: var(--transition-normal);
}

.mg-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

/* ================================
   Responsive
 ================================ */
@media (max-width: 1024px) {
    .mg-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mg-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mg-hero {
        padding: var(--space-2xl) 0;
    }

    .mg-recipe-grid {
        grid-template-columns: 1fr;
    }

    .mg-about-card,
    .mg-guide-card {
        padding: var(--space-lg);
    }
}