/* =========================================================
   AZMAN FRONTEND PAGES
   Shared styles for:
   - home.blade.php
   - index.blade.php
   - show.blade.php
   ========================================================= */


/* =========================================================
   HOME PAGE
   ========================================================= */

   .az-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(96, 165, 250, .28), transparent 28%),
        radial-gradient(circle at 10% 90%, rgba(59, 130, 246, .22), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 52%, #1d4ed8 100%);
}

.az-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    top: -220px;
    left: -140px;
}

.az-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    right: -100px;
    bottom: -130px;
}

.az-hero-content {
    position: relative;
    z-index: 2;
}

.az-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .45rem .85rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    border-radius: 50px;
    color: #bfdbfe;
    font-size: .78rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.az-hero h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 900;
    line-height: 1.65;
    letter-spacing: -.8px;
    color: #fff;
}

.az-hero h1 span {
    color: #93c5fd;
}

.az-hero-description {
    max-width: 600px;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 2;
}

.az-hero-btn {
    border-radius: 12px;
    padding: .8rem 1.25rem;
    font-weight: 700;
}

.az-hero-visual {
    position: relative;
    z-index: 2;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-hero-card {
    width: 320px;
    padding: 1.6rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .22);
}

.az-hero-card-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .11);
    color: #bfdbfe;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.az-hero-card h5 {
    color: #fff;
    font-weight: 800;
}

.az-hero-card p {
    color: rgba(255, 255, 255, .62);
    font-size: .82rem;
    line-height: 1.9;
}


/* =========================================================
   HOME - STATS
   ========================================================= */

.az-stats {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.az-stat-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 17px;
    padding: 1.25rem .9rem;
    height: 100%;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    transition: .25s ease;
}

.az-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, .11);
}

.az-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.15rem;
    margin: 0 auto .7rem;
}

.az-stat-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}

.az-stat-label {
    color: #64748b;
    font-size: .76rem;
}


/* =========================================================
   HOME - SECTIONS
   ========================================================= */

.az-section {
    padding: 5rem 0;
}

.az-section-light {
    background: #f8fafc;
}

.az-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.az-section-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #172033;
    margin: 0;
}

.az-section-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 20px;
    margin-top: .55rem;
}

.az-section-title-center {
    text-align: center;
}

.az-section-title-center::after {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CONTENT CARDS
   Used by HOME + INDEX
   ========================================================= */

.az-content-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 17px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .045);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.az-content-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
}

.az-content-thumb {
    height: 195px;
    overflow: hidden;
    background: #eef4ff;
}

.az-content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.az-content-card:hover .az-content-thumb img {
    transform: scale(1.045);
}

.az-content-placeholder {
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-content-placeholder i {
    font-size: 3.4rem;
}

.az-content-body {
    padding: 1.15rem;
}

.az-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.az-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .38rem .65rem;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 700;
}

.az-badge-blue {
    background: #eaf1ff;
    color: #1d4ed8;
}

.az-badge-green {
    background: #eaf8ef;
    color: #15803d;
}

.az-badge-dark {
    background: #f1f3f6;
    color: #475569;
}

.az-content-title {
    color: #172033;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.8;
    min-height: 52px;
    margin-bottom: .55rem;
}

.az-rating {
    font-size: 13px;
    margin-bottom: .65rem;
    white-space: nowrap;
}

.az-rating i {
    color: #f59e0b;
}

.az-rating small {
    color: #94a3b8;
    font-size: 10px;
}

.az-content-description,
.az-description {
    color: #64748b;
    font-size: .77rem;
    line-height: 1.9;
}

.az-content-description {
    min-height: 47px;
}

.az-author {
    color: #94a3b8;
    font-size: .72rem;
}

.az-content-footer {
    border-top: 1px solid #f0f2f6;
    padding: .9rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.az-price-free {
    color: #16a34a;
    font-weight: 800;
    font-size: .85rem;
}

.az-price {
    color: #2563eb;
    font-weight: 900;
    font-size: .85rem;
}

.az-view-btn {
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 700;
    padding: .45rem .8rem;
}


/* =========================================================
   HOME - FEATURES
   ========================================================= */

.az-feature-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    padding: 1.7rem 1.3rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .04);
    transition: .25s ease;
}

.az-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(15, 23, 42, .08);
}

.az-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
}

.az-feature-card h6 {
    font-weight: 800;
    color: #172033;
}

.az-feature-card p {
    color: #64748b;
    font-size: .78rem;
    line-height: 1.9;
}


/* =========================================================
   INDEX - STORE
   ========================================================= */

.az-store {
    padding: 4.5rem 0 5rem;
    min-height: 70vh;
}

.az-page-header {
    margin-bottom: 2rem;
}

.az-page-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #172033;
    margin-bottom: .45rem;
}

