@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --text: #0a0a0a;
    --text-2: #272727;
    --accent: #ededed;

    --text-accent: #54b0e8;

    --err: #ef4444;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--text);
    background-color: var(--bg);
}

img {
    display: block;
    width: 100%;
}

.container {
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}
/* ###### */
.brg {
    cursor: pointer;
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    display: none;
}
.brg div {
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--text);
}
.header {
    background-color: var(--bg);
    width: 100%;
}
.header .container {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo img {
    display: block;
    width: 100px;
}
.header ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.header li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    transition: filter 0.2s ease-out;
    &:hover {
        text-decoration: underline;
    }
}
.header-regions {
    height: 36px;
    color: inherit;
    text-decoration: none;
    padding: 0 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    background-color: var(--text-accent);

    transition: filter 0.2s ease-out;
    &:hover {
        filter: brightness(1.1);
    }
}
.header-regions svg {
    width: 16px;
    height: 16px;
}
@media (max-width: 768px) {
    .brg {
        display: flex;
    }
    .header-regions {
        margin-left: auto;
    }
    .header nav {
        display: none;
    }
}
/* ###### */
.footer {
    background-color: var(--accent);
    margin-top: auto;
}
.footer .container {
    padding: 48px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
}
.footer-info h2 {
    font-size: 24px;
    color: transparent;
    background: var(--text-accent);
    background-clip: text;
    margin-bottom: 16px;
}
.footer-info p {
    font-size: 14px;
    margin-bottom: 16px;
}
.footer-nav h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 16px;
}
.footer-nav ul  {
    list-style: none;
    display: grid;
    gap: 8px;
}
.footer-nav svg {
    display: inline-block;
    width: 16px;
    height: 16px;
}
.footer-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-out;

    &:hover {
        color: var(--text-accent);
    }
}
.footer-rights {
    font-size: 12px;
    grid-column: span 4;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
    gap: 16px;
}
.footer-rights a {
    color: inherit;
}
.footer-rights p:nth-child(2) {
    justify-self: end;
}
.footer-rights-bot {
    grid-column: span 2;
    text-align: center;
}
@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: start;
    }
    .footer-rights {
        margin-top: 32px;
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-rights-bot {
        grid-column: span 1;
    }
    .footer-rights p:nth-child(2) {
        justify-self: center;
    }
}
/* ###### */
/* ###### */
.nav {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 16px;
    background-color: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}
.nav.open {
    transform: translateX(0);
}
.nav-close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav ul {
    list-style: none;
    display: grid;
    gap: 20px;
    text-align: center;
}
.nav a {
    color: inherit;
    text-decoration: none;
}
/* ###### */
.text h1,
.text h2,
.text h3,
.text h4 {
    font-family: "Inter", sans-serif;
}
.text .container {
    padding: 40px 16px;
}
.text h1 {
    font-size: 32px;
    margin-bottom: 16px;
}
.text h2 {
    font-size: 22px;
    margin-bottom: 8px;
    margin-top: 32px;
}
.text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 32px;
}
.text p {
    font-size: 16px;
}
.text p + p {
    margin-bottom: 16px;
}
.text ul {
    list-style-position: inside;
}
.text a {
    color: inherit;
}
.text .rtl-text {
    direction: rtl;
    text-align: right;
}
/* ###### */
/* ##### */
.regions .container {
    padding: 20px 16px;
}
.regions h1 {
    font-size: 30px;
    margin-bottom: 24px;
}
.regions-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.regions-box {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--accent);
}
.regions-box h2 {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.regions-box h2 span {
    padding: 2px 10px;
    font-size: 12px;
    background-color: var(--media-bg);
    border-radius: 20px;
}
.regions-item {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 12px;
    row-gap: 4px;
}
.regions-item svg {
    width: 16px;
    height: 16px;
    grid-row: span 2;
}
.regions-item h3 {
    font-size: 14px;
}
.regions-item p {
    font-size: 14px;
    color: var(--text-2);
}
@media (max-width: 768px) {
    .regions-wrap {
        grid-template-columns: 1fr;
    }
}
/* ##### */
/* ##### */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 100%;
    background-color: rgba(114, 114, 114, 0.6);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.popup-wrap {
    padding: 24px;
    background-color: var(--bg);
    border-radius: 16px;
    border: 1px solid var(--bg-accent);
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}
.popup h2 {
    display: flex;
    align-items: center;
    font-size: 18px;
    gap: 12px;
    margin-bottom: 16px;
}
.popup h2 svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    color: var(--err);
}
.popup h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}
.popup svg {
    width: 16px;
    height: 16px;
    color: var(--err);
}
.popup p {
    font-size: 14px;
    color: var(--text-secondary);
}
.popup p + p {
    margin-top: 12px;
}
.popup button,
.popup a  {
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    margin-top: 16px;
    background-color: var(--text-accent);
    color: var(--text);
    font-size: 14px;

    transition: filter 0.2s ease-out;
    &:hover {
        filter: brightness(1.1);
    }
}
/* #### */

