/* ============================================
   DEKA GOOGLE REVIEWS - FRONTEND STYLES
   Premium UX Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Section */
.dgr-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Section Header */
.dgr-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.dgr-section-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.dgr-section-header-icon .dgr-google-logo {
    width: 28px;
    height: 28px;
}

.dgr-section-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1d1d1f !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.5px;
    line-height: 1.2 !important;
}

.dgr-section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grid */
.dgr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* Card */
.dgr-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.dgr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dgr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 16px 48px rgba(0,0,0,0.12);
}

.dgr-card:hover::before {
    opacity: 1;
}

/* Google Badge */
.dgr-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 100px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 20px;
    width: fit-content;
    border: 1px solid #e8eaed;
}

.dgr-card-badge .dgr-google-logo {
    width: 18px;
    height: 18px;
}

.dgr-card-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Rating Block */
.dgr-rating-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.dgr-rating-number {
    font-size: 44px;
    font-weight: 800;
    color: #1a73e8;
    line-height: 1;
    letter-spacing: -1px;
}

.dgr-rating-stars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dgr-stars-row {
    display: flex;
    gap: 2px;
    align-items: center;
}

.dgr-star {
    filter: drop-shadow(0 1px 1px rgba(251, 188, 4, 0.3));
    flex-shrink: 0;
}

.dgr-review-count {
    font-size: 13px;
    color: #80868b;
    font-weight: 500;
}

/* Location Info */
.dgr-location-info {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #f0f1f3;
}

.dgr-location-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dgr-pin-icon {
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 1px 2px rgba(234, 67, 53, 0.3));
}

.dgr-location-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 3px;
    line-height: 1.3;
}

.dgr-location-address {
    display: block;
    font-size: 13px;
    color: #80868b;
    line-height: 1.4;
    font-weight: 400;
}

.dgr-location-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
}

.dgr-location-phone-row span {
    font-size: 13px;
    color: #34A853;
    font-weight: 600;
}

/* Review Button */
.dgr-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #1a73e8;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.dgr-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.35) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

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

.dgr-review-btn svg {
    flex-shrink: 0;
    stroke: #fff;
}

/* Powered By */
.dgr-powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.dgr-powered-by:hover {
    opacity: 0.8;
}

.dgr-powered-by .dgr-google-logo {
    width: 16px;
    height: 16px;
}

.dgr-powered-by span {
    font-size: 12px;
    color: #80868b;
    font-weight: 500;
}

/* ========== ANIMATIONS ========== */
.dgr-card {
    animation: dgrFadeUp 0.6s ease backwards;
}

.dgr-card:nth-child(1) { animation-delay: 0.05s; }
.dgr-card:nth-child(2) { animation-delay: 0.15s; }
.dgr-card:nth-child(3) { animation-delay: 0.25s; }
.dgr-card:nth-child(4) { animation-delay: 0.35s; }
.dgr-card:nth-child(5) { animation-delay: 0.45s; }
.dgr-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes dgrFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .dgr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .dgr-section {
        padding: 30px 16px;
    }

    .dgr-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dgr-section-title {
        font-size: 24px !important;
    }

    .dgr-section-subtitle {
        font-size: 14px;
    }

    .dgr-card {
        padding: 22px;
        border-radius: 16px;
    }

    .dgr-rating-number {
        font-size: 36px;
    }

    .dgr-section-header {
        margin-bottom: 28px;
    }

    .dgr-section-header-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .dgr-section-title {
        font-size: 20px !important;
    }

    .dgr-card {
        padding: 18px;
    }

    .dgr-rating-number {
        font-size: 32px;
    }

    .dgr-review-btn {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 12px;
    }
}
