/* ==============================================
   Business Manager Shortcodes CSS
   استایل‌های مخصوص شورت کدها
   ============================================== */

/* ========== Base Styles ========== */
.business-header-sc,
.business-contact-sc,
.business-gallery-sc,
.business-actions-sc,
.business-social-sc,
.business-map-sc,
.business-description-sc,
.business-complete-sc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ========== Business Header Shortcode ========== */
.business-header-sc {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-header-sc:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 32px 64px rgba(0, 0, 0, 0.04);
}

.business-header-sc .hero-image-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    overflow: hidden;
}

.business-header-sc .hero-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-header-sc:hover .hero-image-section img {
    transform: scale(1.05);
}

.business-header-sc .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(255,255,255,0.97));
    padding: 32px;
    color: #1a1a1a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.business-header-sc .hero-no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 50%, #e8eaed 100%);
    padding: 48px 32px;
    text-align: center;
    position: relative;
}

.business-header-sc .business-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.business-header-sc .business-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.business-header-sc .location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 24px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.business-header-sc .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.business-header-sc .category-chip {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-header-sc .category-chip:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* ========== Business Title Shortcode ========== */
.business-title-sc {
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-weight: 700;
}

.business-title-sc.style-default {
    color: #1a1a1a;
}

.business-title-sc.style-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== Business Logo Shortcode ========== */
.business-logo-sc {
    display: inline-block;
    margin: 15px 0;
}

.business-logo-sc img {
    border-radius: 12px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-logo-sc:hover img {
    transform: translateY(-2px) scale(1.05);
}

/* ========== Business Contact Shortcode ========== */
.business-contact-sc {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.business-contact-sc .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-contact-sc .contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.business-contact-sc .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.business-contact-sc .contact-item:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #e1f5fe 100%);
    transform: translateX(8px);
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.1),
        0 8px 16px rgba(59, 130, 246, 0.06);
}

.business-contact-sc .contact-label {
    display: block;
    color: #495057;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.business-contact-sc .contact-value {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.business-contact-sc .contact-value:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* ========== Business Gallery Shortcode ========== */
.business-gallery-sc {
    margin-bottom: 32px;
}

.business-gallery-sc .section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-gallery-sc .gallery-grid {
    display: grid;
    gap: 16px;
}

.business-gallery-sc.columns-2 .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.business-gallery-sc.columns-3 .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.business-gallery-sc.columns-4 .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.business-gallery-sc .gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #f5f5f5;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-gallery-sc .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.06);
}

.business-gallery-sc .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-gallery-sc .gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== Business Actions Shortcode ========== */
.business-actions-sc {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.business-actions-sc .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-actions-sc .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-actions-sc.layout-horizontal .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
}

.business-actions-sc .action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.business-actions-sc .call-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.business-actions-sc .call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px rgba(16, 185, 129, 0.4),
        0 16px 32px rgba(16, 185, 129, 0.2);
    color: white;
}

.business-actions-sc .email-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.business-actions-sc .email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.4),
        0 16px 32px rgba(59, 130, 246, 0.2);
    color: white;
}

.business-actions-sc .website-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.business-actions-sc .website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px rgba(99, 102, 241, 0.4),
        0 16px 32px rgba(99, 102, 241, 0.2);
    color: white;
}

.business-actions-sc .share-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.business-actions-sc .share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px rgba(245, 158, 11, 0.4),
        0 16px 32px rgba(245, 158, 11, 0.2);
    color: white;
}

/* ========== Business Social Shortcode ========== */
.business-social-sc {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.business-social-sc .social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.business-social-sc.layout-horizontal .social-list {
    flex-direction: row;
    flex-wrap: wrap;
}

.business-social-sc .social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-social-sc .social-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    transform: translateX(8px);
}

/* ========== Business Map Shortcode ========== */
.business-map-sc {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.business-map-sc .map-placeholder,
.business-map-sc .business-map-container {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.business-map-sc .business-map-container {
    border: none;
    background: transparent;
    cursor: default;
}

.business-map-sc .business-map-container .leaflet-container {
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.business-map-sc .map-placeholder:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.1),
        0 8px 16px rgba(59, 130, 246, 0.06);
}

.business-map-sc .map-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.business-map-sc .map-btn {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
}

.business-map-sc .map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.3),
        0 8px 16px rgba(59, 130, 246, 0.2);
    color: white;
}

/* Map loading animation */
.business-map-sc .map-loading {
    animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Enhanced button styles for new map buttons */
.business-map-sc .map-btn.view-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.business-map-sc .map-btn.view-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.business-map-sc .map-btn.directions-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.business-map-sc .map-btn.directions-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* ========== Business Description Shortcode ========== */
.business-description-sc {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.04),
        0 16px 32px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
}

.business-description-sc .section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-description-sc .description-text {
    color: #495057;
    line-height: 1.7;
    font-size: 16px;
}

.business-description-sc .description-text p {
    margin-bottom: 16px;
}

/* ========== Business Categories Shortcode ========== */
.business-categories-sc .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.business-categories-sc.layout-vertical .categories {
    flex-direction: column;
    align-items: flex-start;
}

.business-categories-sc .category-chip {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.business-categories-sc .category-chip:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* ========== Business Complete Shortcode ========== */
.business-complete-sc {
    max-width: 1200px;
    margin: 0 auto;
}

.business-complete-sc .business-content-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    margin-top: 32px;
}

.business-complete-sc.layout-compact .business-content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
}

.business-complete-sc.layout-simple .business-content-layout {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ========== Icons ========== */
.icon::before {
    margin-left: 5px;
}

.icon-location::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "✉️"; }
.icon-website::before { content: "🌐"; }
.icon-description::before { content: "📄"; }
.icon-gallery::before { content: "🖼️"; }
.icon-contact::before { content: "👤"; }
.icon-map::before { content: "🗺️"; }
.icon-social::before { content: "📱"; }
.icon-actions::before { content: "⚡"; }
.icon-share::before { content: "📤"; }

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .business-complete-sc .business-content-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .business-complete-sc .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .business-header-sc .business-title {
        font-size: 2rem;
    }
    
    .business-header-sc .hero-overlay,
    .business-header-sc .hero-no-image {
        padding: 24px;
    }
    
    .business-contact-sc,
    .business-actions-sc,
    .business-social-sc,
    .business-map-sc,
    .business-description-sc {
        padding: 20px;
    }
    
    .business-gallery-sc .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 12px;
    }
    
    .business-actions-sc.layout-horizontal .action-buttons {
        flex-direction: column;
    }
    
    .business-social-sc.layout-horizontal .social-list {
        flex-direction: column;
    }
    
    .business-map-sc .map-buttons {
        flex-direction: column;
    }
    
    .business-complete-sc .sidebar {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .business-header-sc .business-title {
        font-size: 1.5rem;
    }
    
    .business-header-sc .hero-overlay,
    .business-header-sc .hero-no-image {
        padding: 16px;
    }
    
    .business-contact-sc,
    .business-actions-sc,
    .business-social-sc,
    .business-map-sc,
    .business-description-sc {
        padding: 16px;
    }
}
