/**
 * Single Review Styles
 * 
 * @package CursorTheme
 */

/* User Reviews Section */
.user-reviews-section {
    padding: 3rem 0;
}

.reviews-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

/* Submit Review Button */
.submit-review-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.submit-review-trigger-btn {
    padding: 1rem 2.5rem;
    background: #E63946;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-review-trigger-btn:hover {
    background: #d32f3e;
    transform: translateY(-2px);
}

.submit-review-trigger-btn:active {
    transform: translateY(0);
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.review-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    background: #212121;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.review-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.review-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

/* Review Form */
.review-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.review-comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-comment-form .form-group {
    margin-bottom: 1.5rem;
}

.review-comment-form label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.review-comment-form .required {
    color: #E63946;
}

.review-comment-form input[type="text"],
.review-comment-form input[type="email"],
.review-comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.review-comment-form input[type="text"]:focus,
.review-comment-form input[type="email"]:focus,
.review-comment-form textarea:focus {
    outline: none;
    border-color: #E63946;
    background: rgba(255, 255, 255, 0.15);
}

.review-comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Stars Input */
.rating-stars-input {
    display: flex;
    gap: 0.5rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

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

.rating-stars-input .star-label {
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.rating-stars-input .star-label:hover,
.rating-stars-input .star-label:hover ~ .star-label {
    color: #E63946;
}

.rating-stars-input input[type="radio"]:checked ~ .star-label,
.rating-stars-input input[type="radio"]:checked ~ .star-label ~ .star-label {
    color: #E63946;
}

.rating-stars-input .star-svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

/* Submit Button */
.form-submit-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.submit-review-btn {
    padding: 0.75rem 2rem;
    background: #E63946;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-review-btn:hover {
    background: #d32f3e;
    transform: translateY(-2px);
}

.submit-review-btn:active {
    transform: translateY(0);
}

.form-message {
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    display: block;
}

/* Reviews List */
.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 5px 5px 5px 0px #00000070;
}

.review-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-author-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
}

.review-author-name {
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.review-date {
    color: #BBB;
    font-size: 0.9rem;
}

.review-item-rating {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-top: 0.5rem;
}

.user-rating-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.review-item-rating .star-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.review-item-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.review-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.review-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.9rem;
}

.review-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.review-action-btn:active {
    transform: translateY(0);
}

.review-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.review-action-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.thumbs-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.vote-count {
    color: white;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.no-reviews {
    text-align: center;
    color: #BBB;
    font-style: italic;
    padding: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-reviews-section {
        padding: 2rem 0;
    }
    
    .review-form-wrapper {
        padding: 1.5rem;
    }
    
    .review-comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .rating-stars-input .star-svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .review-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Breadcrumb */
.review-breadcrumb {
    padding: 0.75rem 0;
    background: transparent;
    margin-top: 0;
}


.review-breadcrumb .breadcrumb {
    border-radius: 0;
}

/* Gray Wrapper (like category page) */
.review-gray-wrapper {
    background: #212121;
    border-radius: 20px;
    margin: 10px auto;
    width: 1300px;
    box-shadow: 5px 5px 10px 5px rgb(0 0 0);
}

.review-gray-wrapper .container {
    max-width: 1300px;
    width: 100%;
}

/* Main Content Layout */
.review-main-content {
    background: transparent;
}

.review-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.7fr 1fr;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* Left Column: Image Only */
.review-image-column {
    max-width: 100%;
}

/* Middle Column: Brand Info */
.review-info-column {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: flex-start;
}



.review-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.review-site-url {
    color: #BBB;
    font-size: 0.9rem;
    margin: -5px 0 5px 0;
}

/* Rating */
.review-rating {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0;
}

.star {
    font-size: 1.5rem;
    color: #E63946;
}

.star-svg {
    width: 2rem;
    height: 2rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.star-svg path {
    filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.1));
    stroke-linejoin: round;
    stroke-linecap: round;
}

.star-empty {
    color: #666;
    opacity: 0.5;
}

.star-half-wrapper {
    position: relative;
    display: inline-block;
    width: 33px;
    height: 1.5rem;
    line-height: 1.5rem;
    vertical-align: middle;
    font-size: 1.5rem;
}

.star-half-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: #666;
    opacity: 0.5;
    z-index: 1;
    display: block;
}

.star-half-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 1.5rem;
    color: #E63946;
    z-index: 2;
    display: block;
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

.rating-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Featured Image with Overlay */
.review-featured-image-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
}


