/* WordPress Showcase Page Styles */

:root {
    --wp-showcase-primary: #0073aa;
    --wp-showcase-secondary: #00a0d2;
    --wp-showcase-accent: #d54e21;
    --wp-showcase-success: #46b450;
    --wp-showcase-gray: #32373c;
    --wp-showcase-light-gray: #f8f9fa;
}

/* Showcase container */
.wp-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Showcase header */
.wp-showcase-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--wp-showcase-primary), var(--wp-showcase-secondary));
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.wp-showcase-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.wp-showcase-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    position: relative;
}

.wp-showcase-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
}

/* Statistics section */
.wp-showcase-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.wp-showcase-stat-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wp-showcase-stat-card:hover {
    border-color: var(--wp-showcase-primary);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.15);
    transform: translateY(-5px);
}

.wp-showcase-stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--wp-showcase-primary);
    margin-bottom: 15px;
}

.wp-showcase-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wp-showcase-gray);
    display: block;
    margin-bottom: 8px;
}

.wp-showcase-stat-card .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Featured sites grid */
.wp-showcase-featured {
    margin: 60px 0;
}

.wp-showcase-section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--wp-showcase-gray);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.wp-showcase-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--wp-showcase-primary), var(--wp-showcase-secondary));
    border-radius: 2px;
}

.wp-showcase-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Individual site cards */
.wp-showcase-site-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wp-showcase-site-card:hover {
    border-color: var(--wp-showcase-primary);
    box-shadow: 0 12px 30px rgba(0, 115, 170, 0.2);
    transform: translateY(-8px);
}

.wp-showcase-site-card .site-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wp-showcase-site-card .site-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wp-showcase-gray);
    margin: 0 0 8px 0;
}

.wp-showcase-site-card .site-url {
    color: var(--wp-showcase-primary);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.wp-showcase-site-card .site-url:hover {
    text-decoration: underline;
}

.wp-showcase-site-card .site-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

/* Site metrics */
.wp-showcase-site-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--wp-showcase-light-gray);
}

.wp-showcase-metric {
    padding: 15px;
    text-align: center;
    border-right: 1px solid #e1e5e9;
}

.wp-showcase-metric:last-child {
    border-right: none;
}

.wp-showcase-metric .metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wp-showcase-primary);
    display: block;
    margin-bottom: 4px;
}

.wp-showcase-metric .metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Site badges */
.wp-showcase-site-badges {
    padding: 15px 25px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-showcase-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-showcase-badge.status-active {
    background: var(--wp-showcase-success);
    color: white;
}

.wp-showcase-badge.feature-analytics {
    background: var(--wp-showcase-secondary);
    color: white;
}

.wp-showcase-badge.feature-forms {
    background: var(--wp-showcase-accent);
    color: white;
}

.wp-showcase-badge.feature-ssl {
    background: #28a745;
    color: white;
}

/* Technology stats section */
.wp-showcase-tech-stats {
    margin: 60px 0;
    background: var(--wp-showcase-light-gray);
    border-radius: 12px;
    padding: 40px;
}

.wp-showcase-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.wp-showcase-tech-category {
    background: white;
    border-radius: 8px;
    padding: 25px;
}

.wp-showcase-tech-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wp-showcase-gray);
    margin: 0 0 20px 0;
}

.wp-showcase-tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wp-showcase-tech-item:last-child {
    border-bottom: none;
}

.wp-showcase-tech-item .tech-name {
    font-weight: 500;
    color: var(--wp-showcase-gray);
}

.wp-showcase-tech-item .tech-percentage {
    font-size: 0.9rem;
    color: var(--wp-showcase-primary);
    font-weight: 600;
}

/* Progress bars */
.wp-showcase-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 5px 0;
    overflow: hidden;
}

.wp-showcase-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wp-showcase-primary), var(--wp-showcase-secondary));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Empty state */
.wp-showcase-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.wp-showcase-empty .empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.wp-showcase-empty .empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wp-showcase-gray);
    margin-bottom: 10px;
}

.wp-showcase-empty .empty-message {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .wp-showcase-header {
        padding: 40px 20px;
    }
    
    .wp-showcase-header h1 {
        font-size: 2rem;
    }
    
    .wp-showcase-header .subtitle {
        font-size: 1rem;
    }
    
    .wp-showcase-section-title {
        font-size: 2rem;
    }
    
    .wp-showcase-sites-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-showcase-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wp-showcase-site-metrics {
        grid-template-columns: 1fr;
    }
    
    .wp-showcase-metric {
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .wp-showcase-metric:last-child {
        border-bottom: none;
    }
    
    .wp-showcase-tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wp-showcase-container {
        padding: 10px;
    }
    
    .wp-showcase-stats {
        grid-template-columns: 1fr;
    }
    
    .wp-showcase-tech-stats {
        padding: 20px;
    }
}

/* Loading animations */
@keyframes wp-showcase-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-showcase-site-card {
    animation: wp-showcase-fade-in 0.6s ease-out;
}

.wp-showcase-site-card:nth-child(1) { animation-delay: 0.1s; }
.wp-showcase-site-card:nth-child(2) { animation-delay: 0.2s; }
.wp-showcase-site-card:nth-child(3) { animation-delay: 0.3s; }
.wp-showcase-site-card:nth-child(4) { animation-delay: 0.4s; }
.wp-showcase-site-card:nth-child(5) { animation-delay: 0.5s; }
.wp-showcase-site-card:nth-child(6) { animation-delay: 0.6s; }

/* Print styles */
@media print {
    .wp-showcase-header {
        background: none !important;
        color: black !important;
    }
    
    .wp-showcase-site-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}