/**
 * Portfolio Styles - WordPry Edition
 * Modern, Professional & Brand-Coherent Design
 *
 * @package    SEO_AI_Portfolio_Connector
 * @subpackage assets/css
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Color Palette - Adaptable to your brand */
    --wpry-primary: #1a1a2e;
    --wpry-primary-dark: #0f0f1a;
    --wpry-secondary: #4f46e5;
    --wpry-accent: #06b6d4;
    --wpry-text: #1f2937;
    --wpry-text-light: #6b7280;
    --wpry-text-muted: #9ca3af;
    --wpry-bg: #ffffff;
    --wpry-bg-alt: #f9fafb;
    --wpry-border: #e5e7eb;
    --wpry-border-light: #f3f4f6;
    
    /* Success/Warning/Error States */
    --wpry-success: #10b981;
    --wpry-warning: #f59e0b;
    --wpry-error: #ef4444;
    
    /* Verification Badges */
    --wpry-verified: #10b981;
    --wpry-partial: #f59e0b;
    --wpry-pending: #6b7280;
    
    /* Spacing System */
    --wpry-space-xs: 0.5rem;
    --wpry-space-sm: 1rem;
    --wpry-space-md: 1.5rem;
    --wpry-space-lg: 2rem;
    --wpry-space-xl: 3rem;
    --wpry-space-2xl: 4rem;
    --wpry-space-3xl: 6rem;
    
    /* Typography */
    --wpry-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --wpry-font-mono: 'SF Mono', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
    
    /* Font Sizes */
    --wpry-text-xs: 0.75rem;
    --wpry-text-sm: 0.875rem;
    --wpry-text-base: 1rem;
    --wpry-text-lg: 1.125rem;
    --wpry-text-xl: 1.25rem;
    --wpry-text-2xl: 1.5rem;
    --wpry-text-3xl: 1.875rem;
    --wpry-text-4xl: 2.25rem;
    --wpry-text-5xl: 3rem;
    
    /* Line Heights */
    --wpry-leading-tight: 1.25;
    --wpry-leading-snug: 1.375;
    --wpry-leading-normal: 1.5;
    --wpry-leading-relaxed: 1.625;
    --wpry-leading-loose: 2;
    
    /* Border Radius */
    --wpry-radius-sm: 0.375rem;
    --wpry-radius-md: 0.5rem;
    --wpry-radius-lg: 0.75rem;
    --wpry-radius-xl: 1rem;
    --wpry-radius-full: 9999px;
    
    /* Shadows */
    --wpry-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wpry-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --wpry-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --wpry-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --wpry-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --wpry-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --wpry-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --wpry-container-width: 1280px;
    --wpry-container-padding: var(--wpry-space-lg);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.wpry-portfolio-wrapper {
    font-family: var(--wpry-font-sans);
    color: var(--wpry-text);
    line-height: var(--wpry-leading-normal);
    background: var(--wpry-bg);
}

.wpry-container {
    max-width: var(--wpry-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wpry-container-padding);
    padding-right: var(--wpry-container-padding);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.wpry-portfolio-hero {
    background: linear-gradient(135deg, var(--wpry-primary) 0%, var(--wpry-primary-dark) 100%);
    color: white;
    padding: var(--wpry-space-3xl) 0 var(--wpry-space-2xl);
    position: relative;
    overflow: hidden;
}

.wpry-portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wpry-portfolio-hero .wpry-container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.wpry-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    font-size: var(--wpry-text-sm);
    margin-bottom: var(--wpry-space-lg);
    opacity: 0.8;
}

.wpry-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity var(--wpry-transition-fast);
}

.wpry-breadcrumb a:hover {
    opacity: 0.7;
}

.wpry-breadcrumb-separator {
    opacity: 0.5;
}

.wpry-breadcrumb-current {
    opacity: 1;
    font-weight: 500;
}

/* Hero Content */
.wpry-portfolio-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wpry-space-2xl);
}

