/* Business Directory Pro - Homepage Styles */

.bdp-homepage-widget {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bdp-widget-title {
    margin: 0;
    padding: 20px 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Tabs Layout */
.bdp-tabs-container {
    width: 100%;
}

.bdp-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
}

.bdp-tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.bdp-tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.bdp-tab-button.active {
    background: #fff;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.bdp-tabs-content {
    padding: 20px;
    min-height: 300px;
}

.bdp-tab-panel {
    display: none;
}

.bdp-tab-panel.active {
    display: block;
}

/* Widgets Layout */
.bdp-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.bdp-widget-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.bdp-widget-item-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* Grid Layout */
.bdp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.bdp-grid-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.bdp-grid-item-title {
    margin: 0;
    padding: 15px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.bdp-grid-content {
    padding: 15px;
}

/* Content Styles */
.bdp-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* News Content */
.bdp-news-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bdp-news-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.bdp-news-item h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.bdp-news-item h4 a {
    color: #333;
    text-decoration: none;
}

.bdp-news-item h4 a:hover {
    color: #007bff;
}

.bdp-news-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.bdp-news-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Business Items */
.bdp-business-item,
.bdp-featured-item,
.bdp-popular-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.bdp-business-thumbnail,
.bdp-featured-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.bdp-business-thumbnail img,
.bdp-featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bdp-business-info,
.bdp-featured-info {
    flex: 1;
}

.bdp-business-info h4,
.bdp-featured-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.bdp-business-info h4 a,
.bdp-featured-info h4 a {
    color: #333;
    text-decoration: none;
}

.bdp-business-info h4 a:hover,
.bdp-featured-info h4 a:hover {
    color: #007bff;
}

.bdp-business-meta,
.bdp-featured-meta {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.bdp-business-excerpt,
.bdp-featured-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Popular Items */
.bdp-popular-item {
    align-items: center;
}

.bdp-popular-rank {
    background: #007bff;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.bdp-popular-info {
    flex: 1;
}

.bdp-popular-stats {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Categories Grid */
.bdp-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bdp-category-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.bdp-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bdp-category-item h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.bdp-category-item h4 a {
    color: #333;
    text-decoration: none;
}

.bdp-category-item h4 a:hover {
    color: #007bff;
}

.bdp-category-count {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.bdp-category-description {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Tags Cloud */
.bdp-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
}

.bdp-tag-item {
    display: inline-block;
    margin: 2px;
}

.bdp-tag-item a {
    display: inline-block;
    padding: 6px 12px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.bdp-tag-item a:hover {
    background: #007bff;
    color: #fff;
}

/* Live Ticker */
.bdp-live-ticker {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.bdp-ticker-header {
    background: #dc3545;
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
}

.bdp-live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.bdp-ticker-content {
    max-height: 200px;
    overflow-y: auto;
}

.bdp-ticker-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bdp-ticker-item:last-child {
    border-bottom: none;
}

.bdp-ticker-time {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    min-width: 50px;
}

.bdp-ticker-text {
    font-size: 14px;
    color: #333;
}

.bdp-ticker-text a {
    color: #007bff;
    text-decoration: none;
}

.bdp-ticker-text a:hover {
    text-decoration: underline;
}

/* Statistics */
.bdp-statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
}

.bdp-stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.bdp-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}

.bdp-stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bdp-tabs-nav {
        flex-direction: column;
    }
    
    .bdp-tab-button {
        border-bottom: 1px solid #e9ecef;
        border-radius: 0;
    }
    
    .bdp-widgets-grid,
    .bdp-grid-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .bdp-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .bdp-business-item,
    .bdp-featured-item {
        flex-direction: column;
        text-align: center;
    }
    
    .bdp-business-thumbnail,
    .bdp-featured-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .bdp-statistics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bdp-widget-title {
        font-size: 20px;
        padding: 15px 15px 0;
    }
    
    .bdp-tabs-content,
    .bdp-widget-item,
    .bdp-grid-content {
        padding: 15px;
    }
    
    .bdp-statistics {
        grid-template-columns: 1fr;
    }
    
    .bdp-stat-number {
        font-size: 24px;
    }
}
