/* public/css/animation-store.css */

/* ----------------------------------------------
   RESET & BASE (کودکانه و حرفه‌ای)
----------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'IRANSans', 'Vazir', 'Segoe UI', cursive, sans-serif;
    background: linear-gradient(145deg, #f9f3e8 0%, #ffe9d6 100%);
    min-height: 100vh;
    padding: 20px;
    color: #2c3e50;
}

/* ظاهر کلی لاراول (با احترام به ساختار) */
.container {
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 60px 60px 40px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(255, 215, 0, 0.2);
    padding: 30px 35px 50px;
    border: 2px solid rgba(255, 235, 200, 0.6);
}

/* هدر خوش‌آمدگویی با شخصیت */
.hero-header {
    text-align: center;
    padding: 25px 10px 35px;
    position: relative;
    background: url('data:image/svg+xml;utf8, viewBox="0 0 300 80" width="300" height="80"><circle cx="30" cy="30" r="12" fill="%23f7d44a" opacity="0.5"/><circle cx="270" cy="20" r="18" fill="%23f7b731" opacity="0.3"/><circle cx="150" cy="10" r="14" fill="%23f7d44a" opacity="0.4"/><circle cx="80" cy="55" r="8" fill="%23f7a54a" opacity="0.5"/><circle cx="220" cy="60" r="10" fill="%23f7c34a" opacity="0.4"/></svg>') repeat-x bottom;
    background-size: 300px 80px;
    border-bottom: 3px dashed #f7d44a;
    margin-bottom: 30px;
}

.hero-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: #2c3e50;
    text-shadow: 4px 4px 0 #f7d44a, 0 6px 20px rgba(247, 212, 74, 0.3);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    background: linear-gradient(to right, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-header h1::after {
    content: "⭐";
    font-size: 40px;
    -webkit-text-fill-color: initial;
    color: #f7d44a;
    margin-right: 12px;
}

.hero-header p {
    font-size: 22px;
    color: #4a4a4a;
    background: rgba(255, 245, 210, 0.7);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 60px;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
    font-weight: 500;
    border: 2px solid #fff3d6;
}

.hero-header p i {
    color: #f7b731;
    margin: 0 6px;
}

.hero-header .emoji-row {
    margin-top: 12px;
    font-size: 28px;
    letter-spacing: 12px;
    opacity: 0.6;
}

/* دسته‌بندی‌ها با دکمه‌های شاد */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    border-right: 8px solid #f7d44a;
    padding-right: 18px;
    background: linear-gradient(to left, #fef7e6, transparent);
    border-radius: 0 30px 30px 0;
    width: fit-content;
}

.section-title i {
    color: #f7a54a;
    font-size: 30px;
}

.category-wrapper {
    background: rgba(255, 241, 215, 0.5);
    padding: 15px 20px;
    border-radius: 80px 20px 80px 20px;
    margin-bottom: 45px;
    border: 2px solid #ffebc0;
    box-shadow: inset 0 2px 10px rgba(255,215,0,0.1);
}

.category-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: center;
}

.btn-category {
    background: white;
    border: 2px solid #f7d44a;
    padding: 12px 28px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 6px 0 #e6b422, 0 8px 16px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fffcf0;
}

.btn-category i {
    color: #f7a54a;
    font-size: 20px;
}

.btn-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 #dbaa1a, 0 12px 24px rgba(247, 212, 74, 0.3);
    background: #fff8e0;
    border-color: #f7b731;
}

.btn-category .badge {
    background: #f7d44a;
    color: #1f2a36;
    border-radius: 30px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: bold;
}

/* شبکه کارت‌ها */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 30px 25px;
    margin-top: 12px;
    margin-bottom: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 40px 20px 40px 20px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07), 0 6px 16px rgba(247, 212, 74, 0.15);
    transition: 0.3s ease;
    border: 2px solid rgba(255, 235, 180, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 24px 40px rgba(247, 212, 74, 0.25), 0 8px 20px rgba(0,0,0,0.08);
    border-color: #f7d44a;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3e3d0;
    border-bottom: 4px solid #f7d44a;
}

.card-body {
    padding: 18px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #fffcf5, #fff6e5);
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1f2a36;
    line-height: 1.3;
}

.card-text {
    font-size: 14px;
    color: #5a4f44;
    margin-bottom: 14px;
    flex: 1;
    background: rgba(255, 240, 210, 0.3);
    padding: 8px 12px;
    border-radius: 30px;
    line-height: 1.5;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: #d48c2c;
    background: #fef3d6;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    margin: 8px 0 12px;
    align-self: flex-start;
    border: 2px solid #f7d44a;
    box-shadow: inset 0 -3px 0 #e0b02a;
}

.btn-primary {
    background: #f7d44a;
    border: none;
    padding: 10px 18px;
    border-radius: 60px;
    font-weight: 700;
    color: #1f2a36;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
    box-shadow: 0 6px 0 #dbaa1a, 0 4px 12px rgba(247, 212, 74, 0.3);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    border: 2px solid #ffea9e;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-primary i {
    color: #2c3e50;
}

.btn-primary:hover {
    background: #fccf3a;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #c99f1a, 0 8px 20px rgba(247, 212, 74, 0.4);
}

/* بخش محبوب‌ها با استایل متفاوت */
.popular-section {
    background: rgba(255, 225, 180, 0.2);
    padding: 20px 20px 10px;
    border-radius: 80px 20px 80px 20px;
    border: 2px dashed #f7b731;
    margin-top: 30px;
}

.popular-section .section-title {
    border-right-color: #f7a54a;
}

/* تصویر placeholder */
.placeholder-img {
    height: 180px;
    background: #e8d5b5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7a654a;
    border-bottom: 4px solid #f7d44a;
    background-image: repeating-linear-gradient(45deg, #f3e0c0 0px, #f3e0c0 10px, #faeac8 10px, #faeac8 20px);
}

.placeholder-img i {
    font-size: 50px;
    color: #dbaa1a;
    opacity: 0.7;
}

.no-image {
    background: #f1e3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: #937b5c;
    font-weight: bold;
    border-bottom: 4px solid #f7d44a;
    font-size: 16px;
}

/* فوتر */
footer {
    margin-top: 40px;
    text-align: center;
    color: #5f4a33;
    font-weight: 500;
    border-top: 2px dotted #f7d44a;
    padding-top: 30px;
    font-size: 16px;
}

footer i {
    color: #f7b731;
}

footer .heart {
    color: #f06292;
}

/* ریسپانسیو */
@media (max-width: 700px) {
    .container { padding: 20px 15px; }
    .hero-header h1 { font-size: 32px; }
    .hero-header p { font-size: 18px; padding: 6px 18px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
    .btn-category { padding: 8px 18px; font-size: 15px; }
    .section-title { font-size: 22px; }
}

@media (max-width: 500px) {
    .grid { grid-template-columns: 1fr 1fr; }
}