@media (min-width: 768px) {
    .wpry-portfolio-hero-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.wpry-portfolio-title {
    font-size: var(--wpry-text-5xl);
    font-weight: 700;
    line-height: var(--wpry-leading-tight);
    margin: 0 0 var(--wpry-space-md);
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .wpry-portfolio-title {
        font-size: var(--wpry-text-3xl);
    }
}

.wpry-portfolio-excerpt {
    font-size: var(--wpry-text-lg);
    line-height: var(--wpry-leading-relaxed);
    opacity: 0.9;
    margin-bottom: var(--wpry-space-lg);
    max-width: 65ch;
}

/* Quick Meta */
.wpry-portfolio-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpry-space-md);
    margin-bottom: var(--wpry-space-xl);
}

.wpry-meta-item {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    font-size: var(--wpry-text-sm);
    opacity: 0.9;
}

.wpry-meta-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* CTAs */
.wpry-portfolio-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpry-space-md);
}

.wpry-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    padding: var(--wpry-space-sm) var(--wpry-space-lg);
    font-size: var(--wpry-text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--wpry-radius-lg);
    transition: all var(--wpry-transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.wpry-btn-primary {
    background: var(--wpry-secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
}

.wpry-btn-primary:hover {
    background: color-mix(in srgb, var(--wpry-secondary) 90%, black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
}

.wpry-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.wpry-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Client Card */
.wpry-client-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--wpry-radius-xl);
    padding: var(--wpry-space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--wpry-shadow-lg);
}

.wpry-client-logo-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--wpry-radius-lg);
    padding: var(--wpry-space-sm);
    margin-bottom: var(--wpry-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wpry-shadow-md);
}

.wpry-client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wpry-client-label {
    display: block;
    font-size: var(--wpry-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: var(--wpry-space-xs);
}

.wpry-client-name {
    font-size: var(--wpry-text-xl);
    font-weight: 600;
    margin: 0 0 var(--wpry-space-md);
}

/* Verification Badge */
.wpry-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    padding: var(--wpry-space-xs) var(--wpry-space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--wpry-radius-full);
    font-size: var(--wpry-text-xs);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wpry-verification-icon {
    width: 14px;
    height: 14px;
}

.wpry-verification-verified {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.wpry-verification-partial {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.wpry-verification-pending {
    background: rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
}

.wpry-verification-score {
    font-weight: 600;
}

/* ==========================================================================
   Featured Image
   ========================================================================== */

.wpry-portfolio-featured {
    padding: var(--wpry-space-2xl) 0;
    background: var(--wpry-bg-alt);
}

.wpry-featured-image-wrapper {
    border-radius: var(--wpry-radius-xl);
    overflow: hidden;
    box-shadow: var(--wpry-shadow-xl);
    aspect-ratio: 16 / 9;
}

.wpry-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.wpry-portfolio-content {
    padding: var(--wpry-space-3xl) 0;
}

.wpry-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wpry-space-2xl);
}

@media (min-width: 1024px) {
    .wpry-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Content Main */
.wpry-content-inner {
    font-size: var(--wpry-text-lg);
    line-height: var(--wpry-leading-relaxed);
    color: var(--wpry-text);
}

.wpry-content-inner h2 {
    font-size: var(--wpry-text-3xl);
    font-weight: 700;
    margin: var(--wpry-space-2xl) 0 var(--wpry-space-md);
    line-height: var(--wpry-leading-tight);
    color: var(--wpry-primary);
}

.wpry-content-inner h3 {
    font-size: var(--wpry-text-2xl);
    font-weight: 600;
    margin: var(--wpry-space-xl) 0 var(--wpry-space-sm);
    line-height: var(--wpry-leading-snug);
    color: var(--wpry-primary);
}

.wpry-content-inner h4 {
    font-size: var(--wpry-text-xl);
    font-weight: 600;
    margin: var(--wpry-space-lg) 0 var(--wpry-space-sm);
    color: var(--wpry-text);
}

.wpry-content-inner p {
    margin-bottom: var(--wpry-space-md);
}

.wpry-content-inner ul,
.wpry-content-inner ol {
    margin: var(--wpry-space-md) 0;
    padding-left: var(--wpry-space-lg);
}

.wpry-content-inner li {
    margin-bottom: var(--wpry-space-xs);
}

.wpry-content-inner a {
    color: var(--wpry-secondary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color var(--wpry-transition-fast);
}

.wpry-content-inner a:hover {
    color: var(--wpry-accent);
}

.wpry-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wpry-radius-lg);
    margin: var(--wpry-space-lg) 0;
    box-shadow: var(--wpry-shadow-md);
}

.wpry-content-inner blockquote {
    border-left: 4px solid var(--wpry-secondary);
    padding-left: var(--wpry-space-md);
    margin: var(--wpry-space-lg) 0;
    font-style: italic;
    color: var(--wpry-text-light);
}

.wpry-content-inner code {
    font-family: var(--wpry-font-mono);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--wpry-bg-alt);
    border-radius: var(--wpry-radius-sm);
    border: 1px solid var(--wpry-border);
}

