/* =========================================================
   GALAXY LEAGUE
   Main Theme
   ========================================================= */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}
:root {
    --galaxy-bg: #080c18;
    --galaxy-bg-secondary: #0d1324;
    --galaxy-card: #11182a;

    --galaxy-primary: #6366f1;
    --galaxy-primary-light: #818cf8;
    --galaxy-cyan: #22d3ee;

    --galaxy-text: #f8fafc;
    --galaxy-muted: #64748b;
    --galaxy-border: rgba(148, 163, 184, 0.10);
}


/* =========================================================
   BODY
   ========================================================= */

html {
    background: var(--galaxy-bg);
}

body.galaxy-body {

    min-height: 100vh;

    margin: 0;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(99, 102, 241, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(34, 211, 238, 0.06),
            transparent 25%
        ),
        var(--galaxy-bg);

    color: var(--galaxy-text);

}


/* =========================================================
   HEADER
   ========================================================= */

.galaxy-header {

    position: sticky;

    top: 0;

    z-index: 1000;

}


.galaxy-navbar {

    min-height: 76px;

    background:
        rgba(8, 12, 24, 0.88);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--galaxy-border);

}


/* =========================================================
   BRAND
   ========================================================= */

.galaxy-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    margin-right: 35px;

}


.brand-icon {

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4f46e5
        );

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 30px rgba(99, 102, 241, 0.30);

}


.brand-text {

    display: flex;

    flex-direction: column;

}


.brand-title {

    color: white;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -0.4px;

}


.brand-subtitle {

    margin-top: 4px;

    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}


/* =========================================================
   NAVIGATION
   ========================================================= */

.galaxy-nav {

    gap: 4px;

}


.galaxy-nav .nav-link {

    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 14px !important;

    border-radius: 10px;

    color: #94a3b8 !important;

    font-size: 13px;

    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease;

}


.galaxy-nav .nav-link i {

    font-size: 14px;

}


.galaxy-nav .nav-link:hover {

    color: white !important;

    background:
        rgba(99, 102, 241, 0.08);

}


.galaxy-nav .nav-link.active {

    color: white !important;

    background:
        rgba(99, 102, 241, 0.13);

}


.galaxy-nav .nav-link.active::after {

    content: "";

    position: absolute;

    bottom: -1px;

    left: 50%;

    transform: translateX(-50%);

    width: 22px;

    height: 2px;

    border-radius: 5px;

    background:
        linear-gradient(
            90deg,
            var(--galaxy-primary),
            var(--galaxy-cyan)
        );

}


/* =========================================================
   ACTIONS
   ========================================================= */

.galaxy-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.icon-button {

    position: relative;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--galaxy-border);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.025);

    color: #94a3b8;

    transition: all 0.2s ease;

}


.icon-button:hover {

    color: white;

    background:
        rgba(99,102,241,0.12);

    border-color:
        rgba(99,102,241,0.3);

}


.notification-dot {

    position: absolute;

    top: 8px;

    right: 8px;

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #22d3ee;

    box-shadow:
        0 0 8px #22d3ee;

}


.profile-button {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 5px 10px 5px 5px;

    border: 1px solid var(--galaxy-border);

    border-radius: 12px;

    background:
        rgba(255,255,255,0.025);

    color: #cbd5e1;

    text-decoration: none;

    font-size: 12px;

}


.profile-button:hover {

    color: white;

    border-color:
        rgba(99,102,241,0.3);

}


.profile-avatar {

    width: 31px;

    height: 31px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #4338ca
        );

    color: white;

}


.profile-button > i {

    font-size: 9px;

    color: #64748b;

}


/* =========================================================
   MAIN
   ========================================================= */

.galaxy-main {

    min-height: calc(100vh - 150px);

    padding-top: 35px;

    padding-bottom: 60px;

}


/* =========================================================
   FOOTER
   ========================================================= */

.galaxy-footer {

    padding: 28px 0 20px;

    background:
        rgba(5, 8, 17, 0.8);

    border-top:
        1px solid var(--galaxy-border);

}


.footer-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.footer-brand-icon {

    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        rgba(99,102,241,0.12);

    color: #818cf8;

}


.footer-brand strong {

    display: block;

    color: #e2e8f0;

    font-size: 13px;

}


.footer-brand small {

    display: block;

    margin-top: 2px;

    color: #475569;

    font-size: 9px;

}


.footer-links {

    display: flex;

    align-items: center;

    gap: 25px;

}


.footer-links a {

    color: #64748b;

    text-decoration: none;

    font-size: 11px;

    transition: color 0.2s ease;

}


.footer-links a:hover {

    color: white;

}


.footer-season {

    display: flex;

    align-items: center;

    gap: 8px;

}


.footer-season span {

    color: #475569;

    font-size: 9px;

    letter-spacing: 1px;

}


.footer-season strong {

    color: #818cf8;

    font-size: 12px;

}


.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 22px;

    padding-top: 17px;

    border-top:
        1px solid rgba(148,163,184,0.06);

    color: #334155;

    font-size: 10px;

}


.footer-status {

    display: flex;

    align-items: center;

    gap: 6px;

}


.status-dot {

    width: 6px;

    height: 6px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 8px rgba(34,197,94,0.7);

}


/* =========================================================
   MOBILE
   ========================================================= */

.galaxy-toggler {

    padding: 7px 10px;

    border:
        1px solid var(--galaxy-border);

    border-radius: 10px;

    color: #94a3b8;

    background:
        rgba(255,255,255,0.03);

}


.galaxy-toggler:focus {

    box-shadow: none;

}


