/* ============================================================
   TESTIMONIALS PAGE STYLES
   Page: resources/views/main/testimonials/index.blade.php
   Depends on global variables defined in style.css:
   - Colors: --bg-white, --bg-light, --text-light, --text-muted,
     --text-dark, --border-light, --primary-blue, --star-color,
     --star-empty, --gray-400
   - Spacing: --spacing-*
   - Typography: --font-size-*, --font-weight-*
   - Transitions: --transition
   - Shadows: --shadow, --shadow-md
   - Radius: --radius-*
   - Gradients: --gradient-primary
   - Container: --container-max-width, --container-padding
   ============================================================ */

/* ============================================================
   MAIN CONTAINER – page wrapper
   ============================================================ */

   .testimonial-container {
    max-width: var(--container-max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--container-padding);
}

/* ============================================================
   TESTIMONIAL SECTION – main card
   ============================================================ */

.testimonial-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-xl);
}

.section-content {
    padding: var(--spacing-lg);
}

/* ============================================================
   TESTIMONIAL ITEM – individual card
   ============================================================ */

.testimonial-item {
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
}

/* ============================================================
   RATING – star display
   ============================================================ */

.star-rating {
    color: var(--star-color);
    margin-bottom: var(--spacing-md);
}

.star-icon {
    color: var(--star-color);
}

/* ============================================================
   TESTIMONIAL CONTENT – quote text
   ============================================================ */

.testimonial-content {
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    color: var(--text-light);
}

/* ============================================================
   CLIENT IMAGE – circular avatar
   ============================================================ */

.client-image {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    border-radius: var(--radius-circle) !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: inline-block;
}

/* ============================================================
   FORM SECTION – submit a testimonial
   ============================================================ */

.form-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-container {
    padding: var(--spacing-lg);
}

/* ============================================================
   FORM INPUTS – underlined style
   ============================================================ */

.textarea-input,
.text-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 0.75rem var(--spacing-sm);
    background: var(--bg-white);
    transition: var(--transition);
}

.textarea-input:focus,
.text-input:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    flex: 1;
    min-width: 200px;
}

/* ============================================================
   RATING INPUT – interactive stars
   ============================================================ */

.rating-container {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.rating-label {
    margin-right: var(--spacing-md);
    color: var(--text-muted);
}

.star-rating-interactive {
    cursor: pointer;
    color: var(--star-empty);
    transition: var(--transition);
}

.star-active {
    color: var(--star-color);
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.submit-btn {
    color: var(--white);
    border: none;
    border-radius: var(--radius-2xl);
    padding: 0.8rem var(--spacing-xl);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition);
    background: var(--gradient-primary);
    cursor: pointer;
}

/* ============================================================
   LOGIN PROMPT – shown when user is not logged in
   ============================================================ */

.login-prompt {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg);
    text-align: center;
}

.login-message {
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
}

.login-btn {
    color: var(--white);
    border: none;
    border-radius: var(--radius-2xl);
    padding: 0.75rem var(--spacing-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gradient-primary);
    transition: var(--transition);
}

.login-btn:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   OWL CAROUSEL DOTS – navigation indicators
   ============================================================ */

.owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.owl-dot {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-circle);
    background: var(--gray-400);
    transition: var(--transition);
}

.owl-dot.active span {
    width: 24px;
    border-radius: var(--radius-2xl);
    background: var(--primary-blue);
}

/* ============================================================
   RESPONSIVE: TABLET (≤768px)
   ============================================================ */

@media (max-width: 768px) {
    .testimonial-container {
        margin: var(--spacing-md) auto;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {

    :root {
        --bg-white:     #1a1a2e;
        --bg-light:     #16213e;
        --border-light: #2c3e50;
        --text-light:   #e0e0e0;
        --text-muted:   #a0a0a0;
        --text-dark:    #ffffff;
    }
}