.wpry-content-inner pre {
    background: var(--wpry-primary);
    color: white;
    padding: var(--wpry-space-md);
    border-radius: var(--wpry-radius-md);
    overflow-x: auto;
    margin: var(--wpry-space-lg) 0;
}

.wpry-content-inner pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Testimonial */
.wpry-testimonial {
    margin-top: var(--wpry-space-2xl);
    padding-top: var(--wpry-space-2xl);
    border-top: 2px solid var(--wpry-border-light);
}

.wpry-testimonial-quote {
    position: relative;
    background: var(--wpry-bg-alt);
    border-radius: var(--wpry-radius-xl);
    padding: var(--wpry-space-2xl);
    box-shadow: var(--wpry-shadow-md);
}

.wpry-quote-icon {
    position: absolute;
    top: var(--wpry-space-lg);
    right: var(--wpry-space-lg);
    width: 48px;
    height: 36px;
    opacity: 0.1;
}

.wpry-testimonial-text {
    font-size: var(--wpry-text-xl);
    line-height: var(--wpry-leading-relaxed);
    font-style: italic;
    color: var(--wpry-text);
    margin: 0 0 var(--wpry-space-md);
    position: relative;
    z-index: 1;
}

.wpry-testimonial-text p {
    margin-bottom: var(--wpry-space-sm);
}

.wpry-testimonial-text p:last-child {
    margin-bottom: 0;
}

.wpry-testimonial-author {
    display: block;
    font-size: var(--wpry-text-base);
    font-style: normal;
    font-weight: 600;
    color: var(--wpry-secondary);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.wpry-content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--wpry-space-lg);
}

@media (min-width: 1024px) {
    .wpry-content-sidebar {
        position: sticky;
        top: var(--wpry-space-lg);
        align-self: start;
    }
}

.wpry-sidebar-card {
    background: var(--wpry-bg);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-lg);
    padding: var(--wpry-space-lg);
    transition: box-shadow var(--wpry-transition-base);
}

.wpry-sidebar-card:hover {
    box-shadow: var(--wpry-shadow-md);
}

.wpry-sidebar-title {
    font-size: var(--wpry-text-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wpry-text-muted);
    margin: 0 0 var(--wpry-space-md);
    padding-bottom: var(--wpry-space-sm);
    border-bottom: 2px solid var(--wpry-border-light);
}

/* Project Details */
.wpry-details-list {
    display: flex;
    flex-direction: column;
    gap: var(--wpry-space-sm);
}

.wpry-detail-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--wpry-space-sm);
    align-items: baseline;
}

.wpry-detail-item dt {
    font-size: var(--wpry-text-sm);
    font-weight: 600;
    color: var(--wpry-text-muted);
}