.az-page-subtitle {
    color: #64748b;
    font-size: .86rem;
    margin: 0;
}




/* =========================================================
   INDEX - FILTER
   ========================================================= */

.az-filter-box {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
}

.az-field-label {
    display: block;
    color: #475569;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.az-filter-box .form-control,
.az-filter-box .form-select {
    border-color: #e2e8f0;
    border-radius: 11px;
    min-height: 45px;
    font-size: .82rem;
    box-shadow: none;
}

.az-filter-box .form-control:focus,
.az-filter-box .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .08);
}

.az-search-input {
    position: relative;
}

.az-search-input i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.az-search-input input {
    padding-right: 42px;
}

.az-filter-btn {
    min-height: 45px;
    border-radius: 11px;
    font-size: .8rem;
    font-weight: 700;
}

.az-check-box {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 1.2rem;
}

.az-check-box .form-check-input {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.az-check-box .form-check-label {
    color: #475569;
    font-size: .8rem;
    font-weight: 600;
}


/* =========================================================
   INDEX - EMPTY STATE
   ========================================================= */

.az-empty {
    background: #fff;
    border: 1px dashed #dbe2ea;
    border-radius: 18px;
    padding: 4rem 1.5rem;
}

.az-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.az-empty-title {
    font-weight: 800;
    color: #475569;
}

.az-empty-text {
    color: #94a3b8;
    font-size: .8rem;
}


/* =========================================================
   INDEX - PAGINATION
   ========================================================= */
/* =========================
   Laravel Pagination
   ========================= */

   .az-pagination {
    width: 100%;
    margin-top: 2rem;
    direction: rtl;
}

/* خود nav */
.az-pagination nav {
    width: 100%;
}

/* ردیف اصلی Pagination */
.az-pagination nav > div {
    width: 100%;
}

/* بخش اصلی در دسکتاپ */
.az-pagination nav .sm\:flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* متن Showing */
.az-pagination nav p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 38px;
}

/* کانتینر لینک‌ها */
.az-pagination nav .relative {
    display: flex;
    align-items: center;
}

/* لینک‌های Pagination */
.az-pagination nav a,
.az-pagination nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 11px;

    border: 1px solid #E4DFD3;

    background: #fff;
    color: #475569;

    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition: all .2s ease;
}

/* گوشه اول */
.az-pagination nav a:first-child,
.az-pagination nav span:first-child {
    border-radius: 9px 0 0 9px;
}

/* گوشه آخر */
.az-pagination nav a:last-child,
.az-pagination nav span:last-child {
    border-radius: 0 9px 9px 0;
}

/* Hover */
.az-pagination nav a:hover {
    background: #F4F8F7;
    color: #0F6B62;
    border-color: #BFD8D4;
}

/* صفحه فعال */
.az-pagination nav span[aria-current="page"] {
    background: #0F6B62;
    border-color: #0F6B62;
    color: #fff;
}

/* لینک غیرفعال */
.az-pagination nav span[aria-disabled="true"] {
    background: #F8F7F4;
    color: #B7B3AA;
    cursor: not-allowed;
}

/* فاصله بین دکمه‌ها را کنترل می‌کنیم */
.az-pagination nav .relative > * {
    margin-right: -1px;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 639px) {

    .az-pagination nav > div {
        width: 100%;
    }

    .az-pagination nav .sm\:flex {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .az-pagination nav p {
        text-align: center;
        line-height: normal;
    }

    .az-pagination nav .relative {
        justify-content: center;
        width: 100%;
    }
}
/* نسخه موبایل پیش‌فرض لاراول را مخفی کن */
.az-pagination nav > div.sm\:hidden {
    display: none !important;
}

/* نسخه دسکتاپ را همیشه نمایش بده */
.az-pagination nav > div.hidden.sm\:flex {
    display: flex !important;
}


/* =========================================================
   SHOW - DETAIL PAGE
   ========================================================= */

.az-detail-page {
    padding: 3rem 0 5rem;
    min-height: 70vh;
}

.az-back-btn {
    border-radius: 11px;
    font-weight: 700;
    font-size: .8rem;
    padding: .65rem 1rem;
}

.az-main-card,
.az-side-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 19px;
    box-shadow: 0 7px 25px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.az-main-body {
    padding: 1.7rem;
}

.az-content-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .42rem .75rem;
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.az-producer {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: .78rem;
    margin-bottom: 1.3rem;
}

.az-producer i {
    color: #2563eb;
}

.az-description {
    font-size: .88rem;
    line-height: 2.1;
    white-space: pre-line;
}

.az-main-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.4rem;
    border: 1px solid #eef2f7;
}

.az-main-card .az-content-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.7;
    color: #172033;
    margin-bottom: .7rem;
    min-height: auto;
}

