@import "../../../components/com_myinvation/assets/css/currenevent.css";
/*  درست فونت‌ها در*/
@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanX/IRANYekanX-Bold.woff2') format('woff2');
    font-weight: bold;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, p, a, button, span {
    font-family: 'IRANYekanX', sans-serif;
}

/* صفحه اصلی */
body {
    background: #f4f4f4;
}

.header-text {
    padding: 20px;
    text-align: center;
}

.header-text h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 14px;
    margin-bottom: 10px;
}

.header-text h2 {
    font-size: 18px;
    color: #444;
    font-weight: 500;
}

.main-button {
    background: var(--event-color);
    color: #000;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.main-button i {
    font-size: 22px;
}

.main-button-section {
    padding: 20px;
}

.section-title {
    font-size: 14px;
    padding: 10px 5px 7px 0;
    font-weight: bolder;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px 18px;
    padding-bottom: 90px; /* ← این خط رو اضافه کن (یا 100px) */
}

.grid-item {
    background: #2f3336;
    color: #fff;
    padding: 20px 5px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.grid-item span {
    font-size: 14px;
    line-height: 1.3;
}

.icon-yellow {
    color: var(--event-color);
    font-size: 26px;
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    padding: 8px 0;
    z-index: 10;
}

.menu-item {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: flex;
    flex-direction: column; /* آیکون بالای متن */
    align-items: center;
}

.menu-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.menu-item.active {
    color: #000;
    font-weight: bold;
}

/* موبایل */
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        min-height: 100px;
        padding: 15px 5px;
    }

    .icon-yellow {
        font-size: 24px;
    }

    .grid-item span {
        font-size: 13.5px;
    }
}

/* فاصله بهتر دکمه‌های گرید — صفحه اصلی */
.grid {
    gap: 18px; /* قبلاً 12px بود → حالا فاصله بیشتر و شیک‌تر */
    padding: 20px 18px; /* کمی فاصله از لبه‌های صفحه */
}

.grid-item {
    min-height: 105px; /* کمی بلندتر که متن‌ها راحت‌تر جا بشن */
    padding: 18px 8px; /* فاصله داخلی بهتر */
    gap: 12px; /* فاصله بین آیکون و متن */
}

/* ====================== صفحه محتوا / اخبار / مطالب (content.html) ====================== */

.content-page {
    padding: 20px 20px 90px;
    background: #f4f4f4; /* درست ← #f4f4f4 (خاکستری روشن و تمیز) */
    min-height: 100vh;
    margin-top: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
}

.content-header {
    background: linear-gradient(135deg, var(--workshop-color-start), var(--workshop-color-end));
    color: #000;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--event-color-30);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-body {
    padding: 18px 20px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-excerpt {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: var(--event-color);
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #e6b500;
}

.read-more:hover i {
    transform: translateX(6px);
}

/* برای مطالبی که عکس ندارن */
.article-card.no-image .article-body {
    padding-top: 25px;
}

/* لوگوی بالای صفحه — content.html و صفحات مشابه */
.page-top-logo {
    text-align: center;
    padding: 16px 20px 8px;
    background: #000;
    width: 100%;
}

.page-top-logo img {
    height: 68px;
    width: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInLogo 1.1s ease-out 0.3s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-top-logo {
    text-align: center;
    padding: 16px 20px 8px;
    background: #000;
    width: 100%;
}

.page-top-logo img {
    height: 160px;
    width: auto;
    max-width: 95%;
    display: block;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInLogo 1.1s ease-out 0.3s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فاصله و شکل جدید برای محتوای اصلی */
.content-page {
    padding: 20px 20px 90px;
    background: #f4f4f4;
    min-height: 100vh;
    margin-top: 12px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
}

.content-header {
    background: linear-gradient(135deg, var(--workshop-color-start), var(--workshop-color-end));
    color: #000;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 8px 10px;
    position: relative;
    overflow: hidden;
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* کارت‌های خبر — سایه و حرکت نرم */
.article-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    margin: 0 12px 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* خط زرد زیر عنوان خبر */
.article-title {
    font-size: 19px;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 10px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--event-color);
    border-radius: 3px;
}

body {
    padding-bottom: 100px !important;
}

.grid-item {
    background: #095e63;
    color: #fff;
    padding: 18px 8px;
    border-radius: 7px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    /* افکت‌های جدید */
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* درخشش زرد هنگام هاور */
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--event-color-30);
    background: #383d41;
}

/* خط زرد متحرک از پایین */
.grid-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--event-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease;
}

.grid-item:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* آیکون زرد کمی بزرگ‌تر و درخشان‌تر هنگام هاور */
.grid-item .icon-yellow {
    transition: all 0.3s ease;
}

.grid-item:hover .icon-yellow {
    transform: scale(1.2);
    filter: brightness(1.3) drop-shadow(0 0 12px var(--event-color));
}


/* بخش مربوط به اسپانسرها */

/* ====================== اسپانسرها - استایل‌های جدید ====================== */

/* یکسان‌سازی فونت ورودی‌ها و سلکت‌ها */
.search-input,
.filter-select,
.search-button,
.filter-input {
    font-family: 'IRANYekanX', sans-serif !important;
    font-size: 16px !important;
}

/* استایل بخش جستجو */
.search-section {
    padding: 20px;
    background: #f4f4f4;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    flex: 2;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 16px;
}

.search-button {
    flex: 1;
    background: var(--event-color);
    color: #000;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

.descriptiontext.ul {
    list-style: none;
}

.descriptiontext.ul li {
    position: relative;
    padding-left: 1.25rem;
}

.descriptiontext.ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #0d6efd; /* آبی بوت‌استرپی شیک */
    font-size: 1.2rem;
    line-height: 1.2;
}

.descriptiontext p {
    margin-right: 10px;
}

.descriptiontext ol li {
    margin-right: 20px;
}

/* ====================== کارت ورود VIP — card.html ====================== */

#page_ibe .vip-label.guesttype-0 span {
    background-image: url('../images/guesttype/guesttype-0.png');
    color: var(--guest-type-end-0);
}

