/* Review Form Styles */
.review-form-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.review-form-card:hover {
    box-shadow: 0 20px 50px var(--gold-soft);
    border-color: var(--gold-strong);
}

.custom-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--dark-text);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--gold-soft);
    color: var(--dark-text);
}

.custom-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stats-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px var(--gold-soft);
    border-color: var(--gold-strong);
}

.stats-icon {
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.rating {
    margin-top: 1rem;
}

/* Platform Link Cards */
.platform-link-block {
    text-decoration: none;
    color: inherit;
}

.platform-link-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.google-platform:hover {
    border-color: rgba(66,133,244,0.5);
    box-shadow: 0 15px 35px rgba(66,133,244,0.2);
}

.yandex-platform:hover {
    border-color: rgba(252,63,29,0.5);
    box-shadow: 0 15px 35px rgba(252,63,29,0.2);
}

.instagram-platform:hover {
    border-color: rgba(228,64,95,0.5);
    box-shadow: 0 15px 35px rgba(228,64,95,0.2);
}

.gis-platform:hover {
    border-color: rgba(52,168,83,0.5);
    box-shadow: 0 15px 35px rgba(52,168,83,0.2);
}

.platform-icon {
    transition: transform 0.3s ease;
}

.platform-link-card:hover .platform-icon {
    transform: scale(1.1);
}

/* Star Rating Styles */
.rating-selector {
    display: flex;
    justify-content: center;
}

.star-rating {
    display: flex;
    gap: 0.3rem;
}

.star-label {
    color: #6c757d;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    margin: 0;
}

.star-rating input[type="radio"] {
    display: none;
}

/* Review visibility */
.review-hidden {
    display: none !important;
}

.review-item {
    animation: fadeIn 0.5s ease-in;
    align-self: flex-start;
}

/* Row контейнер для отзывов - выравнивание по началу чтобы блоки не растягивались */
.row.justify-content-center {
    align-items: flex-start !important;
}

.review-card {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    height: auto;
}

.review-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.review-card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-card .rating {
    margin-top: auto;
    margin-bottom: 0;
}

.review-card .show-more-btn,
.review-toggle-btn {
    display: inline;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffc107 !important;
    padding: 0;
    margin-left: 3px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.review-card .show-more-btn:hover,
.review-toggle-btn:hover {
    color: #ffd700 !important;
    opacity: 0.9;
    text-decoration: underline !important;
}

/* Центрирование карточек на мобильных */
@media (max-width: 767.98px) {
    .review-item {
        display: flex;
        justify-content: center;
    }
    
    .review-card {
        width: 100%;
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-card {
        margin-bottom: 1rem;
    }
}
