/* WordPress-optimized Mini PC Guide Styles */
.wp-mini-pc-guide {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #f7fafc;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.wp-guide-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .wp-guide-container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* Header */
.wp-guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #4299e1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -2rem -2rem 3rem -2rem;
    padding: 3rem 2rem 2rem;
    color: white;
    position: relative;
}

.wp-header-branding {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 10;
}

.wp-brand-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-brand-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.wp-guide-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Introduction */
.wp-guide-intro {
    margin-bottom: 3rem;
}

.wp-intro-text {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: left;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    margin: 0;
}

/* Section Titles */
.wp-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.wp-section-subtitle {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Filter Section */
.wp-filter-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.wp-filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.wp-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wp-filter-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wp-filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Filter Button Colors */
.wp-filter-all.active { background: #e6fffa; border-color: #38b2ac; color: #2c7a7b; }
.wp-filter-ai-dev.active { background: #fff5f5; border-color: #fc8181; color: #c53030; }
.wp-filter-homelab.active { background: #f0fff4; border-color: #68d391; color: #2f855a; }
.wp-filter-htpc.active { background: #faf5ff; border-color: #b794f6; color: #6b46c1; }
.wp-filter-egpu.active { background: #fffaf0; border-color: #fbb870; color: #c05621; }
.wp-filter-mac-mini.active { background: #ebf8ff; border-color: #63b3ed; color: #2c5282; }

/* Comparison Grid */
.wp-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.wp-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .wp-grid-row {
        grid-template-columns: 200px repeat(4, 1fr);
    }
}

.wp-grid-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.wp-grid-cell {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 70px;
    transition: all 0.3s ease;
}

.wp-grid-cell small {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 0.25rem;
}

.wp-cell-header-char {
    background: #2d3748;
    color: #ffffff;
    font-weight: 600;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    align-items: center;
}

.wp-cell-header-model {
    background: #edf2f7;
    color: #2d3748;
    font-weight: 600;
    justify-content: center;
    text-align: center;
    flex-direction: row;
    align-items: center;
}

.wp-cell-label {
    background: #f7fafc;
    color: #2d3748;
    font-weight: 500;
    border-left: 4px solid #4299e1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
}

/* Row Colors */
.wp-row-config { background-color: #fffbeb; }
.wp-row-footprint { background-color: #fef5e7; }
.wp-row-ports { background-color: #fef2f2; }
.wp-row-suited { background-color: #f3e8ff; }
.wp-row-tradeoffs { background-color: #eff6ff; }

/* AI Winners Section */
.wp-ai-winners {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 16px;
}

.wp-winners-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.wp-winners-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3rem;
    text-align: center;
}

.wp-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    perspective: 1000px;
}

.wp-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    max-width: 200px;
}

.wp-winner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.wp-winner-1 {
    order: 2;
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    transform: scale(1.1);
}

.wp-winner-2 {
    order: 3;
    border-color: #c0c0c0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.wp-winner-3 {
    order: 1;
    border-color: #cd7f32;
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
}

.wp-trophy {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.wp-trophy::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.3;
    margin: auto;
}

.wp-trophy-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #d97706;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.wp-trophy-silver {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    color: #6b7280;
    box-shadow: 0 4px 16px rgba(192, 192, 192, 0.4);
}

.wp-trophy-bronze {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #92400e;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.wp-position {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.wp-winner h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wp-winner p {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* Footer */
.wp-guide-footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    border-radius: 0 0 16px 16px;
}

.wp-footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.wp-footer-branding {
    margin-bottom: 2rem;
}

.wp-footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4299e1;
    display: block;
    margin-bottom: 0.5rem;
}

.wp-footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

.wp-footer-links {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.wp-footer-disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Icons */
.wp-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
    color: #4299e1;
}

/* Cards Section */
.wp-cards-section {
    margin-bottom: 3rem;
}

.wp-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wp-mini-pc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

.wp-mini-pc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.wp-mini-pc-card.wp-card-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.wp-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.wp-card-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-badge-premium { background: #fed7d7; color: #c53030; }
.wp-badge-balanced { background: #c6f6d5; color: #2f855a; }
.wp-badge-value { background: #bee3f8; color: #2c5282; }
.wp-badge-compact { background: #fbb6ce; color: #b83280; }

.wp-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.wp-card-section {
    margin-bottom: 1.5rem;
}

.wp-card-section:last-child {
    margin-bottom: 0;
}

.wp-card-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.wp-card-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    color: #4299e1;
    flex-shrink: 0;
}

.wp-card-value {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.5;
    padding-left: 1.5rem;
}

/* Card Actions */
.wp-card-actions {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.wp-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wp-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.wp-btn-amazon {
    background: #ff9900;
    color: white;
    border-color: #e68900;
}

.wp-btn-amazon:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.wp-btn-newegg {
    background: #0066cc;
    color: white;
    border-color: #0052a3;
}

.wp-btn-newegg:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Takeaways Section */
.wp-takeaways-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.wp-takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wp-takeaway-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.wp-takeaway-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.wp-takeaway-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wp-takeaway-icon svg {
    width: 30px;
    height: 30px;
}

.wp-takeaway-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.wp-takeaway-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-filter-buttons {
        flex-direction: column;
    }
    
    .wp-filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .wp-grid-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .wp-grid-cell {
        min-height: 50px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .wp-grid-cell small {
        font-size: 0.7rem;
    }
    
    .wp-cell-label {
        text-align: left;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
    }
    
    .wp-cell-header-char,
    .wp-cell-header-model {
        text-align: center;
        justify-content: center;
        flex-direction: row;
        align-items: center;
    }
    
    .wp-cards-container {
        grid-template-columns: 1fr;
    }
    
    .wp-takeaways-grid {
        grid-template-columns: 1fr;
    }
    
    /* Winners Section Mobile */
    .wp-ai-winners {
        padding: 2rem 1rem;
        margin: -1.5rem -1.5rem 2rem -1.5rem;
    }
    
    .wp-winners-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .wp-podium {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .wp-winner {
        max-width: 280px;
        width: 100%;
    }
    
    .wp-winner-1 {
        order: 1;
        transform: none;
    }
    
    .wp-winner-2 {
        order: 2;
    }
    
    .wp-winner-3 {
        order: 3;
    }
    
    /* Header/Footer Mobile */
    .wp-header-branding {
        position: static;
        margin-bottom: 1rem;
    }
    
    .wp-brand-logo {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }
    
    .wp-guide-footer {
        padding: 2rem 1rem 1.5rem;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: -1.5rem;
    }
    
    .wp-footer-brand {
        font-size: 1.25rem;
    }
    
    .wp-footer-tagline {
        font-size: 0.875rem;
    }
    
    /* Card Actions Mobile */
    .wp-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wp-action-btn {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
    }
    
    .wp-btn-icon {
        width: 14px;
        height: 14px;
    }
}

/* Smooth transitions for filtered content */
.wp-mini-pc-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar for horizontal overflow */
.wp-comparison-grid::-webkit-scrollbar {
    height: 8px;
}

.wp-comparison-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wp-comparison-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.wp-comparison-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for filtered cards */
.wp-mini-pc-card.wp-card-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* WordPress compatibility - Reset potential conflicts */
.wp-mini-pc-guide * {
    box-sizing: border-box;
}

.wp-mini-pc-guide button {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

.wp-mini-pc-guide button:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-guide-container {
        border: 2px solid #000000;
    }
    
    .wp-grid-cell {
        border: 1px solid #000000;
    }
    
    .wp-mini-pc-card {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wp-mini-pc-card,
    .wp-grid-row,
    .wp-takeaway-card,
    .wp-filter-btn {
        transition: none;
    }
    
    .wp-mini-pc-card:hover,
    .wp-grid-row:hover,
    .wp-takeaway-card:hover {
        transform: none;
    }
}