/* Key Features Wrapper */
.review-key-features-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

/* Key Features Section */
.review-key-features {
    max-height: 90px;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.review-key-features-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: linear-gradient(to bottom, transparent, rgba(33, 33, 33, 0.7), rgba(33, 33, 33, 0.95), #212121);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.review-key-features::-webkit-scrollbar {
    width: 4px;
}

.review-key-features::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.review-key-features::-webkit-scrollbar-thumb {
    background: #E63946;
    border-radius: 10px;
}

.review-key-features::-webkit-scrollbar-thumb:hover {
    background: #E63946;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    column-gap: 1.5rem;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    color: #BBB;
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}



.features-pro {
    margin-bottom: 1rem;
}

.feature-text {
    line-height: 1.5;
    font-size: 0.95rem;
}

.review-featured-image {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #828282;
    box-shadow:0px 0px 10px 0px black;
}

.review-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2;
}

.open-button {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.75) 0%, rgba(34, 197, 94, 0.7) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}
.open-button .brand-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: inline-block;
    border-radius: 20px;
    margin-right: 0.75rem;
}


.brand-icon {
    width: 30px;
    height: 30px;
    background: #9333ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.button-text {
    white-space: nowrap;
}

.open-button .external-icon {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 1;
    margin-left: auto;
}

.image-site-url {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    z-index: 3;
    text-align: center;
}


/* Review Description Wrapper */
.review-description-wrapper {
    position: relative;
    margin-top: 1rem;
    max-height: 330px;
    overflow: hidden;
}

/* Review Description (Scrollable) */
.review-description-scroll {
    color: white;
    line-height: 1.8;
    font-size: 15px;
    min-height: 420px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
    padding-bottom: 100px;
    box-sizing: border-box;
}

.review-description-fade-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        #212121 0%,
        rgba(33, 33, 33, 0.95) 20%,
        rgba(33, 33, 33, 0.85) 40%,
        rgba(33, 33, 33, 0.6) 60%,
        rgba(33, 33, 33, 0.3) 80%,
        rgba(33, 33, 33, 0) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-description-fade-top.show {
    opacity: 1;
}

.review-description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, 
        rgba(33, 33, 33, 0) 0%,
        rgba(33, 33, 33, 0.4) 15%,
        rgba(33, 33, 33, 0.7) 35%,
        rgba(33, 33, 33, 0.9) 55%,
        rgba(33, 33, 33, 0.97) 75%,
        #212121 90%,
        #212121 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.review-description-scroll p {
    margin-bottom: 1rem;
    font-size: 15px;
    font-weight: 300;
    color: #BBB;
}

.review-description-scroll h2,
.review-description-scroll h3,
.review-description-scroll h4 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #BBB;
    line-height: 30px;
}

.review-description-scroll h3 {
    font-size: 1.3rem;
}

.review-description-scroll h4 {
    font-size: 1.15rem;
}

/* Custom Scrollbar */
.review-description-scroll::-webkit-scrollbar {
    width: 4px;
}

.review-description-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.review-description-scroll::-webkit-scrollbar-thumb {
    background: #E63946;
    border-radius: 10px;
}

.review-description-scroll::-webkit-scrollbar-thumb:hover {
    background: #E63946;
}


/* Right Column: Sidebar */
.review-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100%;
    align-items: stretch;
}

.sidebar-homepage-preview {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    position: relative;
    height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #828282;
}

.sidebar-homepage-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50); /* dark overlay under the button */
    z-index: 1;
    border-radius: 9px;
}

.sidebar-homepage-preview .sidebar-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}

.sidebar-homepage-preview .sidebar-thumbnails {
    display: none;
}

.homepage-preview-button {
    background: #E63946;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    box-shadow:0px 0px 10px 0px #E63946;
}


