/* Frontend styles for 101-WP blocks */

/* Current Progress Block - inherits theme styling for sidebar use */
.wp-101-progress-block {
    /* Minimal styling to inherit from theme, especially GeneratePress */
}

.wp-101-progress-title {
    margin: 0 0 1.5em 0;
    text-align: center;
}

.wp-101-chart {
    width: 100%;
    height: 400px;
    margin: 20px 0;
}

.wp-101-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.wp-101-stat {
    text-align: center;
}

.wp-101-stat-label {
    display: block;
    font-size: 0.875em;
    opacity: 0.7;
    margin-bottom: 5px;
}

.wp-101-stat-value {
    display: block;
    font-size: 1.75em;
    font-weight: bold;
}

.wp-101-no-active-list,
.wp-101-no-items {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

.wp-101-view-list-button-wrapper {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.wp-101-view-list-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.wp-101-view-list-button:hover {
    background-color: #2563eb;
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .wp-101-chart {
        height: 300px;
    }

    .wp-101-progress-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wp-101-stat-value {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .wp-101-progress-block {
        padding: 20px;
    }

    .wp-101-chart {
        height: 250px;
    }
}

/* Timeframe Report Block */
.wp-101-timeframe-report {
    /* max-width: 800px; */
    margin: 0 auto;
}

/* Remove default group block inner container padding */
.wp-101-timeframe-report .wp-block-group__inner-container {
    padding: 0 !important;
}

.wp-101-report-section {
    margin-bottom: 2.5em;
}

.wp-101-report-section h3 {
    font-size: 1.25em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

.wp-101-report-section p {
    margin-bottom: 0.75em;
    line-height: 1.6;
}

.wp-101-report-overview,
.wp-101-report-timeframe {

}

.wp-101-report-item {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.wp-101-report-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wp-101-report-item p {
    margin-bottom: 0.5em;
}

.wp-101-report-item p:last-child {
    margin-bottom: 0;
}

.wp-101-report-date {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.wp-101-report-completed .wp-101-report-item {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.wp-101-report-in-progress .wp-101-report-item {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.wp-101-report-failed .wp-101-report-item {
    background: #fef2f2;
    border-color: #fecaca;
    opacity: 0.7;
}

.wp-101-no-report {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

/* Responsive adjustments for report */
@media screen and (max-width: 768px) {
    .wp-101-timeframe-report {
        max-width: 100%;
    }

    .wp-101-report-section h3 {
        font-size: 1.3em;
    }

    .wp-101-report-overview,
    .wp-101-report-timeframe {
        padding: 1em;
    }

    .wp-101-report-item {
        padding: 0.75em;
    }
}
