/**
 * Share Progress Dashboard Styles
 *
 * @since      1.7.0
 * @package    Blog_Tools
 */

.blog-tools-share-progress-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats Cards */
.share-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Container */
.share-progress-chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.share-progress-chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
}

.chart-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.chart-period-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.chart-period-select:hover,
.chart-period-select:focus {
    border-color: #667eea;
    outline: none;
}

#share-progress-chart {
    max-width: 100%;
    height: auto !important;
}

/* Top Posts */
.share-progress-top-posts {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-progress-top-posts h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
}

.top-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.top-post-item:hover {
    background: #e9ecef;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.post-info h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h4 a:hover {
    color: #667eea;
}

.post-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item svg {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .share-progress-stats {
        grid-template-columns: 1fr;
    }

    .top-post-item {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        height: 200px;
    }
}

