/**
 * Responsive Decorative Elements (SVG/PNG frames)
 * مدیریت المان‌های دکوراتیو در سایزهای مختلف
 */

/* ====================================
   حذف همه Frame ها در موبایل و تبلت کوچک
   ==================================== */
@media (max-width: 1023px) {
    /* Frame های دکوراتیو با src شامل frame.svg */
    img[src*="frame.svg"],
    img[src*="Frame.svg"],
    .decorative-frame,
    .frame-decoration {
        display: none !important;
    }
    
    /* Parent containers که فقط frame دارند */
    .absolute[class*="-z-10"]:has(img[src*="frame.svg"]),
    .absolute[class*="z-10"]:has(img[src*="frame.svg"]) {
        display: none !important;
    }
}

/* ====================================
   تبلت بزرگ و لپ‌تاپ کوچک (1024-1279px)
   ==================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
    /* همچنان مخفی نگه‌داشتن frame ها */
    img[src*="frame.svg"],
    img[src*="Frame.svg"] {
        display: none !important;
    }
}

/* ====================================
   Desktop متوسط (1280-1535px)
   ==================================== */
@media (min-width: 1280px) and (max-width: 1535px) {
    /* نمایش frame ها با اندازه کمتر */
    img[src*="frame.svg"],
    img[src*="Frame.svg"] {
        display: block;
        max-width: 80%;
        opacity: 0.8;
    }
}

/* ====================================
   Desktop بزرگ (1536px+)
   ==================================== */
@media (min-width: 1536px) {
    /* نمایش کامل frame ها */
    img[src*="frame.svg"],
    img[src*="Frame.svg"] {
        display: block;
        opacity: 1;
    }
}

/* ====================================
   حذف دیگر المان‌های دکوراتیو در موبایل
   ==================================== */
@media (max-width: 767px) {
    /* Hero Gold Line */
    img[src*="Hero-Gold-Line.svg"],
    img[src*="hero-gold-line.svg"] {
        display: none !important;
    }
    
    /* Background shapes */
    img[src*="Rectangle"],
    img[src*="Ellipse"] {
        opacity: 0.3;
    }
    
    /* Divider icons کوچک‌تر */
    img[src*="divider-icon.svg"] {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ====================================
   تبلت (768-1023px)
   ==================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Hero Gold Line */
    img[src*="Hero-Gold-Line.svg"] {
        display: none !important;
    }
    
    /* Background shapes با شفافیت بیشتر */
    img[src*="Rectangle"],
    img[src*="Ellipse"] {
        opacity: 0.5;
    }
}

/* ====================================
   Service Border در سایزهای مختلف
   ==================================== */
@media (max-width: 1023px) {
    img[src*="service-border.svg"] {
        display: none !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    img[src*="service-border.svg"] {
        max-width: 90%;
    }
}

/* ====================================
   Footer Frame
   ==================================== */
@media (max-width: 1023px) {
    img[src*="Footer-Frame.svg"] {
        display: none !important;
    }
}

/* ====================================
   بهینه‌سازی Performance
   ==================================== */
.decorative-frame,
img[src*="frame.svg"] {
    /* جلوگیری از layout shift */
    will-change: auto;
}

/* ====================================
   Home Shape Background
   ==================================== */
@media (max-width: 767px) {
    /* کاهش سایز background shape در موبایل */
    [style*="home-shape.png"],
    [style*="home-logo.svg"] {
        opacity: 0.3 !important;
    }
}

/* ====================================
   Light Frame در Food Section
   ==================================== */
@media (max-width: 1023px) {
    .light-frame,
    .food-box-shape {
        display: none !important;
    }
}

