/* Genrals */
@font-face {
    font-family: "Yekan";
    src: url("../Assets/Fonts/Yekan.eot");
    src: url("../Assets/Fonts/Yekan.eot?#iefix") format("embedded-opentype"),
    url("../Assets/Fonts/Yekan.woff2") format("woff2"),
    url("../Assets/Fonts/Yekan.woff") format("woff"),
    url("../Assets/Fonts/Yekan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    /* رنگ‌های اصلی */
    --color-gold: #eac52d;
    --color-dark-gray: #4c4c4c;
    --color-black: #000000;

    /* رنگ‌های فرعی */
    --color-green: #0f9d5c;
    --color-purple: #4b33b1;
    --color-red: #f8524f;

    /* رنگ‌های پس‌زمینه و متن */
    --bg-main: var(--color-black);
    --bg-secondary: var(--color-dark-gray);
    --text-main: #ffffff;
    --text-secondary: #cccccc;
}

body {
    color: var(--text-main);
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span {
    font-family: "Yekan", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--text-main);
}

.button {
    background-color: var(--color-gold);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 400px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #cfb92b;
}

a {
    color: var(--color-gold);
    text-decoration: none;
}

a:hover {
    color: var(--color-purple);
}

.alert-success {
    background-color: var(--color-green);
    color: #fff;
    padding: 1rem;
    border-radius: 6px;
}

.alert-error {
    background-color: var(--color-red);
    color: #fff;
    padding: 1rem;
    border-radius: 6px;
}

.card {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Navbar */
.nav-logo {
    width: 144px;
    height: 50px;
}

.navbar-links .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 400;
    font-family: Yekan;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-links .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #4b33b1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.navbar-links .nav-link:hover {
    color: #4b33b1;
}

.navbar-links .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-links .nav-link.active {
    color: #4b33b1;
    font-weight: 600;
}

.navbar-links .nav-link.active::after {
    transform: scaleX(1);
}

/* About */
.about-img {
    max-width: 50%;
    height: auto;
    border-radius: 16px;
}

/* Accordion */
.faq-section .accordion-button {
    background-color: #f8f9fa;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #e9ecef;
}

/* Blog */
.blogButton {
    background-color: #4b33b1;
}

/* Footer */

.footer-logo {
    width: 72px;
    height: 25px;
}

/* Blog Page */

.blog-section {
    background-color: #fff;
    font-family: "Vazirmatn", sans-serif;
}

.blog-search-input {
    background-color: #f9f9f9;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    color: #000;
}

.blog-categories .category-btn {
    border: 1px solid #eac52d;
    color: #4c4c4c;
    background-color: #fff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-categories .category-btn:hover,
.blog-categories .category-btn.active {
    background-color: #eac52d;
    color: #000;
}

.blog-card {
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card-title {
    color: #4c4c4c;
    font-weight: bold;
}

.blog-card .card-text {
    color: #000;
}

.blog-readmore-btn {
    background-color: #0f9d5c;
    color: #fff;
    font-size: 14px;
    padding: 5px 12px;
    border-radius: 20px;
}

.blog-readmore-btn:hover {
    background-color: #0c7d4b;
    color: #fff;
}

.custom-pagination .page-link {
    color: #4c4c4c;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
    background-color: #eac52d;
    color: #000;
    border-color: #eac52d;
}

.custom-pagination .page-link:hover {
    background-color: #eac52d;
    color: #000;
}

.custom-pagination {
    flex-wrap: wrap;
    gap: 6px;
}

/* Forms */
.form-container {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.btn-gold {
    background-color: var(--color-gold);
    color: #000;
}

.btn-gold:hover {
    background-color: #d1b32a;
}

.text-warning:hover {
    color: #ffffff !important;
}

.passwordToggle {
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 2;
}

.passwordToggle:hover {
    color: var(--color-gold);
}

#toggleIcon {
    font-size: 1.1rem;
}

.otp-input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: white;
    color: black;
}

.otp-input:focus {
    border-color: #ffc107;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Blog Post */
.main-content {
    color: black; /* اگه بخوای متن هم روشن‌تر دیده بشه */
}

.blog-post {
    background-color: #f3f3f3;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.comment-section {
    background-color: #f3f3f3;
    padding: 2rem;
    border-radius: 1rem;
}

.comment {
    background-color: #333;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: white;
}

.comment-author {
    font-weight: bold;
    color: var(--color-gold);
}

.comment-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-primary {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: black;
}

.btn-primary:hover {
    background-color: #c9a600;
}

.post-image {
    max-height: 400px;
    object-fit: cover;
}

.splitter {
    height: 30px;
    width: 100%;
    background-color: white;
}

/* Bracket */

.bracket {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    position: relative;
    padding-bottom: 100px;
}

.round {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.round-title {
    background: #2563eb;
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.match {
    width: 230px;
    padding: 10px;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid #475569;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.player {
    padding: 8px;
    background: #334155;
    margin-bottom: 6px;
    border-radius: 8px;
}

.player.winner {
    background: #22c55e;
    color: black;
    font-weight: bold;
}

#connections {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
/*CONTACT*/

.contact-info {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.info-icon {
    font-size: 20px;
    margin-left: 15px;
    color: #0d6efd;
    margin-top: 3px;
}
.contact-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
}
#loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner-border {
    color: var(--color-gold);
}
.player-profile-container {
    color: #fff;
}

.player-card {
    width: 180px;
    transition: transform 0.2s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.player-stats {
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 900px;
    margin: auto;
}

.stat-item strong {
    color: #fff;
}

.stat-item i {
    transition: transform 0.2s ease-in-out;
}

.stat-item:hover i {
    transform: scale(1.2);
}
.stars span {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}
.stars .filled {
    color: gold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}
.stars .empty {
    color: #555;
}

/* افکت انیمیشن نرم برای پر شدن */
.stars span {
    opacity: 0;
    transform: scale(0.6);
    display: inline-block;
    animation: starFadeIn 0.3s ease forwards;
}
.stars span:nth-child(1) { animation-delay: 0.1s; }
.stars span:nth-child(2) { animation-delay: 0.2s; }
.stars span:nth-child(3) { animation-delay: 0.3s; }
.stars span:nth-child(4) { animation-delay: 0.4s; }
.stars span:nth-child(5) { animation-delay: 0.5s; }

@keyframes starFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}