/**
 * Business Page Consolidated Styles
 * All styles for the business page in one file
 */

/* ---------- 1. BASE STYLES AND FULLSCREEN SETUP ---------- */

/* Make the entire page fullwidth, including header and footer */
html, body.single-business {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.single-business #page {
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
}

/* Make the business page content take up the full screen width */
body.single-business .site-content {
    max-width: 100%;
    padding: 0;
    width: 100vw;
}

/* Remove any max-width constraints on header and footer */
body.single-business .site-header,
body.single-business .site-content,
body.single-business .site-footer {
    width: 100vw !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* ---------- 2. CONTAINER STYLING ---------- */

/* Standard container style */
body.single-business .container {
    max-width: 1200px;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 3. HEADER STYLING ---------- */

/* Header styling for business page */
body.single-business .site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    left: 0;
    right: 0;
}

body.single-business .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

/* Navigation styling */
body.single-business .main-navigation {
    display: flex;
    align-items: center;
}

body.single-business .main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-business .main-navigation li {
    margin-right: 20px;
}

body.single-business .main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* Add business button styling */
body.single-business .add-business-btn {
    background-color: #3f51b5;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

body.single-business .add-business-btn i {
    margin-right: 5px;
}

/* ---------- 4. BUSINESS CONTENT STYLING ---------- */

/* Business detail section styling */
body.single-business .business-detail {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Business header styling */
body.single-business .business-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 15px;
}

body.single-business .business-header-left {
    max-width: 70%;
}

body.single-business .business-header-right {
    max-width: 25%;
}

/* Improve content readability */
body.single-business .business-description {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Better layout for business information */
body.single-business .business-info-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Review section improvements */
body.single-business .reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* Improve comment form layout */
body.single-business .comment-respond {
    max-width: 800px;
    margin: 0 auto;
}

/* Make sure all business content areas respect the centered layout */
body.single-business .site-content > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure container elements in business areas have proper width */
body.single-business .business-detail .container,
body.single-business .reviews-section .container,
body.single-business .business-info-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- 5. FOOTER STYLING ---------- */

/* Footer adjustments - fullscreen */
body.single-business .site-footer {
    width: 100vw;
    max-width: 100%;
    left: 0;
    right: 0;
}

body.single-business .footer-content {
    width: 100%;
}

body.single-business .footer-bottom {
    width: 100%;
}

/* ---------- 6. MOBILE RESPONSIVE ---------- */

/* Mobile styles for fullscreen business page */
@media (max-width: 768px) {
    /* Adjust header for mobile */
    body.single-business .header-content {
        flex-direction: column;
    }
    
    body.single-business .site-branding {
        margin-top: 15px;
    }
    
    body.single-business .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    body.single-business .main-navigation li {
        margin: 5px 10px;
    }
    
    /* Business header on mobile */
    body.single-business .business-header {
        flex-direction: column;
    }
    
    body.single-business .business-header-right {
        width: 100%;
        margin-top: 20px;
    }
    
    /* Container padding adjustments */
    body.single-business .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Adjust content widths */
    body.single-business .business-header-left,
    body.single-business .business-description {
        max-width: 100%;
    }
}

/* ---------- 7. TABS, REVIEWS AND COMMENTS STYLING ---------- */

/* Tab navigation */
body.single-business .business-tabs {
    margin-top: 30px;
    margin-bottom: 30px;
}

body.single-business .tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 25px;
}

body.single-business .tab-link {
    padding: 12px 24px;
    margin-right: 10px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

body.single-business .tab-link:hover {
    color: #333;
}

body.single-business .tab-link.active {
    color: #3f51b5;
}

body.single-business .tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3f51b5;
}

/* Tab content */
body.single-business .tab-pane {
    display: none;
    opacity: 0;
}

body.single-business .tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reviews section */
body.single-business #reviews {
    margin-bottom: 50px;
}

body.single-business .review-list {
    margin-bottom: 30px;
}

body.single-business .review-item {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.single-business .review-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

body.single-business .reviewer-name {
    font-weight: 600;
    margin-right: 15px;
}

body.single-business .review-date {
    color: #999;
    font-size: 14px;
}

body.single-business .review-rating {
    display: flex;
    margin-bottom: 8px;
}

body.single-business .review-rating i {
    color: #3f51b5;
    margin-right: 3px;
}

body.single-business .review-text {
    line-height: 1.6;
}

/* Review form */
body.single-business .review-form-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.single-business .review-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

body.single-business .form-group {
    margin-bottom: 20px;
}

body.single-business .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

body.single-business .rating-select .stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

body.single-business .rating-select label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    margin-right: 5px;
}

body.single-business .rating-select label i {
    transition: color 0.2s ease;
}

body.single-business .rating-select input[type="radio"] {
    display: none;
}

body.single-business .rating-select label i.active,
body.single-business .rating-select label:hover i,
body.single-business .rating-select label:hover ~ label i {
    color: #3f51b5;
}

body.single-business .review-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

body.single-business .review-form .btn-primary {
    padding: 12px 25px;
    font-size: 16px;
}

/* Comments styling */
body.single-business #comments {
    max-width: 800px;
    margin: 40px auto;
}

body.single-business .comments-title {
    font-size: 24px;
    margin-bottom: 20px;
}

body.single-business .comment-list {
    list-style-type: none;
    padding: 0;
}

body.single-business .comment {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.single-business .comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

body.single-business .comment-author .avatar {
    margin-right: 15px;
    border-radius: 50%;
}

body.single-business .comment-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

body.single-business .comment-content {
    line-height: 1.6;
}

/* Highlight effect for review form */
body.single-business .highlight {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% { background-color: #f9f9f9; }
    50% { background-color: #fff3cd; }
    100% { background-color: #f9f9f9; }
}