.sidebar-section {
    background: #212121;
    padding: 1.5rem;
    border-radius: 10px;
}

.sidebar-section h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.sidebar-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: block;
}

.sidebar-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-small {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
}

.sidebar-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #2a2a2a;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.sidebar-button:hover {
    background: #3a3a3a;
}



.sidebar-bonus {
    margin-top: 1rem;
}

.bonus-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}

.bonus-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image-medium {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
}

.bonus-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* Related Sites Section */
.related-sites-section {
    padding: 3rem 0;
    background: transparent;
}

.section-header-with-button {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 10px 10px 0;
    border-bottom: 5px solid #ffffff; /* white underline like other sections */
    border-radius: 3px;
}

.section-header-with-button h2 {
    font-size: 2rem;
    font-weight: 500;
    color: white;
    margin: 0;
    flex-grow: 1;
    word-break: break-word;
    text-transform: uppercase;
}

.section-button {
    background: #2a2a2a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s ease;
}

.section-button:hover {
    background: #3a3a3a;
}

/* Alternatives Section */
.alternatives-section {
    padding: 3rem 0;
    background: transparent;
}

.alternatives-title-wrapper {
    flex-grow: 1;
}

.alternatives-title-wrapper h2 {
    flex-grow: 1;
    word-break: break-word;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.alternatives-icon {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

.alternatives-icon-img {
    display: inline-block;
    vertical-align: top;
    width: 28px;
    height: 28px;
}

.alternatives-text {
    display: inline;
}

.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.alternative-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #212121;
    border: 1px solid #828282;
    box-shadow:2px 2px 10px 0px black;
}

.alternative-card a {
    display: block;
    text-decoration: none;
}

.alternative-card img,
.alternative-card .placeholder-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.alternative-label {
    display: none !important;
}

.related-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-site-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #212121;
}

.related-site-card a {
    display: block;
    text-decoration: none;
}

.related-site-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.site-card-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Categories Section */
.review-categories-section {
    padding: 3rem 0;
    background: transparent;
}