.wpry-detail-item dd {
    font-size: var(--wpry-text-base);
    color: var(--wpry-text);
    margin: 0;
}

/* Tag Cloud */
.wpry-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpry-space-xs);
}

.wpry-tag {
    display: inline-block;
    padding: var(--wpry-space-xs) var(--wpry-space-sm);
    background: var(--wpry-bg-alt);
    color: var(--wpry-text);
    text-decoration: none;
    font-size: var(--wpry-text-sm);
    font-weight: 500;
    border-radius: var(--wpry-radius-md);
    border: 1px solid var(--wpry-border);
    transition: all var(--wpry-transition-fast);
}

.wpry-tag:hover {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
    transform: translateY(-2px);
}

/* Share Buttons */
.wpry-share-buttons {
    display: flex;
    gap: var(--wpry-space-xs);
}

.wpry-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wpry-radius-md);
    transition: all var(--wpry-transition-base);
    text-decoration: none;
    border: 1px solid var(--wpry-border);
}

.wpry-share-twitter {
    color: #1DA1F2;
}

.wpry-share-linkedin {
    color: #0A66C2;
}

.wpry-share-facebook {
    color: #1877F2;
}

.wpry-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wpry-shadow-md);
}

.wpry-share-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.wpry-share-linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: white;
}

.wpry-share-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wpry-portfolio-navigation {
    background: var(--wpry-bg-alt);
    padding: var(--wpry-space-2xl) 0;
    margin-top: var(--wpry-space-3xl);
}

.wpry-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wpry-space-md);
}

@media (min-width: 768px) {
    .wpry-nav-grid {
        grid-template-columns: 1fr auto 1fr;
    }
}

.wpry-nav-item {
    position: relative;
}

.wpry-nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--wpry-space-xs);
    padding: var(--wpry-space-md);
    background: var(--wpry-bg);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-lg);
    text-decoration: none;
    color: var(--wpry-text);
    transition: all var(--wpry-transition-base);
    min-height: 100%;
}

.wpry-nav-link:hover {
    border-color: var(--wpry-secondary);
    box-shadow: var(--wpry-shadow-md);
    transform: translateY(-2px);
}

.wpry-nav-label {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    font-size: var(--wpry-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wpry-text-muted);
}

.wpry-nav-prev .wpry-nav-label {
    justify-content: flex-start;
}

.wpry-nav-next .wpry-nav-label {
    justify-content: flex-end;
}

.wpry-nav-thumb {
    width: 100%;
    height: 120px;
    border-radius: var(--wpry-radius-md);
    overflow: hidden;
    margin: var(--wpry-space-xs) 0;
}

.wpry-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--wpry-transition-slow);
}

.wpry-nav-link:hover .wpry-nav-thumb img {
    transform: scale(1.05);
}

.wpry-nav-title {
    font-size: var(--wpry-text-base);
    font-weight: 600;
    line-height: var(--wpry-leading-snug);
    color: var(--wpry-text);
}

.wpry-nav-grid-link {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--wpry-space-lg);
}

.wpry-nav-grid-link svg {
    margin-bottom: var(--wpry-space-xs);
}

.wpry-nav-all .wpry-nav-link:hover {
    background: var(--wpry-secondary);
    border-color: var(--wpry-secondary);
    color: white;
}

/**
 * Archive Portfolio Styles - WordPry Edition
 * Complementary styles for the archive template
 *
 * @package    SEO_AI_Portfolio_Connector
 * @subpackage assets/css
 */

/* ==========================================================================
   Archive Hero Section
   ========================================================================== */

.wpry-archive-hero {
    background: linear-gradient(135deg, var(--wpry-primary) 0%, var(--wpry-primary-dark) 100%);
    color: white;
    padding: var(--wpry-space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.wpry-archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.wpry-archive-hero .wpry-container {
    position: relative;
    z-index: 1;
}

.wpry-archive-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--wpry-space-xl);
}

