/* =========================================
   MAIN STRUCTURE & CARD STYLES
   ========================================= */

/* Main Container for Alignment */
.ltb-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Base Review Card Styles */
.ltb-review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #0073aa;
    padding: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    border-radius: 3px;
    box-sizing: border-box; /* Ensures padding is included in width/height */
}
.ltb-review-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}
.ltb-review-author { font-size: 1.1em; font-weight: bold; color: #23282d; }
.ltb-review-rating { color: #ffb900; font-size: 1.2em; }
.ltb-review-text { color: #555; font-style: italic; }

/* Heading Style */
.ltb-shortcode-title {
    margin-bottom: 20px;
}

/* =========================================
   GRID LAYOUT
   ========================================= */

.ltb-reviews-wrapper {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .ltb-grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .ltb-grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   VISUAL THEMES
   ========================================= */

/* PRO THEME: Dark Mode */
.ltb-theme-dark .ltb-review-card {
    background: #23282d;
    border-color: #444;
    border-left-color: #00a0d2;
}
.ltb-theme-dark .ltb-review-author { color: #f0f0f1; }
.ltb-theme-dark .ltb-review-text { color: #c7c7c7; }

/* PRO THEME: Minimalist */
.ltb-theme-minimal .ltb-review-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-left: 4px solid #aaa;
    box-shadow: none;
}
.ltb-theme-minimal .ltb-review-author {
    font-family: Georgia, serif;
    font-weight: normal;
    color: #444;
}

/* =========================================
   CONTENT LAYOUTS
   ========================================= */

/* Layout 2: Stacked */
.ltb-content-layout-stacked .ltb-review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Layout 3: Avatar */
.ltb-content-layout-avatar .ltb-card-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.ltb-review-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.ltb-review-main-content {
    flex: 1;
}

/* =========================================
   CONTENT ALIGNMENT
   ========================================= */

.ltb-align-content-left { text-align: left; }
.ltb-align-content-center { text-align: center; }
.ltb-align-content-right { text-align: right; }

/* Header Alignment Fix (Default and Stacked) */
.ltb-align-content-center .ltb-review-header { justify-content: center; gap: 10px; }
.ltb-align-content-right .ltb-review-header { justify-content: flex-end; gap: 10px; }

/* Stacked Layout Alignment Fix */
.ltb-content-layout-stacked.ltb-align-content-center .ltb-review-header { align-items: center; }
.ltb-content-layout-stacked.ltb-align-content-right .ltb-review-header { align-items: flex-end; }

/* Avatar Layout Alignment Fix */
.ltb-content-layout-avatar .ltb-review-main-content { text-align: inherit; }
.ltb-content-layout-avatar.ltb-align-content-center .ltb-review-header { justify-content: center; }
.ltb-content-layout-avatar.ltb-align-content-right .ltb-review-header { justify-content: flex-end; }

/* =========================================
   SLIDER STYLES
   ========================================= */

.ltb-slider { width: 100%; height: 100%; }
.ltb-slider .swiper-slide { display: flex; flex-direction: column; justify-content: center; height: auto; box-sizing: border-box; }
.ltb-slider .swiper-button-next, .ltb-slider .swiper-button-prev { color: #0073aa; }
.ltb-slider .swiper-pagination-bullet-active { background: #0073aa; }
/* =========================================
   === AVATAR TOP LAYOUT ===
   ========================================= */

.ltb-content-layout-avatar_top .ltb-card-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}

.ltb-content-layout-avatar_top .ltb-review-avatar {
    margin-bottom: 15px;
}

.ltb-content-layout-avatar_top .ltb-review-main-content {
    text-align: center; /* Center text content */
}

.ltb-content-layout-avatar_top .ltb-review-header {
    flex-direction: column; /* Stack name and stars */
    gap: 5px;
    margin-bottom: 10px;
}
/* =========================================
   === 'SHOW ALL REVIEWS' BUTTON STYLES ===
   ========================================= */

.ltb-show-all-container {
    margin-top: 25px;
}

.ltb-show-all-button {
    display: inline-block;
    background-color: #0073aa; /* Default WordPress Blue */
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}

.ltb-show-all-button:hover {
    background-color: #005a87; /* Darker Blue */
    color: #fff;
}

/* --- Button Sizes --- */
.ltb-button-small {
    font-size: 13px;
    padding: 8px 16px;
}
.ltb-button-medium {
    font-size: 15px;
    padding: 12px 24px;
}
.ltb-button-large {
    font-size: 17px;
    padding: 16px 32px;
}

/* --- Button Alignment --- */
.ltb-align-left { text-align: left; }
.ltb-align-center { text-align: center; }
.ltb-align-right { text-align: right; }