#page_ibe .vip-label.guesttype-1 span {
    background-image: url('../images/guesttype/guesttype-1.png');
    color: var(--guest-type-end-1);
}

#page_ibe .vip-label.guesttype-2 span {
    background-image: url('../images/guesttype/guesttype-2.png');
    color: var(--guest-type-end-2);
}

#page_ibe .vip-label.guesttype-3 span {
    background-image: url('../images/guesttype/guesttype-3.png');
    color: var(--guest-type-end-3);
}

#page_ibe .vip-label.guesttype-4 span {
    background-image: url('../images/guesttype/guesttype-4.png');
    color: var(--guest-type-end-4);
}

#page_ibe .vip-label.guesttype-5 span {
    background-image: url('../images/guesttype/guesttype-5.png');
    color: var(--guest-type-end-5);
font-size: 22px !important;
    vertical-align: middle;
    line-height: 40px;
}

#page_ibe .vip-label.guesttype-6 span {
    background-image: url('../images/guesttype/guesttype-6.png');
    color: var(--guest-type-end-6);
}

#page_ibe .vip-label.guesttype-7 span {
    background-image: url('../images/guesttype/guesttype-7.png');
    color: var(--guest-type-end-7);
}

#page_ibe .vip-label.guesttype-8 span {
    background-image: url('../images/guesttype/guesttype-8.png');
    color: var(--guest-type-end-8);
}

#page_ibe .vip-label.guesttype-96 span {
    background-image: url('../images/guesttype/guesttype-96.png');
    color: var(--guest-type-end-6);
}

#page_ibe .vip-label.guesttype-97 span {
    background-image: url('../images/guesttype/guesttype-97.png');
    color: var(--guest-type-end-97);
}

#page_ibe .vip-label.guesttype-98 span {
    background-image: url('../images/guesttype/guesttype-98.png');
    color: var(--guest-type-end-98);
}

#page_ibe .vip-label.guesttype-99 span {
    background-image: url('../images/guesttype/guesttype-99.png');
    color: var(--guest-type-end-99);
}

#page_ibe .vip-label.guesttype-100 span {
    background-image: url('../images/guesttype/guesttype-100.png');
    color: var(--guest-type-end-100);
}

#page_ibe .vip-box {
    background-color: orange;
    color: black;
    padding: 12px 0;
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0;
}

#page_ibe .vip-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    overflow: hidden;
    position: relative;
    color: white;
    padding: 30px 10px 5px;
    text-align: center;
    background-size: cover;
    border-radius: 25px !important;
    border-width: 0 !important;
}

#page_ibe .guest-name {
    font-size: 1.7em;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 10px 1px 0 !important;
    line-height: 0.8;
    white-space: nowrap;
    text-align: right;
}

#page_ibe .visit-time {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--event-color);
    text-align: right;
    margin-right: 10px;
}

#page_ibe .visit-time i {
    color: #969696;
    margin-left: 8px;
}

#page_ibe .event-title {
    font-size: 19px;
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap;
    color: #bbb;
    padding-bottom: 10px;
}

#page_ibe .yellow-badge {
    background: var(--event-color);
    color: #000;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: bold;
}

#page_ibe .vip-label {
    margin: 3px 0 3px;
    text-align: right;
    margin-right: 10px;
    padding-top: 15px;
    perspective: 600px; /* برای افکت سه‌بعدی */
}