.review-categories-section .categories-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.review-categories-section .categories-grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .review-gray-wrapper {
        width: 100%;
        border-radius: 0;
        padding: 1rem;
    }
    
    .review-layout {
        grid-template-columns: 1fr;
        gap:10px;
        display: flex;
        flex-direction: column;
    }
    
    /* Extract elements from columns to reorder them */
    .review-image-column {
        display: contents;
    }
    
    .review-info-column {
        display: contents;
    }
    
    /* Order on mobile: 
    0. review-title-section (H1 + URL - moved from middle column)
    1. review-featured-image-wrapper
    2. review-description-wrapper
    3. review-key-features-wrapper
    3.5. review-rating (stars - moved from title section)
    4. review-sidebar
    */
    .review-title-section {
        order: 0;
        padding: 0 0 1rem 0;
        display: contents;
    }
    
    .review-title-section h1,
    .review-title-section .review-site-url {
        order: 0;
    }
    
    .review-featured-image-wrapper {
        order: 1;
    }
    
    .review-description-wrapper {
        order: 2;
    }
    
    .review-key-features-wrapper {
        order: 3;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    
    .review-rating {
        order: 4;
        display: flex;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .review-sidebar {
        order: 5;
        width: 100%;
    }
    
    .related-sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-categories-section .categories-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alternatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Extract elements from columns to reorder them */
    .review-info-column {
        display: contents;
    }
    
    /* Order on mobile:
    0. review-title-section (H1 + URL - moved from middle column)
    1. review-featured-image-wrapper
    2. review-description-wrapper
    3. review-key-features-wrapper
    4. review-rating (stars - moved from title section, after Pro/Contro)
    5. review-sidebar
    */
    .review-title-section {
        order: 0;
        padding: 0 0 1rem 0;
        display: contents;
    }
    
    .review-title-section h1,
    .review-title-section .review-site-url {
        order: 0;
    }
    
    .review-title-section h1 {
        font-size: 2rem;
        margin: 0 0 0.5rem 0;
    }
    
    .review-title-section .review-site-url {
        margin: -10px 0 15px 0;
    }
    
    .review-featured-image-wrapper {
        order: 1;
    }
    
    .review-description-wrapper {
        order: 2;
        margin-top: 0;
    }
    
    .review-key-features-wrapper {
        order: 3;
        margin-top: 20px;
        margin-bottom: 0;
    }
    
    /* Show rating separately after Pro/Contro - centered on mobile */
    .review-rating {
        order: 4;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
        gap: 0.2rem;
    }
    
    /* Center all stars in a row */
    .review-rating .star {
        font-size: 2rem;
        display: inline-block;
        flex-shrink: 0;
    }
    
    .review-rating .star-svg {
        width: 2rem;
        height: 2rem;
    }
    
    /* Make rating text appear below stars - full width */
    .review-rating .rating-text {
        margin-left: 0;
        margin-top: 0;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        flex-basis: 100%;
    }
    
    .review-sidebar {
        order: 5;
    }
    .review-gray-wrapper {
        width: 100%;
        padding: 0 20px;
    }
    
    .review-title-section h1 {
        font-size: 2rem;
    }
    
    .section-header-with-button {
        align-items: flex-start;
        gap: 1rem;
        margin-bottom:1.5rem;
    }
    
    .related-sites-grid {
        grid-template-columns: 1fr;
    }
    
    .review-categories-section .categories-grid-section {
        grid-template-columns: repeat(2, 1fr);

    }

    .review-categories-section .categories-grid-section{
        gap:1.5rem;
        padding:0
    }

    .review-categories-section{
        padding:0
    }
    
    .alternatives-section {
        padding: 4rem 0;
    }
    
    .section-header-with-button {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 5px 10px 10px 0 !important;
    }
    
    .alternatives-title-wrapper {
        flex-grow: 1;
    }
    
    .alternatives-title-wrapper h2 {
        font-size: 18px !important;
        font-weight: 500 !important;
        line-height: 1.4;
        margin: 0 !important;
        flex-grow: 1 !important;
        word-break: break-word;
        text-transform: uppercase;
    }
    
    .alternatives-icon {
        display: inline-block !important;
        vertical-align: top !important;
        margin-right: 10px !important;
    }
    
    .alternatives-icon-img {
        display: inline-block !important;
        vertical-align: top !important;
        width: 24px !important;
        height: 24px !important;
    }
    
    .alternatives-text {
        display: inline !important;
    }
    
    .section-button {
        flex-shrink: 0 !important;
        width: 44px !important;
        min-width: 44px !important;
    }
    
    .alternatives-icon-img {
        width: 24px;
        height: 24px;
    }
    
    .alternative-label {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .section-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0.75rem;
        font-size: 0;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .section-button::after {
        content: "→";
        font-size: 18px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .image-overlay {
        padding: 2rem 10px !important; /* Padding laterale ridotto su mobile */
    }
    
    .open-button {
        padding: 1.25rem 1.25rem 1.25rem 1.25rem;
        font-size: 1.1rem;
        min-width: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .button-text {
        font-size: 18px;
        font-weight: 500;

    }
    
    .open-button .brand-icon-img,
    .open-button .external-icon {
        width: 30px !important;
        height: 30px !important;
    }
    
    .open-button .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .breadcrumb {
        padding: 0.75rem 0;
        margin-top: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        border-radius: 0;
    }
    
    .breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .breadcrumb .container {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        min-width: 100%;
    }
    
    .breadcrumb-home,
    .breadcrumb-link,
    .breadcrumb-current,
    .breadcrumb-separator {
        white-space: nowrap;
        display: inline-block;
        flex-shrink: 0;
        font-size: 15px;
    }
    
    .review-key-features-fade {
        bottom: -1px;
    }
    
        .review-description-fade {
            bottom: 0;
            height: 90px;
            opacity: 1 !important;
        }
        
        .review-description-fade-top {
            top: -1px;
        }
    
    .review-featured-image {
        height: 500px;
    }

    .review-categories-section .categories-title{
        padding:0;
        margin:0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .review-featured-image {
        height: 400px;
    }
}
