/**
 * Mobile Phones Showcase - SEO Enhancements CSS
 * تحسينات السيو لمعرض الهواتف الذكية
 */

/* Breadcrumbs handled by Rank Math SEO */

/* SEO-Enhanced Header */
.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.showcase-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.showcase-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* SEO-Optimized Product Cards */
.phone-card {
    position: relative;
    overflow: hidden;
}

.phone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #10b981, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Enhanced Brand Badge */
.brand-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    z-index: 10;
}

/* SEO-Friendly Image Optimization */
.phone-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px 8px 0 0;
}

.phone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.phone-card:hover .phone-image img {
    transform: scale(1.05);
}

/* Enhanced Phone Title for SEO */
.phone-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.phone-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
}

.phone-title a:hover {
    color: #2563eb;
    text-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

/* SEO-Optimized Specs Display */
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 40px;
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #10b981);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spec-item:hover {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.spec-item:hover::before {
    opacity: 1;
}

.spec-icon {
    font-size: 1.1rem;
    color: #2563eb;
    flex-shrink: 0;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.spec-item:hover .spec-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.spec-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.75rem;
    min-width: 55px;
    flex-shrink: 0;
}

.spec-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.75rem;
    line-height: 1.3;
    transition: color 0.2s ease;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec-item:hover .spec-value {
    color: #0f172a;
}

.spec-item:hover .spec-label {
    color: #374151;
}

/* Enhanced View Button */
.view-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.view-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.view-button:hover::before {
    left: 100%;
}

.view-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.view-button:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s;
}

/* Responsive SEO Enhancements */
@media (max-width: 768px) {
    .showcase-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .showcase-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .showcase-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .spec-item {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-height: 36px;
    }
    
    .spec-label {
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .spec-value {
        font-size: 0.7rem;
    }
    
    .view-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .showcase-title {
        font-size: 1.75rem;
    }
    
    .showcase-subtitle {
        font-size: 0.9rem;
    }
    
    .spec-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        min-height: 32px;
    }
    
    .spec-label {
        font-size: 0.65rem;
        min-width: 45px;
    }
    
    .spec-value {
        font-size: 0.65rem;
    }
}

/* Print Styles for SEO */
@media print {
    .view-button {
        display: none;
    }
    
    .phone-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }
    
    .showcase-title {
        color: #000 !important;
        -webkit-text-fill-color: initial;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .spec-item:hover {
        background: #f0f0f0;
        border-color: #000;
    }
    
    .view-button {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .phone-card,
    .spec-item,
    .view-button,
    .breadcrumb-item a {
        transition: none;
    }
    
    .phone-card:hover .phone-image img {
        transform: none;
    }
    
    .spec-item:hover .spec-icon {
        transform: none;
    }
}
