
:root {
    --primary-color: #1DA1F2; /* Twitter Blue */
    --secondary-color: #f8f9fa;
    --text-color-dark: #343a40;
    --text-color-light: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--text-color-light) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #0d95e8 !important;
    border-color: #0d95e8 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
}

a:hover {
    color: #0d95e8;
}

      body {
            font-family: 'Roboto', sans-serif;
        }

.hover-highlight:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.card-header {
    padding: 0.75rem 1rem;
    font-weight: bold;
}

.card-footer {
    background-color: #f8f9fa;
    padding: 0.75rem;
}

.card-footer .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

a.text-dark {
    text-decoration: none;
}

a.text-dark:hover {
    text-decoration: none;
}

.btn-custom-yellow {
    background-color: #FFD700; /* Gold color */
    color: #ffffff; /* White text */
    border: 1px solid #FFD700; /* Matching border */
}

.btn-custom-yellow:hover {
    background-color: #FFC107; /* Slightly darker shade for hover effect */
    border-color: #FFC107; /* Matching border on hover */
    color: #ffffff; /* Ensure text remains white on hover */
}
.random-coaches-section {
    margin-top: 50px;
    text-align: center;
}

.coach-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.coach-card {
    width: 200px;
    margin: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.coach-card img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.coach-card h4 {
    margin-top: 10px;
    font-size: 1.2em;
}

.coach-card p {
    font-size: 0.9em;
    color: #666;
}

.coach-card .btn {
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
}

/* Fix overflow issues for coach bio/overview content */
.coach-bio {
    max-height: 300px;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body p,
.card-body div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure cards don't overflow their containers */
.card {
    max-width: 100%;
    overflow: hidden;
}

/* Progress bars - ensure they stay within bounds */
.progress-bar span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Investigation summary text handling */
.investigation-summary,
.card p {
    word-break: break-word;
    hyphens: auto;
}

/* ===== Category Card Enhancements ===== */

/* Card hover lift effect */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Gradient header effect */
.category-card .card-header {
    position: relative;
    overflow: hidden;
}

.category-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Profile image with category-colored ring */
.coach-avatar {
    border: 3px solid var(--category-color, #1DA1F2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Coach row hover effect */
.coach-row {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
}

.coach-row:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: scale(1.02);
}

.coach-row:hover .coach-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Name truncation for long names */
.coach-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* View All button enhancements */
.btn-view-all {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.btn-view-all:active {
    transform: translateY(0);
}

/* Risk badge improvements */
.risk-badge {
    font-size: 0.8rem;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    transition: transform 0.2s ease;
    cursor: help;
}

.risk-badge:hover {
    transform: scale(1.15);
}

/* Card footer enhancement */
.category-card .card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* Description text styling */
.category-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating star styling */
.coach-rating {
    font-size: 0.75rem;
    color: #f59e0b;
}

/* Position number styling */
.position-number {
    font-weight: 700;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Fade-in animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.5s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== Coach Profile Page Enhancements ===== */

/* Match badge animation */
.match-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.match-badge.bg-success {
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

/* Personality trait bars */
.progress {
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s ease-out;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Score card hover effect */
.card[style*="border-left"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card[style*="border-left"]:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tooltip info icons */
.text-info[data-bs-toggle="tooltip"] {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.text-info[data-bs-toggle="tooltip"]:hover {
    opacity: 1;
}

/* OCEAN trait rows */
.col-12.mb-3 .progress {
    background-color: #e9ecef;
}

/* Coach bio content */
.coach-bio {
    line-height: 1.7;
    color: #495057;
}

.coach-bio p {
    margin-bottom: 1rem;
}

/* Responsive adjustments for score meters */
@media (max-width: 991px) {
    .col-lg-3.mb-3 .progress {
        height: 25px !important;
    }

    .col-lg-3.mb-3 .progress-bar span {
        font-size: 0.7rem;
    }
}

/* ============================================
   USER REVIEWS SECTION
   ============================================ */

/* Star rating input (for form) */
.star-rating-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.star-input {
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
    color: #ddd;
}

.star-input:hover {
    transform: scale(1.15);
}

.star-input svg {
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.star-input.active svg {
    fill: #ffc107;
    stroke: #ffc107;
}

/* Rating text label */
.rating-text {
    font-weight: 500;
    min-width: 120px;
}

/* Review cards */
.review-card {
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-card.border-warning {
    border-width: 2px !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

/* Review avatar */
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Review title */
.review-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Review content */
.review-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Stars display (in review cards) */
.stars-container {
    display: inline-flex;
    gap: 1px;
}

.star-display {
    font-size: 0.9rem;
    color: #ddd;
}

.star-display.filled {
    color: #ffc107;
}

/* Review rating badge */
.review-rating {
    text-align: right;
}

/* Vote buttons */
.vote-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.vote-btn.active {
    font-weight: bold;
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pros/cons sections */
.review-pros,
.review-cons {
    padding: 0.5rem;
    border-radius: 4px;
    background: #f8f9fa;
}

.review-pros {
    border-left: 3px solid #28a745;
}

.review-cons {
    border-left: 3px solid #6c757d;
}

/* Review form */
.review-form .form-control {
    border-radius: 8px;
}

.review-form .form-control:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

/* Empty state */
#reviews-list .text-center svg {
    color: #ccc;
}

/* Sort dropdown */
#review-sort {
    border-radius: 20px;
    padding-left: 1rem;
    padding-right: 2rem;
}

/* Helpful section */
.helpful-votes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .star-input svg {
        width: 22px;
        height: 22px;
    }

    .review-rating {
        text-align: left;
        margin-top: 0.5rem;
    }

    .review-card .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .stars-container {
        font-size: 0.75rem;
    }

    .vote-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Animation for new reviews */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: slideIn 0.3s ease-out;
}