@media (min-width: 768px) {
    .wpry-archive-hero-content {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.wpry-archive-title {
    font-size: var(--wpry-text-4xl);
    font-weight: 700;
    line-height: var(--wpry-leading-tight);
    margin: 0 0 var(--wpry-space-md);
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .wpry-archive-title {
        font-size: var(--wpry-text-3xl);
    }
}

.wpry-highlight {
    color: var(--wpry-accent);
    position: relative;
    display: inline-block;
}

.wpry-archive-description {
    font-size: var(--wpry-text-lg);
    line-height: var(--wpry-leading-relaxed);
    opacity: 0.9;
    max-width: 60ch;
}

/* Stats Cards */
.wpry-archive-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--wpry-space-md);
}

.wpry-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--wpry-radius-lg);
    padding: var(--wpry-space-md);
    text-align: center;
    transition: all var(--wpry-transition-base);
}

.wpry-stat-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.wpry-stat-number {
    font-size: var(--wpry-text-3xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--wpry-space-xs);
    color: white;
}

.wpry-stat-label {
    font-size: var(--wpry-text-sm);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Filters Section
   ========================================================================== */

.wpry-archive-main {
    padding: var(--wpry-space-2xl) 0 var(--wpry-space-3xl);
}

.wpry-filters-wrapper {
    background: var(--wpry-bg);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-xl);
    padding: var(--wpry-space-lg);
    margin-bottom: var(--wpry-space-2xl);
    box-shadow: var(--wpry-shadow-sm);
}

/* Filters Header */
.wpry-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--wpry-space-lg);
    padding-bottom: var(--wpry-space-md);
    border-bottom: 2px solid var(--wpry-border-light);
}

.wpry-filters-title {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    font-size: var(--wpry-text-lg);
    font-weight: 600;
    color: var(--wpry-text);
}

.wpry-filter-icon {
    width: 20px;
    height: 20px;
    color: var(--wpry-secondary);
}

/* View Switcher */
.wpry-view-switcher {
    display: flex;
    gap: var(--wpry-space-xs);
    background: var(--wpry-bg-alt);
    padding: 4px;
    border-radius: var(--wpry-radius-md);
}

.wpry-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--wpry-radius-sm);
    cursor: pointer;
    transition: all var(--wpry-transition-fast);
    color: var(--wpry-text-muted);
}

.wpry-view-btn:hover {
    background: var(--wpry-bg);
    color: var(--wpry-text);
}

.wpry-view-btn.active {
    background: var(--wpry-bg);
    color: var(--wpry-secondary);
    box-shadow: var(--wpry-shadow-sm);
}

/* Filters Content */
.wpry-filters-content {
    display: flex;
    flex-direction: column;
    gap: var(--wpry-space-lg);
}

.wpry-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--wpry-space-sm);
}

.wpry-filter-label {
    font-size: var(--wpry-text-sm);
    font-weight: 600;
    color: var(--wpry-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wpry-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpry-space-xs);
}

.wpry-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    padding: var(--wpry-space-xs) var(--wpry-space-md);
    background: var(--wpry-bg-alt);
    color: var(--wpry-text);
    text-decoration: none;
    font-size: var(--wpry-text-sm);
    font-weight: 500;
    border-radius: var(--wpry-radius-full);
    border: 1px solid var(--wpry-border);
    transition: all var(--wpry-transition-fast);
    white-space: nowrap;
}

.wpry-filter-pill:hover {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
    transform: translateY(-1px);
    box-shadow: var(--wpry-shadow-sm);
}

.wpry-filter-pill.active {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
}

.wpry-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--wpry-radius-full);
    font-size: var(--wpry-text-xs);
    font-weight: 600;
}

