/* SEO Pages Specific Styles - DO NOT USE ON MAIN SITE */

/* CSS Variables that might be missing */
:root {
    --pokemon-yellow: #f1c232;
    --pokemon-purple: #7e3a8c;
}

/* Header fixes for SEO pages */
.header {
    background: rgba(20, 20, 20, 0.95) !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(126, 58, 140, 0.1) !important;
}

/* Header glow effect */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--pokemon-purple) 20%, 
        var(--pokemon-yellow) 50%, 
        var(--pokemon-purple) 80%, 
        transparent 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.desktop-header {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 var(--spacing-lg) !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    position: relative !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-md) !important;
}

/* Navigation styles */
.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.logo span {
    color: #9b59b6;
}

/* Mobile header styles */
.header-mobile {
    padding: 0;
}

.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    height: 60px;
}

.logo-container-mobile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-mobile {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.logo-mobile span {
    color: #9b59b6;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Search box styles */
.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 100px 10px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-submit {
    position: absolute;
    right: 4px;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Page layout styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #9b59b6 0%, #7e3a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #a0a0a0;
}

/* Product grid spacing */
#productsGrid,
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin-bottom: 40px !important;
}

@media (max-width: 640px) {
    #productsGrid,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 0.875rem;
    color: #888;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
}

/* Main content area */
main.container {
    padding-top: 20px;
    min-height: calc(100vh - 200px);
}

/* Content wrapper */
.content-wrapper {
    padding: var(--spacing-lg) 0;
}

/* Button styles */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #9b59b6 0%, #7e3a8c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(155, 89, 182, 0.3);
    color: #fff;
}

.btn-primary svg,
.btn-secondary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Product card variations */
.product-card .product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9b59b6 0%, #7e3a8c 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.product-card .product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.4);
}

/* Freshness badge styling */
.freshness-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    backdrop-filter: blur(10px) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.freshness-live {
    background: rgba(34, 197, 94, 0.9) !important;
    color: white !important;
    animation: pulse 2s infinite !important;
}

.freshness-fresh {
    background: rgba(34, 197, 94, 0.8) !important;
    color: white !important;
}

.freshness-recent {
    background: rgba(250, 204, 21, 0.8) !important;
    color: #000 !important;
}

.freshness-check {
    background: rgba(251, 146, 60, 0.8) !important;
    color: white !important;
}

.freshness-old {
    background: rgba(239, 68, 68, 0.8) !important;
    color: white !important;
}

.freshness-archived {
    background: rgba(107, 114, 128, 0.8) !important;
    color: white !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Product info styling */
.product-info {
    padding: 16px !important;
}

.product-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.product-retailer {
    font-size: 0.875rem !important;
    color: #a0a0a0 !important;
    margin-top: 8px !important;
}

/* Deal badge */
.product-deal {
    position: relative;
}

.deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.deal-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.product-price-deal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* Price range navigation */
.deals-price-navigation {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.price-range-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.price-range-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.price-range-btn.active {
    background: rgba(155, 89, 182, 0.1);
    border-color: var(--primary);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* No results state */
.no-results {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-lg);
}

.no-results-icon {
    margin-bottom: var(--spacing-xl);
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.no-results strong {
    color: var(--text-primary);
}

/* Pagination styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(.pagination-disabled) {
    color: var(--primary);
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pagination-disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
}

.pagination-current {
    color: var(--primary);
    font-size: 1.125rem;
}

.pagination-separator {
    color: var(--text-muted);
}

.pagination-total {
    color: var(--text-secondary);
}

/* Footer styles */
.footer {
    margin-top: var(--spacing-4xl);
    padding: var(--spacing-2xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-4xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product meta tags */
.product-meta {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.category-tag,
.subcategory-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.category-tag {
    background: rgba(155, 89, 182, 0.15);
    color: var(--primary-light);
}

.subcategory-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Product details section */
.product-details {
    margin-top: var(--spacing-md);
}

.price-section {
    margin-bottom: var(--spacing-xs);
}

.retailer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.retailer-name {
    font-weight: 500;
}

.product-time {
    font-size: 0.75rem;
}

/* Product actions */
.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* Skeleton loading styles */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: rgba(26, 26, 26, 0.6);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--spacing-md);
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: var(--spacing-sm);
}

.skeleton-category {
    height: 16px;
    width: 40%;
    margin-bottom: var(--spacing-md);
}

.skeleton-price {
    height: 24px;
    width: 30%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .deals-price-navigation {
        gap: var(--spacing-sm);
    }
    
    .price-range-btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .pagination {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .pagination-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .desktop-header {
        display: none !important;
    }
    
    .header-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .header-mobile {
        display: none !important;
    }
    
    .desktop-header {
        display: flex !important;
    }
}

/* Fix product image container naming issue */
.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    background: var(--gradient-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--spacing-md);
}

/* Fix product card styling */
.product-card {
    background: rgba(26, 26, 26, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(155, 89, 182, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
}

/* Make the entire card clickable */
.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Ensure interactive elements are above the card link */
.product-card .btn-primary,
.product-card .btn-secondary,
.product-card .product-link {
    position: relative;
    z-index: 2;
}

/* Proper glow effect on product cards */
.product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        rgba(155, 89, 182, 0.3),
        rgba(52, 152, 219, 0.3),
        rgba(155, 89, 182, 0.3));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* Ensure proper hover effects for SEO pages */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(155, 89, 182, 0.15),
        inset 0 0 30px rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3) !important;
}

/* Product price styling */
.product-price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--pokemon-yellow) !important;
}

/* Fix breadcrumb styling on individual product pages */
.product-detail-page .breadcrumb {
    display: block;
    margin-bottom: var(--spacing-xl);
}

/* Product detail page specific styles */
.product-detail-page {
    padding: 20px 0;
    min-height: 80vh;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    margin-top: 20px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(155, 89, 182, 0.1);
}

.product-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.product-image-section img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.product-info-section h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.product-info-section .product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-info-section .price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--pokemon-yellow) !important;
}

.stock-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.stock-status.in-stock {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.product-details {
    margin-bottom: 30px;
}

.product-details p {
    margin: 10px 0;
    color: #e0e0e0;
}

.product-details strong {
    color: #fff;
    margin-right: 8px;
}

.product-actions {
    margin-top: 30px;
}

.product-actions .button {
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #9b59b6 0%, #7e3a8c 100%) !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.product-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.4);
}

.last-updated {
    margin-top: 20px;
    font-size: 0.875rem;
    color: #888;
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .product-image-section {
        margin-bottom: 20px;
    }
}