/*
 * Footer Styles — Figma Node 6002:36907
 * RTL Persian footer for Strategic Club
 */

#colophon.sc-footer,
#colophon.sc-footer *,
#colophon.sc-footer *::before,
#colophon.sc-footer *::after {
    box-sizing: border-box;
}

#colophon.sc-footer {
    direction: rtl;
    background: linear-gradient(180deg, #202228 0%, #17191d 100%);
    border-top: 2px solid rgba(16, 129, 223, 0.34);
    border-radius: 0;
    width: 100%;
    font-family: 'Vazir', 'Vazir', 'Vazir', Tahoma, Arial, sans-serif;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.24);
}

#colophon.sc-footer > .sc-footer__inner {
    max-width: 1640px;
    margin: 0 auto;
    padding: 44px 108px 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* Section 1: Logo + Description */
.sc-footer__top {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.sc-footer__description {
    flex: 1 0 0;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    color: #e9edf5;
    text-align: right;
    direction: rtl;
}

.sc-footer__description p {
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sc-footer__logo {
    width: 80px;
    height: 73px;
    flex-shrink: 0;
}

.sc-footer__logo img {
    width: 80px;
    height: 73px;
    display: block;
}

/* Section 2: Club Family Cards */
.sc-footer__family {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.sc-footer__family-title {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.sc-footer__family-title span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: #ffffff;
    direction: rtl;
}

.sc-footer__family-title .sc-icon-heart {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-footer__family-title .sc-icon-heart img {
    width: 28px;
    height: 28px;
    display: block;
}

/* Cards Row */
.sc-footer__cards {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

/* Individual Info Card */
.sc-footer__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    padding: 18px;
    border-radius: 12px;
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background-color: rgba(37, 39, 45, 0.58);
    border: 1px solid rgba(48, 52, 59, 0.78);
}

/* Current card (Strategic Club) */
.sc-footer__card--current {
    background-color: transparent;
    border-color: #30343b;
}

/* Card header row — icon on right, badge on left (RTL) */
.sc-footer__card-header {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    width: 100%;
}

/* Badge "اینجا هستید" */
.sc-footer__badge {
    background-color: #1081df;
    display: flex;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.sc-footer__badge span {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
    direction: rtl;
}

/* Card title + icon group: icon on right, text on left (RTL) */
.sc-footer__card-title-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.sc-footer__card-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    color: #ffffff;
    text-align: right;
    direction: rtl;
    white-space: nowrap;
}

/* Card icon box — appears on right side in RTL (first in DOM) */
.sc-footer__card-icon {
    background-color: #3c4049;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.sc-footer__card-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Card body text */
.sc-footer__card-body {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    color: #c4c8cf;
    text-align: right;
    direction: rtl;
    width: 100%;
    overflow: hidden;
    min-width: 0;
}

.sc-footer__card-body p {
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Divider */
.sc-footer__divider {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1px solid #30343b;
    margin: 0;
}

/* Section 3: Bottom Bar */
.sc-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

/* Row 1: Copyright (right in RTL) + Social (left in RTL) */
.sc-footer__bottom-row1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
}

/* Social icons group — left side in RTL */
.sc-footer__social {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.sc-footer__social-btn {
    background-color: #25272d;
    border: 1px solid #30343b;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 7px;
    border-radius: 8px;
    flex-shrink: 0;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sc-footer__social-btn:hover,
.sc-footer__social-btn:focus-visible {
    background-color: #30343b;
    border-color: #1081df;
    box-shadow: 0 8px 22px rgba(16, 129, 223, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.sc-footer__social-btn img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Copyright text — right side in RTL */
.sc-footer__copyright {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.sc-footer__copyright p {
    margin: 0;
    padding: 0;
}

/* Row 2: Nav links (right) + Credits (left) in RTL */
.sc-footer__bottom-row2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
}

/* Nav links group — right side in RTL */
.sc-footer__nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

/* Credits group — left side in RTL */
.sc-footer__credits {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

/* Shared button style */
.sc-footer__btn {
    background-color: #25272d;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 8px;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #30343b;
    direction: rtl;
}

.sc-footer__btn:hover,
.sc-footer__btn:focus-visible {
    background-color: #30343b;
    border-color: #1081df;
    box-shadow: 0 8px 22px rgba(16, 129, 223, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.sc-footer__btn span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    white-space: nowrap;
    direction: rtl;
}

.sc-footer__btn img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Hover states for cards */
.sc-footer__card:hover,
.sc-footer__card:focus-visible {
    background-color: rgba(48, 52, 59, 0.72);
    border-color: rgba(16, 129, 223, 0.46);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    outline: none;
}

/* Responsive */
@media (max-width: 1639px) {
    #colophon.sc-footer > .sc-footer__inner {
        padding: 40px 40px;
    }
}

@media (max-width: 1024px) {
    #colophon.sc-footer > .sc-footer__inner {
        padding: 32px 24px;
    }

    .sc-footer__cards {
        flex-wrap: wrap;
    }

    .sc-footer__card {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Mobile Social Icons — hidden on desktop, shown on mobile */
.sc-footer__social-mobile {
    display: none;
}

/* Nav buttons row — hidden on desktop */
.sc-footer__bottom-nav-row {
    display: none;
}

/* Credits buttons row — hidden on desktop */
.sc-footer__bottom-credits-row {
    display: none;
}

@media (max-width: 768px) {
    /* Prevent white corners behind the rounded footer on mobile */
    body {
        background-color: #1c1e22;
    }

    #colophon.sc-footer {
        background: #1c1e22;
        border-top: 2px solid #30343b;
        /* border-radius: 16px 16px 0 0; */
    }

    #colophon.sc-footer > .sc-footer__inner {
        padding: 24px 12px;
        align-items: center;
        gap: 24px;
    }

    /* Hide desktop-only sections on mobile */
    .sc-footer__family,
    .sc-footer__divider,
    .sc-footer__bottom-row1,
    .sc-footer__bottom-row2 {
        display: none;
    }

    /* Show mobile-only sections */
    .sc-footer__social-mobile {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .sc-footer__bottom-nav-row,
    .sc-footer__bottom-credits-row {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /* Top section: centered column */
    .sc-footer__top {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .sc-footer__logo {
        width: 40px;
        height: 37px;
    }

    .sc-footer__logo img {
        width: 40px;
        height: 37px;
    }

    .sc-footer__description {
        width: 100%;
        text-align: center;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: #ffffff;
    }

    /* Social buttons */
    .sc-footer__social-mobile .sc-footer__social-btn {
        background-color: #25272d;
        border: 1px solid #30343b;
        padding: 4px;
        border-radius: 4px;
        width: 28px;
        height: 28px;
        min-width: unset;
        min-height: unset;
    }

    .sc-footer__social-mobile .sc-footer__social-btn img {
        width: 20px;
        height: 20px;
    }

    /* Bottom section — centered column */
    .sc-footer__bottom {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    /* Nav buttons */
    .sc-footer__bottom-nav-row .sc-footer__btn {
        flex: 1 0 0;
        min-width: 0;
        height: 32px;
        padding: 8px 12px;
        border-radius: 4px;
        background-color: #25272d;
        border: none;
        justify-content: center;
    }

    .sc-footer__bottom-nav-row .sc-footer__btn span {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
    }

    /* Credits buttons */
    .sc-footer__bottom-credits-row .sc-footer__btn {
        flex: 1 0 0;
        min-width: 0;
        height: 32px;
        padding: 8px 12px;
        border-radius: 4px;
        background-color: #25272d;
        border: none;
        justify-content: center;
    }

    .sc-footer__bottom-credits-row .sc-footer__btn span {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
    }

    /* Copyright */
    .sc-footer__copyright {
        font-size: 12px;
        text-align: center;
        width: 100%;
        white-space: nowrap;
    }
}