.wpry-filter-pill.active .wpry-pill-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Filters Footer */
.wpry-filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wpry-space-md);
    margin-top: var(--wpry-space-lg);
    padding-top: var(--wpry-space-md);
    border-top: 1px solid var(--wpry-border-light);
}

.wpry-results-info {
    font-size: var(--wpry-text-sm);
    color: var(--wpry-text-light);
}

.wpry-results-info strong {
    color: var(--wpry-text);
    font-weight: 600;
}

/* Sort Wrapper */
.wpry-sort-wrapper {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
}

.wpry-sort-label {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    font-size: var(--wpry-text-sm);
    font-weight: 500;
    color: var(--wpry-text-muted);
}

.wpry-sort-select {
    padding: var(--wpry-space-xs) var(--wpry-space-md);
    background: var(--wpry-bg-alt);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-md);
    font-size: var(--wpry-text-sm);
    color: var(--wpry-text);
    cursor: pointer;
    transition: all var(--wpry-transition-fast);
}

.wpry-sort-select:hover {
    border-color: var(--wpry-secondary);
}

.wpry-sort-select:focus {
    outline: none;
    border-color: var(--wpry-secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   Portfolio Grid/List
   ========================================================================== */

.wpry-portfolio-archive {
    display: grid;
    gap: var(--wpry-space-xl);
}

/* Grid View (Default) */
.wpry-portfolio-archive.wpry-view-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* List View */
.wpry-portfolio-archive.wpry-view-list {
    grid-template-columns: 1fr;
}

.wpry-portfolio-archive.wpry-view-list .wpry-portfolio-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.wpry-portfolio-archive.wpry-view-list .wpry-card-image-wrapper {
    height: 100%;
    aspect-ratio: auto;
}

.wpry-portfolio-archive.wpry-view-list .wpry-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .wpry-portfolio-archive.wpry-view-list .wpry-portfolio-card {
        grid-template-columns: 1fr;
    }
    
    .wpry-portfolio-archive.wpry-view-list .wpry-card-image-wrapper {
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================================
   Portfolio Card
   ========================================================================== */

.wpry-portfolio-card {
    background: var(--wpry-bg);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-xl);
    overflow: hidden;
    transition: all var(--wpry-transition-base);
    box-shadow: var(--wpry-shadow-sm);
    display: flex;
    flex-direction: column;
}

.wpry-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wpry-shadow-xl);
    border-color: var(--wpry-secondary);
}

/* Card Image Wrapper */
.wpry-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--wpry-bg-alt);
}

.wpry-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.wpry-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--wpry-transition-slow);
}

.wpry-portfolio-card:hover .wpry-card-image {
    transform: scale(1.05);
}

/* Card Placeholder */
.wpry-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.3);
}

/* Card Overlay */
.wpry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--wpry-space-sm);
    padding: var(--wpry-space-md);
    opacity: 0;
    transition: opacity var(--wpry-transition-base);
}

.wpry-portfolio-card:hover .wpry-card-overlay {
    opacity: 1;
}

.wpry-card-overlay-btn,
.wpry-card-overlay-link {
    display: inline-flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    padding: var(--wpry-space-sm) var(--wpry-space-md);
    background: white;
    color: var(--wpry-text);
    text-decoration: none;
    font-size: var(--wpry-text-sm);
    font-weight: 600;
    border-radius: var(--wpry-radius-md);
    transition: all var(--wpry-transition-fast);
}

.wpry-card-overlay-btn:hover {
    background: var(--wpry-secondary);
    color: white;
    transform: translateY(-2px);
}

.wpry-card-overlay-link {
    padding: var(--wpry-space-sm);
}

.wpry-card-overlay-link:hover {
    background: var(--wpry-accent);
    color: white;
    transform: translateY(-2px);
}

/* Card Badge */
.wpry-card-badge {
    position: absolute;
    top: var(--wpry-space-md);
    right: var(--wpry-space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--wpry-radius-full);
    box-shadow: var(--wpry-shadow-md);
    z-index: 2;
}