#page_ibe .vip-label span {
    position: relative;
    display: inline-block;
    color: #000;
    font-weight: bold;
    font-size: 28px !important;
    max-width: 310px;
    letter-spacing: 0;
    padding: 7px 18px !important;
    border-radius: 8px;
    font-family: 'IRANYekanX', serif;
    text-transform: uppercase;
    /* برق متحرک طلایی */
    overflow: hidden;
    height: 54px;
    width: 160px;
    background-repeat: no-repeat;
    background-size: contain;
}

#page_ibe .vip-label span:hover {
    transform: rotateX(10deg) scale(1.05);
    transition: transform 0.4s ease;
}

#page_ibe .vip-label span::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: goldShine 3.5s infinite;
}

@keyframes goldShine {
    0% {
        left: -100%;
    }
    60% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

#page_ibe .vip-label.guesttype-expired span {
    background: linear-gradient(145deg, darkred, darkgoldenrod);
    color: white;
}

#page_ibe .vip-label.guesttype-expired div.expired {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#page_ibe .card-logo.expired:before {
    content: "Expired";
    font-size: 12px;
    left: 60%;
    position: absolute;
    top: 0;
    background-color: darkred;
    border-radius: 5px;
    box-shadow: 1px 0 5px white;
    height: 19px;
    padding: 2px;
    z-index: 999;
}

#page_ibe .vip-label.guesttype-expired div.expired:before {
    content: "Expired";
    font-size: 12px;
    left: 5px;
    position: absolute;
    top: 5px;
    background-color: darkred;
    border-radius: 5px;
    box-shadow: 1px 0 5px white;
    height: 19px;
    padding: 2px;
}

#page_ibe .inviters {
    font-size: 12px;
    color: #aaa;
    margin: 5px 0;
    line-height: 1.5;
    white-space: nowrap !important;
    text-align: right;
    margin-right: 10px;
    margin-bottom: 10px;
}

#page_ibe .inviters strong {
    color: var(--event-color);
    font-size: 14px;
    white-space: normal;
}

#page_ibe .companions {
    font-size: 11px;
    color: #70b0b7;
    margin-top: 10px;
    text-align: right;
    padding-right: 10px;
}

#page_ibe .companions span {
    background: var(--event-color-30);
    padding: 4px 12px;
    border-radius: 10px;
    margin: 4px;
    display: inline-block;

}

#page_ibe .qr-with-companions {
    display: flex;
    flex-direction: row-reverse; /* ← این خط باعث می‌شه QR راست و همراهان چپ بشن */
    align-items: flex-start;
    justify-content: space-between;
    margin: 5px 5px 5px;
    gap: 20px;
    flex-wrap: wrap;
}

#page_ibe .card-copyright {
    text-align: center;
    font-size: 11px;
    color: #488990;
    margin-top: 4px;
    padding-top: 8px;
    padding-bottom: 4px;
    border-top: 1px solid #488990;
}

#page_ibe .card-copyright a {
    color: #488990;
    text-decoration: none;
}

#page_ibe .card-copyright a:hover {
    color: #488990;
}

#page_ibe .qr-code {
    background-color: #ffffff !important;
    border-radius: 2px !important;
    width: 100px !important;
    margin-right: 10px !important;
    /* جلوگیری از Dark Mode خودکار iOS */
    color-scheme: light;
}

#page_ibe .qr-code img {
    display: block;
    width: 100%;
    height: auto;

    /* قفل رنگ PNG */
    filter: none !important;
    -webkit-filter: none !important;
}




#page_ibe .ibelogo {
    max-width: 90%; /* مهم: تصویر بزرگتر از container نشه */
    height: auto; /* نسبت تصویر حفظ بشه */
    flex-shrink: 1; /* اجازه بده تصویر shrink بشه اگر جا کم بود */
    object-fit: contain;
    margin-left: 20px;
}

#page_ibe .qr-code img {
    width: 100px !important;
    height: 100px !important;
    display: block !important;
}

#page_ibe .card-logo {
    position: absolute;
    top: 24px;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    right: 12px;
    left: 0;
    transform: unset;
}

#page_ibe .card-logo img {
    max-width: 97% !important; /* مهم: تصویر هیچوقت بزرگتر از container نشه */
    width: auto; /* عرض اصلی حفظ بشه اما محدود بشه */
    height: auto !important; /* نسبت تصویر خراب نشه */
    display: block;
    padding-right: 10px;
    margin-top: 15px;
}

#page_ibe .qr-with-companions-ibe {
    margin-top: 250px !important;
}

@media (prefers-color-scheme: dark) {
    #page_ibe .qr-code {
        filter: invert(1) !important; /* سیاه رو سفید و سفید رو سیاه می‌کنه */
        background: black !important; /* زمینه سیاه برای اطمینان */
    }
}

.fa-whatsapp {
	font-size:25px;
}