﻿

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(180deg, #fff8f0 0%, #ffeedd 50%, #00f4e6 100%);
    position: relative;
    min-height: 100vh;
    font-family: 'Vazir', sans-serif;
}
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans/IRANSansWeb.eot');
    src: url('../fonts/IRANSans/IRANSansWeb.eot') format('embedded-opentype'), url('../fonts/IRANSans/IRANSansWeb(FaNum).woff') format('woff'), url('../fonts/IRANSans/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: vazir;
    src: url('../fonts/vazir/Vazir-Light-FD-WOL.eot');
    src: url('../fonts/vazir/Vazir-Light-FD-WOL.eot') format('embedded-opentype'), url('../fonts/vazir/Vazir-Light-FD-WOL.woff') format('woff'), url('../fonts/vazir/Vazir-Light-FD-WOL.ttf') format('truetype');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: vazir-bold;
    src: url('../fonts/vazir/vazir-Bold.eot');
    src: url('../fonts/vazir/vazir-Blod.eot') format('embedded-opentype'), url('../fonts/vazir/Vazir-Bold-FD.woff') format('woff'), url('../fonts/vazir/vazir-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal
}

    /* Cartoon Clouds */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('~/Content/img/clouds.png');
        background-repeat: repeat-x;
        background-size: cover;
        opacity: 0.08;
        pointer-events: none;
        z-index: 0;
    }

    /* Small Floating Bubbles */
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
        background-size: 50px 50px;
        pointer-events: none;
        z-index: 0;
    }

/* Sections & Containers Above Background */
.container, section {
    position: relative;
    z-index: 1;
}

/* Card Styling for Sections */
.card, .cta-card, .stats-card, .age-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover, .cta-card:hover, .stats-card:hover, .age-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 32px rgba(0,0,0,0.15);
    }

/* ===============================
   Focus & Form
================================ */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem #FFD6B8;
}

.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===============================
   Navbar (Kids Theme)
================================ */
.bg-kids {
    background: linear-gradient(135deg, #FF8C42, #FFA866);
}

.nav-kids-link {
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

    .nav-kids-link:hover,
    .nav-kids-link:focus {
        background-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .nav-kids-link.active {
        background-color: rgba(255, 255, 255, 0.35);
    }

/* ===============================
   Dropdown
================================ */
.dropdown-menu {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-weight: 500;
}

    .dropdown-item:hover {
        background-color: #FFF1E6;
    }

/* ===============================
   Navbar toggler
================================ */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===============================
   Footer
================================ */
footer.footer {
    background-color: #ffffff;
    font-size: 0.9rem;
    padding: 1.5rem 0;
}

/* ===============================
   Hero Section
================================ */
.hero-section {
    overflow: hidden;
}

    .hero-section img {
        border-radius: 2rem;
        box-shadow: 0 12px 24px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

        .hero-section img:hover {
            transform: scale(1.05) rotate(-1deg);
        }


.hero-image-shape {
    padding: 1.5rem;
    background: linear-gradient(135deg, #e6f4f1, #ffffff);
    border-radius: 32% 68% 65% 35% / 35% 45% 55% 65%;
    display: inline-block;
}

.hero-image {
    max-width: 100%;
    max-height: 420px;
    border-radius: 24px;
    object-fit: contain;
}


.feature-card {
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 1.5rem;
    cursor: default;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

.feature-icon {
    font-size: 3rem; /* بزرگ و جذاب */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #ffefd5; /* رنگ ملایم پس‌زمینه دایره‌ای */
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
    background: #ffe4b5; /* کمی روشن‌تر روی hover */
}

.feature-card h5 {
    color: #333;
}

.feature-card p {
    font-size: 0.95rem;
}
.book-card {
    border-radius: 1rem;
    background: #fff8f0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

    .book-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

.book-cover {
    border-radius: 1rem 1rem 0 0;
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.badge {
    font-size: 0.65rem;
}

.card-body h6 {
    font-size: 0.85rem;
}

.card-body small {
    font-size: 0.7rem;
}
.favorite-btn {
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .favorite-btn:hover {
        transform: scale(1.2);
    }


.features-section {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.features-bg {
    position: absolute;
    top: -50px; /* تنظیم برای دید بهتر */
    left: 0;
    width: 100%;
    height: 200%;
    background: url('~/Content/img/3aa8087d-1423-474e-a755-8777b1130f52.png') no-repeat center center;
    background-size: cover;
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
    opacity: 0.15; /* خیلی سبک و شفاف */
    z-index: -1;
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

/* افکت اسکرول (اختیاری با JS یا CSS) */
.features-section:hover .features-bg {
    transform: translateY(-20px);
}
.age-section {
    background: linear-gradient(135deg, #fef9f4, #e6f4f1);
    border-radius: 2rem;
    padding: 3rem 0;
}

.age-title {
    color: #0f3d3e;
}

.age-btn {
    background: #ffffff;
    border: 2px solid #ffb347;
    color: #0f3d3e;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
}

    .age-btn:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
        background: #fffbf0;
    }

.age-icon {
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 0.5rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd27f, #ffb347);
    color: white;
    transition: transform 0.3s ease;
}

.age-btn:hover .age-icon {
    transform: scale(1.15) rotate(5deg);
}
.stats-section {
    background: linear-gradient(135deg, #fff7e6, #fef9f4);
}

.stats-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.stats-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffd27f, #ffb347);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.15) rotate(5deg);
}

.highlight-number {
    color: #ff7f50;
    font-size: 2.5rem;
}
.cta-section {
    background: linear-gradient(135deg, #fff4e6, #fef9f4);
}

.cta-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    .cta-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        background: #fff8f0;
    }

.cta-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffd27f, #ffb347);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-icon {
    transform: scale(1.15) rotate(5deg);
}

.cta-btn {
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
