/* testimonials.css - Specific styles for Testimonials Page */

.testimonials-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: url('assets/showroom_bg.png') center center/cover no-repeat fixed;
    z-index: 1;
}

.testimonials-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(244, 246, 250, 0.95));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

/* Submission Form */
.testimonial-form-section {
    padding: 3rem 0;
    background: var(--bg-dark);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.form-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-silver);
    font-family: var(--font-body);
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-dim);
    background: #ffffff;
}

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

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

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #FFD700;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #ff7900, #ff5500);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--neon-blue-dim);
}

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

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Testimonials Grid */
.testimonials-display-section {
    padding: 4rem 0 6rem;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Testimonial Card */
.testi-card {
    background: #1b6ca8; /* Tata Steel Blue background color instead of white */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(27, 108, 168, 0.15);
    color: #ffffff;
}

.testi-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue); /* elegant orange brand highlight on hover */
    box-shadow: 0 15px 35px var(--neon-blue-dim);
}

.testi-card-entrance {
    animation: slideUpFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tata-blue-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.testi-info {
    flex-grow: 1;
}

.testi-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-family: var(--font-head);
}

.testi-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.testi-stars {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.testi-message {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.testi-message::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.testi-card p {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Source Badges and Image Avatars */
.testi-stars-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.testi-stars {
    margin-bottom: 0 !important;
}

.source-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.google-badge {
    background: rgba(234, 67, 53, 0.15);
    color: #ea4335;
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.google-badge i {
    color: #ea4335;
}

.custom-badge {
    background: rgba(255, 102, 0, 0.12);
    color: var(--neon-blue);
    border: 1px solid rgba(255, 102, 0, 0.3);
}

img.testi-avatar {
    object-fit: cover;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-dim);
}

/* Override overrides specifically inside blue testi-card */
.testi-card .google-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.testi-card .google-badge i {
    color: #ffffff !important;
}

.testi-card .custom-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.testi-card img.testi-avatar {
    border: 2px solid #ffffff !important;
    box-shadow: none !important;
}

/* ==================================================
   ANALYTICS DASHBOARD STYLING
   ================================================== */
.analytics-dashboard {
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    background: var(--glass-bg);
    border-radius: 16px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.analytics-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
}

.analytics-label {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analytics-large-val {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 20px var(--neon-blue-dim);
    line-height: 1;
    margin: 0.8rem 0 0.4rem;
}

.analytics-stars-row {
    color: #FFD700;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.6rem;
}

.analytics-subtext {
    font-size: 0.9rem;
    color: var(--text-silver);
}

/* Distribution Bars */
.dist-bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.dist-star {
    width: 32px;
    color: var(--text-silver);
    font-weight: 500;
    text-align: right;
}

.dist-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(9, 44, 116, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.dist-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tata-blue), var(--neon-blue));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

.dist-pct {
    width: 40px;
    color: var(--text-silver);
    font-weight: 600;
    text-align: left;
}

/* Monthly Trend list */
.monthly-trend-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.monthly-trend-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.trend-month {
    width: 80px;
    color: var(--text-silver);
    font-weight: 500;
}

.trend-bar-wrapper {
    flex-grow: 1;
    height: 8px;
    background: rgba(9, 44, 116, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.trend-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tata-blue), var(--neon-blue));
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.1, 1, 0.1, 1);
}

.trend-score {
    width: 45px;
    font-weight: 700;
    color: #00875a;
    text-align: left;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--neon-blue-dim) !important;
}

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

@media (max-width: 992px) {
    .analytics-dashboard {
        padding: 2rem;
    }
    .analytics-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .analytics-dashboard {
        padding: 1.2rem;
    }
    .analytics-large-val {
        font-size: 2.8rem;
    }
    .testi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .testi-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .analytics-card {
        padding: 1.2rem;
    }
}
