@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

.fm-reviews-container {
    font-family: 'Montserrat', sans-serif;
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    color: #ccc;
    width: 100%;
}

.fm-reviews-container * {
    box-sizing: border-box;
}

.fm-reviews-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
}

.fm-reviews-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 50px;
    color: #a9b4bd;
    line-height: 1.6;
}

.fm-trustpilot-banner {
    background: #1e2328;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    transition: border-color 0.3s;
}

.fm-trustpilot-banner:hover {
    border-color: rgba(0, 182, 122, 0.4);
}

.fm-tp-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.fm-tp-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fm-tp-logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.fm-tp-text h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.fm-tp-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.fm-tp-rating-number {
    background: #00b67a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
}

.fm-tp-text p {
    margin: 0;
    font-size: 15px;
    color: #a9b4bd;
}

.fm-tp-text p strong {
    color: #fff;
}

.fm-btn-tp {
    background: #00b67a;
    color: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.fm-btn-tp:hover {
    background: #009c69;
    color: #fff;
    transform: translateY(-2px);
}

.fm-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.fm-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.fm-review-card {
    background: #1e2328;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.fm-review-card:hover {
    border-color: rgba(0, 182, 122, 0.4);
    transform: translateY(-4px);
}

.fm-review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.fm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.fm-user-info {
    display: flex;
    flex-direction: column;
}

.fm-user-info strong {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.fm-user-info span {
    font-size: 12px;
    color: #a9b4bd;
}

.fm-review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.fm-review-text-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 72px; /* 3 linijki przy line-height 24px */
    transition: max-height 0.4s ease;
}

.fm-review-text-wrapper.expanded {
    max-height: 600px;
}

.fm-review-body {
    font-size: 15px;
    line-height: 24px;
    color: #ccc;
    margin: 0;
}

.fm-read-more {
    background: transparent;
    border: none;
    color: #ffdd44;
    padding: 12px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    text-align: left;
    transition: color 0.3s;
}

.fm-read-more:hover {
    color: #e6c73d;
}

.fm-reviews-cta {
    margin-top: 50px;
    text-align: center;
}

.discord-widget {
    max-width: 420px;
    margin: 40px auto;
    background-color: #2b2d31;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease;
    text-align: left;
}

.discord-widget:hover {
    transform: translateY(-4px);
}

.discord-widget-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-widget-header img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 0;
    background-color: transparent;
}

.discord-widget-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.discord-widget-header h3 strong {
    color: #fff;
}

.discord-widget-header p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #b5bac1;
}

.discord-join-button,
.discord-join-button:visited,
.discord-join-button:active {
    text-align: center;
    background-color: #5865f2 !important;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #fff !important;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
}

.discord-join-button:hover,
.discord-join-button:focus {
    background-color: #4752c4 !important;
    color: #fff !important;
}

@media (max-width: 600px) {
    .discord-widget {
        margin: 20px auto;
        padding: 16px;
        width: 100%;
    }
}

@media (max-width: 850px) {
    .fm-reviews-container {
        padding: 40px 10px 60px;
    }

    .fm-trustpilot-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 30px 20px;
    }

    .fm-tp-content {
        flex-direction: column;
        gap: 16px;
    }

    .fm-tp-score-row {
        justify-content: center;
    }

    .fm-reviews-title {
        font-size: 28px;
    }
}

.fm-read-more:hover,
.fm-read-more:focus,
.fm-read-more:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    color: #e6c73d !important;
}