/* ---------- EDIT BUTTON ---------- */
.review__edit {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #5C2EFF, #8A4FFF);
    color: #FFF;
    transition: transform 0.18s ease, box-shadow 0.18s ease, 0.25s ease;
}

.review__edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 79, 255, 0.3);
    background: linear-gradient(90deg, #8A4FFF, #5C2EFF);
}

/* ---------- FEED STYLES ---------- */
.feed {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.feed__post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 79, 255, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed__post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(138, 79, 255, 0.25);
}

/* ---------- POST STYLES ---------- */
.post__card {
    color: #EAE6FF;
}

.post__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(234, 230, 255, 0.7);
}

.post__author {
    font-weight: 600;
    color: #8A4FFF;
}

.post__date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.post__body {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(234, 230, 255, 0.9);
}

/* ---------- COMMENTS STYLES ---------- */
.post__comments {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    border-top: 1px solid rgba(138, 79, 255, 0.2);
    padding-top: 20px;
}

.comment {
    background: rgba(138, 79, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid #8A4FFF;
}

.comment__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment__author {
    font-weight: 600;
    color: #CFC6FF;
    font-size: 0.9rem;
    margin: 0;
}

.comment__date {
    font-size: 0.8rem;
    color: rgba(234, 230, 255, 0.6);
    margin: 0;
}

.comment__body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(234, 230, 255, 0.9);
    margin-bottom: 12px;
}

.comment__edit {
    background: rgba(92, 46, 255, 0.3);
    border: 1px solid rgba(138, 79, 255, 0.4);
    color: #FFF;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.comment__edit:hover {
    background: rgba(92, 46, 255, 0.5);
    transform: translateY(-1px);
}

.comment--empty,
.comment--error {
    text-align: center;
    color: rgba(234, 230, 255, 0.6);
    font-style: italic;
    padding: 20px;
}

/* ---------- LOADER STYLES ---------- */
.feed__loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loader__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(138, 79, 255, 0.3);
    border-left: 4px solid #8A4FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loader__text {
    color: rgba(234, 230, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- ERROR STYLES ---------- */
.feed__error {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

.error__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error__title {
    color: #FF5757;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.error__message {
    color: rgba(234, 230, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.error__retry {
    background: linear-gradient(90deg, #5C2EFF, #8A4FFF);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.error__retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(138, 79, 255, 0.3);
}

/* ---------- BUTTON STATES ---------- */
.form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form__button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ---------- SWIPER STYLES (адаптированные под вашу палитру) ---------- */
.posts-slider {
    width: 100%;
    height: 600px;
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(138, 79, 255, 0.2);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: transparent;
}

.swiper-button-next,
.swiper-button-prev {
    color: #8A4FFF !important;
    background: rgba(138, 79, 255, 0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(138, 79, 255, 0.2);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: rgba(234, 230, 255, 0.5) !important;
    opacity: 0.7 !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #8A4FFF !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

.swiper-slide .post {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.swiper-slide-active .post {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- SweetAlert2 CUSTOM STYLES ---------- */
.custom-swal-popup {
    background: linear-gradient(135deg, #1A0E29 0%, #261D4F 100%) !important;
    border: 1px solid rgba(138, 79, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.custom-swal-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(138, 79, 255, 0.3) !important;
    border-radius: 8px !important;
    color: #EAE6FF !important;
    padding: 12px !important;
}

.custom-swal-input:focus {
    border-color: #8A4FFF !important;
    box-shadow: 0 0 0 2px rgba(138, 79, 255, 0.2) !important;
}

.swal2-title {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    color: rgba(234, 230, 255, 0.9) !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swal2-show {
    animation: slideIn 0.3s ease !important;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 768px) {
    .posts-slider {
        height: 500px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .posts-slider {
        height: 450px;
        margin: 20px 0;
    }
    
    .swiper-slide {
        padding: 10px;
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .reviews__item {
        flex: 1 1 100%;
    }
}
