/**
 * Frontend Styles for Google Business Footer
 *
 * @package Google_Business_Footer
 */

/* Custom Footer Container */
.gbf-custom-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.gbf-footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gbf-footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Business Name Section */
.gbf-business-name {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.gbf-business-name h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Footer Columns */
.gbf-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.gbf-footer-column {
    padding: 0 15px;
}

.gbf-footer-column h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #4a9eff;
    padding-bottom: 10px;
}

/* Address Section */
.gbf-address-section address {
    font-style: normal;
    line-height: 1.8;
    color: #cccccc;
}

.gbf-address-section address span {
    display: block;
    margin: 5px 0;
}

.gbf-address-street {
    font-weight: 500;
}

/* Hours Section */
.gbf-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gbf-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #cccccc;
}

.gbf-hours-item:last-child {
    border-bottom: none;
}

.gbf-day {
    font-weight: 500;
    min-width: 100px;
}

.gbf-time {
    text-align: right;
}

/* Reviews Section */
.gbf-reviews-content {
    color: #cccccc;
}

.gbf-review-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gbf-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbf-rating-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffc107;
}

.gbf-stars {
    font-size: 20px;
    color: #ffc107;
    letter-spacing: 2px;
}

.gbf-stars .star {
    display: inline-block;
}

.gbf-stars .star-full {
    color: #ffc107;
}

.gbf-stars .star-half {
    color: #ffc107;
    opacity: 0.6;
}

.gbf-stars .star-empty {
    color: #444;
}

.gbf-review-count {
    font-size: 16px;
    color: #999;
}

.gbf-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gbf-reviews-link:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

.gbf-reviews-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Footer Bottom */
.gbf-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.gbf-copyright {
    margin: 0;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .gbf-custom-footer {
        padding: 40px 15px 20px;
        margin-top: 60px;
    }
    
    .gbf-business-name h3 {
        font-size: 24px;
    }
    
    .gbf-footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gbf-footer-column {
        padding: 0;
    }
    
    .gbf-footer-column h4 {
        font-size: 16px;
    }
    
    .gbf-hours-item {
        flex-direction: row;
        align-items: center;
    }
    
    .gbf-day {
        min-width: 110px;
    }
}

@media screen and (max-width: 480px) {
    .gbf-business-name h3 {
        font-size: 20px;
    }
    
    .gbf-rating-number {
        font-size: 24px;
    }
    
    .gbf-stars {
        font-size: 18px;
    }
    
    .gbf-hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gbf-time {
        text-align: left;
    }
}

/* Animation */
@keyframes gbf-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gbf-custom-footer {
    animation: gbf-fade-in 0.6s ease-out;
}

/* Accessibility */
.gbf-custom-footer a:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .gbf-custom-footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
    }
    
    .gbf-reviews-link {
        color: #000;
    }
}
