/**
 * SEO Dashboard Widget Styles
 */

.pfc-seo-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pfc-seo-dashboard h2 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.pfc-seo-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.pfc-seo-stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pfc-seo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pfc-seo-overview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.pfc-seo-overview h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.pfc-seo-overview .tier-name {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.cache-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.cache-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cache-stat .stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.cache-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
}

.pfc-seo-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pfc-action-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pfc-action-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pfc-action-card h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pfc-action-icon {
    font-size: 20px;
}

.pfc-action-quota {
    margin: 15px 0;
}

.pfc-quota-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.pfc-quota-numbers {
    font-weight: 600;
}

.pfc-quota-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.pfc-quota-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.pfc-quota-fill.warn {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.pfc-quota-fill.danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.pfc-action-button {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pfc-action-button:hover {
    background: #5568d3;
}

.pfc-action-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pfc-action-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.pfc-action-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.pfc-action-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.pfc-seo-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1024px) {
    .pfc-seo-dashboard {
        padding: 1.25rem;
    }

    .pfc-seo-dashboard h2 {
        font-size: 24px;
    }

    .pfc-seo-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pfc-seo-card {
        padding: 1rem;
    }

    .cache-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cache-stat .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .pfc-seo-dashboard {
        padding: 1rem;
    }

    .pfc-seo-dashboard h2 {
        font-size: 22px;
        margin-bottom: 1rem;
    }

    .pfc-seo-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pfc-seo-card {
        padding: 0.875rem;
    }

    .cache-stats {
        grid-template-columns: 1fr;
    }

    .pfc-action-card h4 {
        font-size: 15px;
    }

    .cache-stat .stat-value {
        font-size: 18px;
    }

    .pfc-action-button {
        padding: 12px;
        font-size: 15px;
        min-height: 44px; /* Touch target */
    }
}

@media (max-width: 480px) {
    .pfc-seo-dashboard {
        padding: 0.75rem;
    }

    .pfc-seo-dashboard h2 {
        font-size: 20px;
    }

    .pfc-seo-overview h3 {
        font-size: 18px;
    }

    .cache-stat .stat-label {
        font-size: 12px;
    }

    .cache-stat .stat-value {
        font-size: 16px;
    }
}