.hero {
    background-image: url(../img/hero.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 80px 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 40px 0;
}

.hero .title {
    color: var(--bg);
}
.hero .desc {
    color: var(--accent);
}

.title {
    font-size: 32px;
    margin-bottom: 16px;
    max-width: 500px;
}
.desc {
    font-size: 18px;
    color: var(--text-2);
    max-width: 500px;
    margin-bottom: 16px;
}

.about {
    margin: 40px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 15px;
}

.about img {
    max-width: 500px;
    margin: 0 auto;
} 

.features {
    margin: 40px 0;
}

.f-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.f-item {
    padding: 10px;
    border: 1px solid var(--text-2);
    display: grid;
    gap: 10px;
    border-radius: 4px;
    text-align: center;
    justify-items: center;
    background-color: var(--accent);
}
@media (max-width: 500px) {
    .f-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}
.f-item img {
    max-width: 40px;
}
.f-item h2 {
    font-size: 18px;
}
.f-item p {
    color: var(--text-2);
}

.categories {
    margin: 40px 0;
    padding: 0 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.c-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 500px) {
    .c-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

.c-item {
    display: grid;
    align-items: center;
    border: 1px solid var(--text-2);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--accent);
}

.name {
    font-size: 18px;
    padding: 10px;
}

.name-last {
    font-size: 40px;
}

.faq {
    margin: 40px auto;
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
}

.faq h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.faq p {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 20px;
}

/* Interactive Sections */
.interactive-section {
    margin: 60px 0;
    padding: 40px 15px;
}

.interactive-section:nth-child(odd) {
    background-color: var(--accent);
}

.section-title {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.section-desc {
    font-size: 16px;
    color: var(--text-2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.content-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.item-cover {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.item-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.item-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.content-item:hover .item-cover::after {
    background: rgba(0, 0, 0, 0.1);
}

.item-icon {
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.content-item h3 {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 12px 8px;
    color: var(--text);
    line-height: 1.4;
}

.content-item p {
    font-size: 13px;
    color: var(--text-2);
    padding: 0 12px 16px;
    flex-grow: 1;
}

/* Subscription Modal */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: 100%;
    height: 100%;
}

.subscription-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text);
}

.modal-text {
    font-size: 14px;
    color: var(--text-2);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 20px 0;
}

.modal-content h3 {
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text);
}

.subscription-benefits {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    gap: 12px;
}

.subscription-benefits li {
    font-size: 14px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--accent);
    border-radius: 8px;
}

.modal-btn-primary,
.modal-btn-secondary {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.modal-btn-primary {
    background: var(--text-accent);
    color: var(--text);
}

.modal-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--text-2);
}

.modal-btn-secondary:hover {
    background: var(--text-accent);
    color: var(--text);
}

/* Leagues Grid - Image Only */
.leagues-grid .content-item {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid var(--text-accent);
}

.leagues-grid .content-item:hover {
    box-shadow: 0 0 20px rgba(84, 176, 232, 0.3);
    transform: scale(1.05);
}

.leagues-grid .item-cover {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.leagues-grid .item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