.galaxy-toggler i {

    font-size: 20px;

}


@media (max-width: 991px) {

    .galaxy-navbar {

        padding: 12px 0;

    }


    .galaxy-nav {

        margin-top: 20px;

        padding: 10px;

        border:
            1px solid var(--galaxy-border);

        border-radius: 14px;

        background:
            rgba(17,24,42,0.7);

    }


    .galaxy-nav .nav-link {

        padding: 12px 14px !important;

    }


    .galaxy-actions {

        margin-top: 15px;

        padding-top: 15px;

        border-top:
            1px solid var(--galaxy-border);

    }


    .footer-content {

        flex-direction: column;

        align-items: flex-start;

    }


    .footer-links {

        gap: 18px;

    }

}


@media (max-width: 576px) {

    .brand-subtitle {

        display: none;

    }


    .brand-title {

        font-size: 17px;

    }


    .brand-icon {

        width: 40px;

        height: 40px;

    }


    .footer-links {

        flex-wrap: wrap;

    }


    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

    }

}
.team-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    overflow: hidden;
    color: var(--galaxy-text);
    text-decoration: none;
    background: linear-gradient(145deg, rgba(17, 24, 42, 0.96), rgba(13, 19, 36, 0.92));
    border: 1px solid var(--galaxy-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    color: var(--galaxy-text);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.30);
    transform: translateY(-3px);
}

.team-card-icon,
.team-details-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    color: var(--galaxy-cyan);
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    font-size: 24px;
}

.team-rating,
.team-details-rating {
    text-align: end;
}

.team-rating strong,
.team-details-rating strong {
    display: block;
    color: var(--galaxy-cyan);
    font-size: 1.25rem;
}

.team-card-arrow {
    color: var(--galaxy-muted);
}

.team-details-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(17, 24, 42, 0.96), rgba(13, 19, 36, 0.92));
    border: 1px solid var(--galaxy-border);
    border-radius: 14px;
}

.team-details-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
}

.team-biography {
    max-width: 900px;
    padding: 28px;
    color: #cbd5e1;
    background: rgba(17, 24, 42, 0.72);
    border: 1px solid var(--galaxy-border);
    border-radius: 14px;
}

.team-biography-content {
    line-height: 1.9;
    white-space: pre-line;
}

.team-biography-content h1,
.team-biography-content h2,
.team-biography-content h3 {
    margin-top: 1.5rem;
    color: var(--galaxy-text);
}

.team-biography-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .team-card {
        padding: 18px;
        gap: 12px;
    }

    .team-details-header {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 22px;
    }

    .team-details-rating {
        width: 100%;
        text-align: start;
    }
}

.card {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 42, 0.95),
            rgba(13, 19, 36, 0.92)
        ) !important;

    border:
        1px solid rgba(148, 163, 184, 0.10) !important;

    border-radius: 18px !important;

    color: #e2e8f0;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.20) !important;
}


.card:hover {

    border-color:
        rgba(99, 102, 241, 0.25) !important;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.30) !important;
}


.card .card-header {

    background: transparent !important;

    border-bottom:
        1px solid rgba(148, 163, 184, 0.08) !important;

    color: #f8fafc;
}


.card .card-body {

    color: #94a3b8;
}


.card .card-title {

    color: #f8fafc;
}


.card .card-text {

    color: #64748b;
}


.card .card-footer {

    background: transparent !important;

    border-top:
        1px solid rgba(148, 163, 184, 0.08) !important;
}



/* =========================================
   Galaxy Dropdown
   ========================================= */

.galaxy-dropdown {
    min-width: 220px;

    margin-top: 12px !important;

    padding: 8px;

    background:
        rgba(13, 19, 36, 0.97) !important;

    border:
        1px solid rgba(148, 163, 184, 0.12) !important;

    border-radius: 14px !important;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45) !important;

    backdrop-filter: blur(18px);
}


/* Items */

.galaxy-dropdown .dropdown-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #94a3b8;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.galaxy-dropdown .dropdown-item i {

    width: 18px;

    color: #6366f1;

    font-size: 14px;
}


.galaxy-dropdown .dropdown-item:hover {

    color: white;

    background:
        rgba(99, 102, 241, 0.12);
}


.galaxy-dropdown .dropdown-item:hover i {

    color: #818cf8;
}


/* Divider */

.galaxy-dropdown .dropdown-divider {

    border-color:
        rgba(148, 163, 184, 0.08);
}


/* Dropdown arrow */

.galaxy-nav .dropdown-toggle::after {

    margin-left: 4px;

    vertical-align: middle;

    border-top-color: #64748b;

    transition:
        transform 0.2s ease;
}


.galaxy-nav .dropdown.show .dropdown-toggle::after {

    transform: rotate(180deg);

}
.match-status {
  animation: blink 2.1s infinite;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem;
  line-height: 1.1;
}

.match-status .match-minute {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.95;
}

.live-match-lineup {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.live-match-team {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.live-match-home {
    align-items: flex-start;
    text-align: start;
}

.live-match-away {
    align-items: flex-end;
    text-align: end;
}

.live-match-team-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.live-match-away .live-match-team-main {
    flex-direction: row-reverse;
}

.live-match-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    flex-shrink: 0;
}

.live-match-name {
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score {
    flex-shrink: 0;
    align-self: center;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.15rem;
    white-space: nowrap;
}

.goal-minutes {
    font-size: 0.8rem;
    color: var(--galaxy-cyan);
    letter-spacing: 0.02em;
    min-height: 1.2rem;
    line-height: 1.3;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}