.wpry-card-badge.wpry-badge-verified {
    color: var(--wpry-verified);
}

.wpry-card-badge.wpry-badge-partial {
    color: var(--wpry-partial);
}

.wpry-card-badge.wpry-badge-pending {
    color: var(--wpry-pending);
}

/* Card Content */
.wpry-card-content {
    padding: var(--wpry-space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Card Header */
.wpry-card-header {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-sm);
    margin-bottom: var(--wpry-space-sm);
}

.wpry-card-client-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--wpry-radius-md);
    overflow: hidden;
    background: var(--wpry-bg-alt);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpry-card-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wpry-card-meta-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--wpry-text-xs);
    color: var(--wpry-text-muted);
}

.wpry-card-client {
    font-weight: 600;
    color: var(--wpry-text);
}

.wpry-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Title */
.wpry-card-title {
    margin: 0 0 var(--wpry-space-sm);
    font-size: var(--wpry-text-xl);
    font-weight: 700;
    line-height: var(--wpry-leading-snug);
}

.wpry-card-title a {
    color: var(--wpry-text);
    text-decoration: none;
    transition: color var(--wpry-transition-fast);
}

.wpry-card-title a:hover {
    color: var(--wpry-secondary);
}

/* Card Excerpt */
.wpry-card-excerpt {
    margin: 0 0 var(--wpry-space-md);
    color: var(--wpry-text-light);
    font-size: var(--wpry-text-base);
    line-height: var(--wpry-leading-relaxed);
    flex-grow: 1;
}

/* Card Tags */
.wpry-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpry-space-xs);
    margin-bottom: var(--wpry-space-md);
}

.wpry-card-tag {
    display: inline-block;
    padding: 4px var(--wpry-space-sm);
    background: var(--wpry-bg-alt);
    color: var(--wpry-text-muted);
    text-decoration: none;
    font-size: var(--wpry-text-xs);
    font-weight: 500;
    border-radius: var(--wpry-radius-sm);
    border: 1px solid var(--wpry-border);
    transition: all var(--wpry-transition-fast);
}

.wpry-card-tag:hover {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
}

/* Card Footer */
.wpry-card-footer {
    padding-top: var(--wpry-space-md);
    border-top: 1px solid var(--wpry-border-light);
    margin-top: auto;
}

.wpry-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    color: var(--wpry-secondary);
    text-decoration: none;
    font-size: var(--wpry-text-sm);
    font-weight: 600;
    transition: all var(--wpry-transition-fast);
}

.wpry-card-link:hover {
    color: var(--wpry-accent);
    gap: var(--wpry-space-sm);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.wpry-pagination {
    margin-top: var(--wpry-space-2xl);
    display: flex;
    justify-content: center;
}

.wpry-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: var(--wpry-space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpry-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.wpry-pagination .page-numbers a,
.wpry-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wpry-space-xs);
    min-width: 44px;
    height: 44px;
    padding: 0 var(--wpry-space-sm);
    background: var(--wpry-bg);
    border: 1px solid var(--wpry-border);
    border-radius: var(--wpry-radius-md);
    color: var(--wpry-text);
    text-decoration: none;
    font-size: var(--wpry-text-sm);
    font-weight: 500;
    transition: all var(--wpry-transition-fast);
}

.wpry-pagination .page-numbers a:hover {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
    transform: translateY(-2px);
    box-shadow: var(--wpry-shadow-md);
}

.wpry-pagination .page-numbers .current {
    background: var(--wpry-secondary);
    color: white;
    border-color: var(--wpry-secondary);
    cursor: default;
}

.wpry-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    cursor: default;
}

.wpry-pagination .page-numbers .prev,
.wpry-pagination .page-numbers .next {
    font-weight: 600;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.wpry-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--wpry-space-3xl) var(--wpry-space-lg);
    text-align: center;
    background: var(--wpry-bg-alt);
    border: 2px dashed var(--wpry-border);
    border-radius: var(--wpry-radius-xl);
}

