/**
 * Sentez Bilisim Google Customer Reviews Widget - Isolated Styles
 * All classes prefixed with 'sbgcr-' to prevent conflicts
 * 
 * @package    Google Customer Reviews
 * @author     Sentez Bilisim
 * @copyright  2024 Sentez Bilisim
 * @license    Commercial
 * @version    1.0.0
 * @link       https://www.sentezbilisim.com
 */

.sbgcr-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 100%;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sbgcr-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.sbgcr-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
  padding: 0;
}

/* Aggregate Rating */
.sbgcr-aggregate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.sbgcr-aggregate-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sbgcr-aggregate-rating {
  margin-left: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #202124;
}

.sbgcr-aggregate-count {
  font-size: 0.875rem;
  color: #5f6368;
}

/* Stars */
.sbgcr-star {
  font-size: 1.25rem;
  line-height: 1;
}

.sbgcr-star-full {
  color: #fbbc04;
}

.sbgcr-star-half {
  color: #fbbc04;
  opacity: 0.5;
}

.sbgcr-star-empty {
  color: #dadce0;
}

/* Grid Layout */
.sbgcr-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

@media (min-width: 769px) and (max-width: 1024px) {
  .sbgcr-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Review Card */
.sbgcr-review-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}

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

.sbgcr-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.sbgcr-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sbgcr-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sbgcr-review-author {
  font-weight: 600;
  color: #202124;
  font-size: 0.95rem;
}

.sbgcr-review-date {
  font-size: 0.8rem;
  color: #5f6368;
}

.sbgcr-review-stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 0.75rem;
}

.sbgcr-review-stars .sbgcr-star {
  font-size: 1rem;
}

.sbgcr-review-text {
  color: #3c4043;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.sbgcr-read-more {
  color: #1a73e8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.sbgcr-read-more:hover {
  text-decoration: underline;
}

.sbgcr-review-full {
  display: none;
}

/* Owner Response */
.sbgcr-owner-response {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-left: 3px solid #1a73e8;
  border-radius: 4px;
}

.sbgcr-owner-response-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 0.25rem;
}

.sbgcr-owner-response-text {
  font-size: 0.875rem;
  color: #3c4043;
  line-height: 1.4;
}

/* Slider */
.sbgcr-slider-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.sbgcr-slider {
  width: 100%;
  overflow: hidden;
}

.sbgcr-slider-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 1.25rem;
}

.sbgcr-slider-item {
  flex: 0 0 auto;
  width: calc(33.333% - 0.833rem);
}

@media (max-width: 768px) {
  .sbgcr-slider-item {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sbgcr-slider-item {
    width: calc(50% - 0.625rem);
  }
}

.sbgcr-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dadce0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: #5f6368;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbgcr-slider-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #202124;
}

.sbgcr-slider-prev {
  left: -12px;
}

.sbgcr-slider-next {
  right: -12px;
}

/* Footer */
.sbgcr-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.sbgcr-write-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1a73e8;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.sbgcr-write-btn:hover {
  background: #1557b0;
  color: #ffffff;
  text-decoration: none;
}

/* Google Logo */
.sbgcr-google-logo {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8eaed;
}

.sbgcr-google-logo svg {
  height: 24px;
  width: auto;
}

/* Error State */
.sbgcr-error {
  text-align: center;
  padding: 2rem;
  color: #5f6368;
  font-size: 0.95rem;
}

/* GCR Badge */
.sbgcr-gcr-badge {
  text-align: center;
  margin: 1.5rem 0;
}

#sbgcr-gcr-badge-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

