/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #1b1f23;
    color: #f3f3f3;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px 22px;
    height: 58px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 20.52px;
    height: 20.08px;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-left: 8px;
}

.nav-menu {
    margin-left: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.nav-link.active {
    color: #abe9e1;
}

.nav-link:hover {
    color: #abe9e1;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
    min-height: 1000px;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
    margin-top: 32px;
}

.page-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #f3f3f3;
    margin-bottom: 16px;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
}

/* Transfer List */
.transfer-list {
    flex: 2;
    min-width: 0;
}

.transfer-table {
    width: 100%;
    background-color: #000;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.transfer-header {
    display: flex;
    align-items: center;
    margin-left: 7px;
    background-color: #000;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #929a9e;
}

.transfer-header span {
    display: block;
}

.transfer-header span:nth-child(1) {
    width: 80px;
    text-align: left;
}

.transfer-header span:nth-child(2) {
    width: 30px;
    margin-left: 30px;
    text-align: center;
}

.transfer-header span:nth-child(3) {
    width: 30px;
    margin-left: 30px;
    text-align: center;
}

.transfer-header span:nth-child(4) {
    flex: 1;
    margin-left: 30px;
    text-align: left;
}

.transfer-header span:nth-child(5) {
    width: 80px;
    text-align: right;
}

.transfer-row {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #0d0d0d;
    border-radius: 5px;
    margin-top: 5px; /* Уменьшаем расстояние между хедером и строкой с 10px до 5px */
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #fff;
}

.transfer-row div {
    display: flex;
    align-items: center;
}

.transfer-row .player {
    width: 80px;
    text-align: left;
}

.transfer-row .old-team {
    width: 30px;
    margin-left: 30px;
    justify-content: center;
}

.transfer-row .old-team img,
.transfer-row .new-team img {
    width: 60px;
    height: 30px;
}

.transfer-row .new-team {
    width: 30px;
    margin-left: 30px;
    justify-content: center;
}

.transfer-row .transfer-text {
    flex: 1;
    margin-left: 30px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transfer-row .date {
    width: 80px;
    text-align: right;
}

/* Transfer Row Specific Styles */
.transfer-row .player span {
    color: #FFFFFF; /* White color for player nickname */
}

.transfer-row .transfer-text .family-name {
    color: #FFFFFF; /* White color for family names */
}

.transfer-row .transfer-text .transition-word {
    color: #929A9E; /* Color for the word "перешел" */
}

.transfer-row .date span {
    color: #929A9E; /* Color for the date */
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.page-btn {
    background-color: #000;
    border: 1px solid #22282f;
    padding: 3px 8px;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.page-btn.active {
    background-color: #fff;
    color: #000;
}

.page-btn:hover {
    background-color: #2d3844;
}

/* Filter Section */
.filter-section {
    flex: 1;
    min-width: 0;
    font-family: 'Montserrat', sans-serif;
}

.filter-card {
    background-color: #000;
    border-radius: 5px;
    padding: 15px;
    height: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
}

.filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #22282f;
    width: 26px;
    height: 26px;
    border-radius: 3px;
}

.filter-icon i {
    font-size: 14px;
    color: #fff;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #22282f;
    margin: 10px 0;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 5px;
    font-weight: 500;
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    padding: 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.accordion-trigger:hover {
    text-decoration: underline;
}

.accordion-trigger i {
    font-size: 14px;
    color: #929a9e;
    transition: transform 0.2s;
}

.accordion-content {
    display: none;
    padding: 5px 0;
}

.filter-search {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #1b1f23;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.server-btn,
.date-btn,
.ranking-btn {
    background-color: #1b1f23;
    border: none;
    padding: 5px 10px;
    color: #f3f3f3;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 2px 0;
    width: 100%;
    text-align: left;
}

.server-btn.active,
.date-btn.active,
.ranking-btn.active {
    background-color: #2d6da3;
}

.server-btn:hover,
.date-btn:hover,
.ranking-btn:hover {
    background-color: #2d3844;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #fff;
    padding: 5px 0;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
}

/* Description Section */
.description-section {
    background-color: #000;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.description-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.description-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #929a9e;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 64px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1388px;
    margin: 0 auto;
}

.footer-logo-section {
    margin-bottom: 56px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo-img {
    width: 30px;
    height: 29px;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    margin-left: 7px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 16px;
    height: 16px;
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 5px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #f3f3f3;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 32px 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #f3f3f3;
    text-decoration: none;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

/* User Controls */
.user-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2d3844;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.user-control-btn i {
    font-size: 16px;
    color: #fff;
}

.user-control-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.user-control-btn:hover i {
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .user-controls {
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .user-control-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .main-content {
        min-height: 800px;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .main-layout {
        flex-direction: column;
    }

    .transfer-list {
        flex: none;
        width: 100%;
    }

    .transfer-table {
        width: 100%;
    }

    .transfer-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .transfer-row div {
        width: auto;
        margin-left: 0;
        text-align: left;
    }

    .transfer-row .transfer-text {
        text-align: left;
    }

    .transfer-row .date {
        text-align: left;
    }
}