.wpry-no-results-icon {
    width: 120px;
    height: 120px;
    margin-bottom: var(--wpry-space-lg);
    color: var(--wpry-text-muted);
    opacity: 0.5;
}

.wpry-no-results-title {
    font-size: var(--wpry-text-2xl);
    font-weight: 700;
    margin: 0 0 var(--wpry-space-sm);
    color: var(--wpry-text);
}

.wpry-no-results-text {
    font-size: var(--wpry-text-base);
    color: var(--wpry-text-light);
    margin: 0 0 var(--wpry-space-lg);
    max-width: 50ch;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1023px) {
    .wpry-filters-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpry-results-info,
    .wpry-sort-wrapper {
        width: 100%;
    }
    
    .wpry-sort-wrapper {
        justify-content: space-between;
    }
    
    .wpry-sort-select {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .wpry-archive-hero {
        padding: var(--wpry-space-xl) 0;
    }
    
    .wpry-archive-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wpry-filters-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--wpry-space-md);
    }
    
    .wpry-view-switcher {
        align-self: flex-end;
    }
    
    .wpry-filters-wrapper {
        padding: var(--wpry-space-md);
    }
    
    .wpry-portfolio-archive.wpry-view-grid {
        grid-template-columns: 1fr;
    }
    
    .wpry-pagination .page-numbers a span,
    .wpry-pagination .page-numbers .prev span,
    .wpry-pagination .page-numbers .next span {
        display: none;
    }
}

@media (max-width: 480px) {
    .wpry-archive-stats {
        grid-template-columns: 1fr;
    }
    
    .wpry-stat-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .wpry-stat-number,
    .wpry-stat-label {
        margin: 0;
    }
}

/* ==========================================================================
   Loading State (Optional Enhancement)
   ========================================================================== */

@keyframes wpry-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wpry-loading .wpry-portfolio-card {
    animation: wpry-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .wpry-archive-hero,
    .wpry-filters-wrapper,
    .wpry-pagination,
    .wpry-view-switcher,
    .wpry-card-overlay {
        display: none;
    }
    
    .wpry-portfolio-archive {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpry-portfolio-card {
        break-inside: avoid;
    }
}

/* ==========================================================================
   Animation for Filter Pills
   ========================================================================== */

@keyframes wpry-pill-active {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.wpry-filter-pill.active {
    animation: wpry-pill-active 0.3s ease-out;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1023px) {
    :root {
        --wpry-space-3xl: 4rem;
        --wpry-space-2xl: 3rem;
    }
}

@media (max-width: 767px) {
    :root {
        --wpry-container-padding: var(--wpry-space-md);
        --wpry-space-3xl: 3rem;
        --wpry-space-2xl: 2rem;
    }
    
    .wpry-portfolio-hero {
        padding: var(--wpry-space-2xl) 0 var(--wpry-space-xl);
    }
    
    .wpry-portfolio-ctas {
        flex-direction: column;
    }
    
    .wpry-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wpry-detail-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    
    .saipc-portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--wpry-space-lg);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .wpry-portfolio-hero {
        background: white;
        color: black;
    }
    
    .wpry-portfolio-ctas,
    .wpry-share,
    .wpry-portfolio-navigation {
        display: none;
    }
    
    .wpry-sidebar-card {
        break-inside: avoid;
    }
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--wpry-secondary);
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
/*@media (prefers-color-scheme: dark) {
    :root {
        --wpry-primary: #ffffff;
        --wpry-primary-dark: #f9fafb;
        --wpry-text: #f9fafb;
        --wpry-text-light: #d1d5db;
        --wpry-text-muted: #9ca3af;
        --wpry-bg: #111827;
        --wpry-bg-alt: #1f2937;
        --wpry-border: #374151;
        --wpry-border-light: #4b5563;
    }
}*/