.az-divider {
    border: 0;
    border-top: 1px solid #edf0f4;
    margin: 1.7rem 0;
    opacity: 1;
}


/* =========================================================
   SHOW - MEDIA / VIDEO
   ========================================================= */

.az-media-title {
    font-size: .8rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: .65rem;
}

.az-video-wrapper {
    border-radius: 15px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #e2e8f0;
}

.az-video-wrapper video,
.az-video-wrapper iframe {
    display: block;
    width: 100%;
    border: 0;
}


/* =========================================================
   SHOW - PURCHASE
   ========================================================= */

.az-purchase-box {
    background: linear-gradient(135deg, #fffaf0, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: 15px;
    padding: 1.2rem;
}

.az-purchase-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #d97706;
    margin-left: .6rem;
}

.az-purchase-title {
    color: #92400e;
    font-size: .85rem;
    font-weight: 800;
}

.az-purchase-description {
    color: #78716c;
    font-size: .73rem;
    line-height: 1.8;
}

.az-price-large {
    font-size: 1.25rem;
    font-weight: 900;
    color: #172033;
}

.az-buy-btn {
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 800;
    padding: .65rem .9rem;
}


/* =========================================================
   SHOW - OWNED / DOWNLOAD
   ========================================================= */

.az-owned-alert {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 14px;
    padding: 1rem;
    font-size: .8rem;
    line-height: 1.9;
}

.az-download-btn {
    border-radius: 10px;
    font-weight: 800;
    font-size: .8rem;
}


/* =========================================================
   SHOW - RATING
   ========================================================= */

.az-rating-section {
    background: #f8fafc;
    border: 1px solid #e7ebf2;
    border-radius: 15px;
    padding: 1.2rem;
}

.az-rating-title {
    font-size: .95rem;
    font-weight: 900;
    color: #172033;
    margin-bottom: .35rem;
}

.az-rating-average {
    font-size: 20px;
}

.az-rating-average i,
.rating-star i {
    color: #f59e0b !important;
}

.rating-star {
    transition: transform .15s ease;
}

.rating-star:hover {
    transform: scale(1.18);
}

.az-my-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.az-my-rating-label {
    color: #64748b;
    font-size: .73rem;
    margin-left: .35rem;
}


/* =========================================================
   SHOW - COMMENTS
   ========================================================= */

.az-comments-title {
    font-size: .95rem;
    font-weight: 900;
    color: #172033;
}

.az-comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid #edf0f4;
}

.az-comment-item:last-child {
    border-bottom: 0;
}

.az-comment-author {
    font-size: .76rem;
    font-weight: 800;
    color: #334155;
}

.az-comment-date {
    color: #94a3b8;
    font-size: .65rem;
}

.az-comment-body {
    color: #64748b;
    font-size: .78rem;
    line-height: 1.9;
}

.az-login-alert {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 12px;
    font-size: .75rem;
}


/* =========================================================
   SHOW - SIDEBAR
   ========================================================= */

.az-side-card {
    position: sticky;
    top: 90px;
}

.az-side-header {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #edf0f4;
    font-weight: 900;
    color: #172033;
    font-size: .9rem;
}

.az-side-body {
    padding: 1.2rem;
}

.az-info-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f1f3f6;
    color: #64748b;
    font-size: .75rem;
}

.az-info-item:last-child {
    border-bottom: 0;
}

.az-info-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-bottom-back {
    margin-top: 1.5rem;
}


/* =========================================================
   GENERAL BUTTON IMPROVEMENTS
   ========================================================= */

.az-content-card .btn,
.az-filter-box .btn,
.az-main-card .btn,
.az-side-card .btn {
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.az-content-card .btn:hover,
.az-filter-box .btn:hover,
.az-main-card .btn:hover,
.az-side-card .btn:hover {
    transform: translateY(-1px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .az-side-card {
        position: static;
    }

}


@media (max-width: 768px) {

    .az-hero {
        min-height: 600px;
    }

    .az-hero h1 {
        font-size: 2rem;
    }

    .az-hero-description {
        font-size: .9rem;
    }

    .az-hero-visual {
        min-height: 280px;
    }

    .az-hero-card {
        width: 280px;
    }

    .az-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .az-stats {
        margin-top: -25px;
    }

    .az-store {
        padding: 3rem 0;
    }

    .az-page-title {
        font-size: 1.45rem;
    }

    .az-check-box {
        padding-top: 0;
    }

    .az-content-thumb,
    .az-content-placeholder {
        height: 185px;
    }

    .az-detail-page {
        padding: 2rem 0 4rem;
    }

    .az-main-body {
        padding: 1.15rem;
    }

    .az-main-card .az-content-title {
        font-size: 1.35rem;
    }

}