﻿/*
   Footballit / Concept A
   Visual layer only: original login routes and main.js are not changed.
*/
:root {
    --page: #f3f8ff;
    --surface: #ffffff;
    --ink: #112650;
    --muted: #7186aa;
    --line: #dce8f7;
    --blue: #1264e8;
    --blue-dark: #0d3c92;
    --shadow: 0 24px 70px rgba(40, 82, 143, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    overflow-x: hidden;
}
body:before,
body:after {
    position: fixed;
    z-index: -1;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: #e7f1ff;
    content: "";
    pointer-events: none;
}
body:before { top: -210px; right: -82px; }
body:after { bottom: -215px; left: -105px; background: #e6f5ef; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); text-decoration: none; }
button, input { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(18,100,232,.28); outline-offset: 3px; }

#tg-wrapper.footballit-app {
    width: 100%;
    min-height: 100vh;
    padding: 28px 3.5% 28px;
}

/* The new design has one central workspace, not a site header, sidebar or footer. */
.app-surface {
    width: min(1280px, 100%);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    padding: 22px 28px 23px;
    border: 1px solid #dce8f7;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
}
.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    direction: ltr;
}
.app-brand { display: flex; align-items: center; gap: 12px; direction: ltr; color: var(--blue-dark); }
.app-brand img { display: block; width: 54px; height: 54px; object-fit: contain; }
.app-brand-copy { display: flex; flex-direction: column; gap: 4px; direction: rtl; text-align: left; }
.app-brand-copy strong { color: var(--ink); font-size: 18px; font-weight: 800; white-space: nowrap; }
.app-brand-copy small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.app-actions { display: flex; align-items: center; gap: 10px; direction: rtl; }
.website-action,
.install-action,
.profile-action,
.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    transition: .2s ease;
}
.website-action { gap: 8px; padding: 0 15px; background: #f0f6ff; color: var(--blue); }
.website-action:hover { background: #e0edff; color: var(--blue-dark); }
.install-action { gap: 8px; padding: 0 18px; border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; box-shadow: 0 8px 17px rgba(18,100,232,.2); }
.install-action:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.profile-action,
.icon-action { width: 40px; padding: 0; border: 0; background: #eef5ff; color: var(--blue); cursor: pointer; }
.profile-action:hover, .icon-action:hover { background: #dfedff; }

/* Hero */
.hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 156px;
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid #dbe8f7;
    border-radius: 18px;
    background: #edf5ff;
}
.hero-copy { position: relative; z-index: 2; width: 58%; padding: 25px 35px; }
.micro-label { display: block; direction: ltr; color: #9baeca; font-size: 8px; letter-spacing: 1px; text-align: right; }
.micro-label.blue { color: var(--blue); }
.hero-copy h1 { margin: 8px 0 8px; color: var(--ink); font-size: clamp(21px, 2.5vw, 31px); font-weight: 800; }
.hero-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 45%; overflow: hidden; }
.hero-photo:after { position: absolute; inset: 0; background: rgba(237,245,255,.48); content: ""; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-side-copy { position: absolute; z-index: 3; top: 50%; left: 25px; color: #6c82a6; direction: ltr; font-size: 11px; line-height: 1.8; transform: translateY(-50%); }
.hero-side-copy i { display: block; width: 27px; height: 3px; margin-top: 7px; border-radius: 4px; background: var(--blue); }

/* Panel selector */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 27px 2px 14px; }
.section-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: 18px; font-weight: 800; }
.section-link { color: var(--blue); font-size: 11px; font-weight: bold; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; direction: ltr; }
.panel-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.95); border-radius: 16px; box-shadow: 0 8px 18px rgba(36,75,126,.06); transition: transform .2s ease, box-shadow .2s ease; }
.panel-card:hover, .panel-card.is-selected { box-shadow: 0 15px 28px rgba(36,75,126,.13); transform: translateY(-3px); }
.players-card { background: #fff6db; }.academy-card { background: #e7f3ff; }.club-card { background: #f0edff; }
.panel-card > a { position: relative; display: block; min-height: 260px; padding: 17px 16px 15px; direction: rtl; }
.panel-photo { height: 104px; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.46); }
.panel-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .25s ease; }
.panel-card:hover .panel-photo img { transform: scale(1.035); }
.players-card .panel-photo { background: #fff1c8; }.academy-card .panel-photo { background: #d7edff; }.club-card .panel-photo { background: #e3ddff; }
.panel-copy { padding: 12px 4px 0; text-align: center; }
.panel-copy h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; font-weight: 800; }.panel-copy p { min-height: 19px; margin: 0; color: var(--muted); font-size: 11px; }
.panel-arrow { display: grid; place-items: center; width: 39px; height: 39px; margin: 11px auto 0; border-radius: 50%; font-size: 18px; transition: transform .2s ease; }.panel-card:hover .panel-arrow { transform: translateX(-3px); }
.players-card .panel-arrow { background: #fff0bf; color: #f0a200; }.academy-card .panel-arrow { background: #d9edff; color: var(--blue); }.club-card .panel-arrow { background: #e4ddff; color: #5545db; }

/* Benefits */
.benefit-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 16px; padding: 13px 9px; border-radius: 14px; background: #f0f6fd; direction: rtl; }
.benefit-item { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; padding: 0 18px; border-left: 1px solid #d9e6f5; color: var(--blue); }.benefit-item:last-child { border-left: 0; }.benefit-item > i { font-size: 22px; }.benefit-item span { display: flex; flex-direction: column; gap: 4px; }.benefit-item strong { color: var(--ink); font-size: 12px; }.benefit-item small { color: var(--muted); font-size: 9px; }
.toast-message { position: fixed; z-index: 30; bottom: 20px; left: 20px; padding: 11px 16px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(14px); transition: .24s ease; }.toast-message.show { opacity: 1; transform: translateY(0); }

/* Dark mode remains available without adding a second page or header. */
body.dark-mode { --page: #101827; --surface: #182438; --ink: #eef6ff; --muted: #9aacca; --line: #2d3d57; --blue: #65a0ff; --blue-dark: #c5d9ff; --shadow: 0 24px 70px rgba(0,0,0,.27); }
.dark-mode .app-surface { border-color: var(--line); background: rgba(24,36,56,.9); }.dark-mode .website-action, .dark-mode .profile-action, .dark-mode .icon-action { background: #223652; }.dark-mode .website-action:hover, .dark-mode .profile-action:hover, .dark-mode .icon-action:hover { background: #2c4770; }.dark-mode .hero-panel { background: #1d3555; border-color: var(--line); }.dark-mode .hero-photo:after { background: rgba(21,39,65,.52); }.dark-mode .players-card { background: #55421c; }.dark-mode .academy-card { background: #1d3a59; }.dark-mode .club-card { background: #322d61; }.dark-mode .players-card .panel-photo { background: #6a5520; }.dark-mode .academy-card .panel-photo { background: #294f74; }.dark-mode .club-card .panel-photo { background: #474083; }.dark-mode .benefit-strip { background: #1d304b; border-color: var(--line); }.dark-mode .benefit-item { border-color: #344866; }

/* Tablet */
@media (max-width: 991px) {
    #tg-wrapper.footballit-app { padding: 15px; }
    .app-surface { min-height: calc(100vh - 30px); padding: 17px 18px; border-radius: 20px; }
    .hero-copy { width: 64%; padding-right: 24px; padding-left: 24px; }.hero-photo { width: 48%; }.hero-side-copy { left: 15px; font-size: 9px; }.panel-card > a { min-height: 245px; padding: 13px 12px; }.panel-photo { height: 93px; }.panel-copy h3 { font-size: 16px; }
}

/* Mobile follows the reference phone composition: toolbar, hero, three compact rows, benefits. */
@media (max-width: 600px) {
    #tg-wrapper.footballit-app { padding: 0; }
    .app-surface { width: 100%; min-height: 100vh; padding: 13px 11px 15px; border: 0; border-radius: 0; box-shadow: none; }
    .app-toolbar { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; min-height: auto; }
    .app-brand { gap: 8px; }.app-brand img { width: 45px; height: 45px; }.app-brand-copy { gap: 2px; }.app-brand-copy strong { font-size: 14px; }.app-brand-copy small { font-size: 8px; }
    .app-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 37px; gap: 7px; width: 100%; }.website-action, .install-action { min-height: 36px; padding: 0 7px; border-radius: 10px; font-size: 9px; }.profile-action { display: none; }.icon-action { width: 37px; min-height: 36px; }
    .hero-panel { min-height: 102px; margin-top: 11px; border-radius: 14px; }.hero-copy { width: 67%; padding: 15px 14px; }.hero-copy h1 { margin: 4px 0 5px; font-size: 16px; }.hero-copy p { font-size: 9px; line-height: 1.7; }.hero-photo { width: 47%; }.hero-side-copy { display: none; }.micro-label { display: none; }
    .section-heading { align-items: center; margin: 13px 1px 7px; }.section-heading h2 { margin: 0; font-size: 12px; }.section-link { font-size: 8px; }
    .panel-grid { grid-template-columns: 1fr; gap: 7px; direction: rtl; }.panel-card { border-radius: 13px; }.panel-card > a { display: grid; grid-template-columns: 102px 1fr 35px; align-items: center; min-height: 91px; height: 91px; padding: 7px 9px; direction: ltr; }.panel-photo { grid-column: 1; width: 102px; height: 77px; border-radius: 13px; }.panel-photo img { object-position: center 35%; }.panel-copy { grid-column: 2; padding: 0 12px; direction: rtl; text-align: right; }.panel-copy h3 { margin-bottom: 4px; font-size: 14px; }.panel-copy p { min-height: 0; font-size: 9px; line-height: 1.7; }.panel-arrow { grid-column: 3; width: 32px; height: 32px; margin: 0; font-size: 16px; }.benefit-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 11px; padding: 8px 3px; border-radius: 11px; }.benefit-item { min-height: 41px; gap: 5px; padding: 0 5px; border-left: 1px solid #d9e6f5; }.benefit-item > i { font-size: 16px; }.benefit-item strong { font-size: 8px; }.benefit-item small { display: none; }
}

@media (max-width: 360px) {
    .app-surface { padding-right: 8px; padding-left: 8px; }.panel-card > a { grid-template-columns: 88px 1fr 31px; height: 84px; min-height: 84px; }.panel-photo { width: 88px; height: 70px; }.panel-copy { padding-right: 8px; padding-left: 8px; }.panel-copy h3 { font-size: 12px; }.panel-copy p { font-size: 8px; }.panel-arrow { width: 29px; height: 29px; }.benefit-item > i { font-size: 14px; }.benefit-item strong { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.legacy-swiper-hooks { display: none !important; }
