/**
 * LM365 Google Reviews - Frontend Styles
 * Dark theme for homepage widget, Light theme for reviews page
 */

:root {
    --gr-primary: #1565c0;
    --gr-primary-dark: #0d47a1;
    --gr-success: #16a34a;
    --gr-text: #1f2937;
    --gr-text-muted: #6b7280;
    --gr-bg: #ffffff;
    --gr-bg-alt: #f8fafc;
    --gr-border: #e5e7eb;
    --gr-star: #facc15;
    --gr-radius: 12px;
}

/* ================================
   Homepage Widget Styles (Dark Theme)
   ================================ */

.lm365-gr-section {
    background-color: #1a1a1a;
    padding: 80px 20px;
}

.lm365-gr-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lm365-gr-header {
    text-align: center;
    margin-bottom: 50px;
}

.lm365-gr-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.lm365-gr-header p {
    font-size: 1.1rem;
    color: #9ca3af;
    margin: 0;
}

/* Overall Rating Badge */
.lm365-gr-overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 16px 24px;
    background-color: #262626;
    border-radius: var(--gr-radius);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lm365-gr-overall-rating .rating-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.lm365-gr-overall-rating .rating-details {
    text-align: left;
}

.lm365-gr-overall-rating .rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.lm365-gr-overall-rating .rating-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--gr-star);
}

.lm365-gr-overall-rating .rating-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

.lm365-gr-overall-rating .rating-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.lm365-gr-overall-rating .rating-source svg {
    width: 14px;
    height: 14px;
}

/* Reviews Grid */
.lm365-gr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .lm365-gr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .lm365-gr-grid {
        grid-template-columns: 1fr;
    }
}

/* Review Card - Homepage (Dark) */
.lm365-gr-section .lm365-gr-card {
    background-color: #262626;
    border: 1px solid #333333;
    border-radius: var(--gr-radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm365-gr-section .lm365-gr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Stars - Homepage */
.lm365-gr-section .lm365-gr-card .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.lm365-gr-section .lm365-gr-card .review-stars svg {
    width: 18px;
    height: 18px;
    fill: #333;
}

.lm365-gr-section .lm365-gr-card .review-stars svg.filled {
    fill: var(--gr-star);
}

/* Review Text - Homepage */
.lm365-gr-section .lm365-gr-card .review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #d1d5db;
    font-style: italic;
    margin: 0 0 24px 0;
}

.lm365-gr-section .lm365-gr-card .review-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 12px 0;
}

/* Review Author - Homepage */
.lm365-gr-section .lm365-gr-card .review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm365-gr-section .lm365-gr-card .author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--gr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.lm365-gr-section .lm365-gr-card .author-info {
    flex: 1;
}

.lm365-gr-section .lm365-gr-card .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.lm365-gr-section .lm365-gr-card .author-location {
    font-size: 0.875rem;
    color: #9ca3af;
}

.lm365-gr-section .lm365-gr-card .google-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    flex-shrink: 0;
}

.lm365-gr-section .lm365-gr-card .google-icon:hover {
    opacity: 0.8;
}

/* Footer Buttons - Homepage (Dark) */
.lm365-gr-section .lm365-gr-footer {
    text-align: center;
    margin-top: 48px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.lm365-gr-section .lm365-gr-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.lm365-gr-section .lm365-gr-footer .btn svg {
    width: 18px;
    height: 18px;
}

.lm365-gr-section .lm365-gr-footer .btn-primary {
    background-color: #1565c0;
    color: #ffffff;
}

.lm365-gr-section .lm365-gr-footer .btn-primary:hover {
    background-color: #0d47a1;
}

.lm365-gr-section .lm365-gr-footer .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #444;
}

.lm365-gr-section .lm365-gr-footer .btn-secondary:hover {
    border-color: #666;
    background-color: rgba(255,255,255,0.05);
}


/* ================================
   All Reviews Page Styles (Light Theme)
   ================================ */

.lm365-gr-page {
    background-color: var(--gr-bg);
    padding: 40px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.lm365-gr-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.lm365-gr-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gr-text);
    margin: 0 0 8px 0;
}

.lm365-gr-page-header p {
    color: var(--gr-text-muted);
    margin: 0;
}

/* Stats Bar */
.lm365-gr-stats-bar {
    display: flex;
    gap: 40px;
    padding: 24px 30px;
    background: var(--gr-bg-alt);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.lm365-gr-stats-bar .stat-item {
    text-align: center;
}

.lm365-gr-stats-bar .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lm365-gr-stats-bar .stat-label {
    font-size: 0.8rem;
    color: var(--gr-text-muted);
    margin-top: 4px;
}

/* Review Card - Reviews Page (Light) */
.lm365-gr-page .lm365-gr-card {
    background-color: var(--gr-bg);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm365-gr-page .lm365-gr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Stars - Reviews Page */
.lm365-gr-page .lm365-gr-card .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.lm365-gr-page .lm365-gr-card .review-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gr-border);
}

.lm365-gr-page .lm365-gr-card .review-stars svg.filled {
    fill: var(--gr-star);
}

/* Review Text - Reviews Page */
.lm365-gr-page .lm365-gr-card .review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gr-text);
    font-style: italic;
    margin: 0 0 24px 0;
}

.lm365-gr-page .lm365-gr-card .review-date {
    font-size: 0.8rem;
    color: var(--gr-text-muted);
    margin: 0 0 12px 0;
}

/* Review Author - Reviews Page */
.lm365-gr-page .lm365-gr-card .review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lm365-gr-page .lm365-gr-card .author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--gr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.lm365-gr-page .lm365-gr-card .author-info {
    flex: 1;
}

.lm365-gr-page .lm365-gr-card .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gr-text);
    margin-bottom: 2px;
}

.lm365-gr-page .lm365-gr-card .author-location {
    font-size: 0.875rem;
    color: var(--gr-text-muted);
}

.lm365-gr-page .lm365-gr-card .google-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    flex-shrink: 0;
}

.lm365-gr-page .lm365-gr-card .google-icon:hover {
    opacity: 1;
}

/* Page Grid (single column for vertical layout) */
.lm365-gr-page-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .lm365-gr-page-grid {
        gap: 20px;
    }
    
    .lm365-gr-stats-bar {
        gap: 24px;
    }
}

/* Write Review CTA */
.lm365-gr-cta {
    background: linear-gradient(135deg, var(--gr-bg-alt) 0%, var(--gr-bg) 100%);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    padding: 40px;
    text-align: center;
    margin-top: 50px;
}

.lm365-gr-cta h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: var(--gr-text);
}

.lm365-gr-cta p {
    color: var(--gr-text-muted);
    margin: 0 0 24px 0;
    font-size: 1rem;
}

.lm365-gr-cta .google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gr-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.lm365-gr-cta .google-btn:hover {
    transform: translateY(-2px);
    background: var(--gr-primary-dark);
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
}

.lm365-gr-cta .google-btn svg {
    width: 20px;
    height: 20px;
}
