/**
 * Mobile Phone Showcase Card Styles
 * CSS for phone cards in the showcase display
 */

/* Container for showcase cards */
.mps-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid layout for phone cards */
.mps-phones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual phone card */
.mps-phone-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.mps-phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Phone image container */
.mps-phone-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

/* Phone card content */
.mps-phone-content {
    padding: 20px;
}

.mps-phone-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-decoration: none;
}

.mps-phone-title:hover {
    color: #3498db;
    text-decoration: none;
}

/* Phone brand */
.mps-phone-brand {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone specs list */
.mps-phone-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.mps-phone-specs li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.mps-phone-specs li:last-child {
    border-bottom: none;
}

.mps-phone-specs .spec-label {
    font-weight: 600;
    color: #2c3e50;
}

.mps-phone-specs .spec-value {
    color: #666;
    text-align: right;
}

/* Phone price */
.mps-phone-price {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
    margin: 15px 0;
    text-align: center;
}

/* Action buttons */
.mps-phone-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mps-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.mps-btn-primary {
    background: #3498db;
    color: white;
}

.mps-btn-primary:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.mps-btn-secondary {
    background: #95a5a6;
    color: white;
}

.mps-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
    text-decoration: none;
}

.mps-btn-compare {
    background: #f39c12;
    color: white;
}

.mps-btn-compare:hover {
    background: #e67e22;
    color: white;
    text-decoration: none;
}

/* Loading states */
.mps-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.mps-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: mps-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes mps-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No phones found */
.mps-no-phones {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.mps-no-phones p {
    margin: 0;
    font-size: 18px;
    color: #7f8c8d;
}

/* Pagination */
.mps-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
}

.mps-load-more {
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mps-load-more:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.mps-load-more:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .mps-showcase-container {
        padding: 15px;
    }
    
    .mps-phones-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .mps-phone-content {
        padding: 15px;
    }
    
    .mps-phone-title {
        font-size: 16px;
    }
    
    .mps-phone-actions {
        flex-direction: column;
    }
    
    .mps-btn {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .mps-phones-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mps-phone-image {
        height: 180px;
    }
    
    .mps-phone-specs li {
        font-size: 13px;
    }
    
    .mps-phone-price {
        font-size: 18px;
    }
}

/* Arabic text support */
[dir="rtl"] .mps-phone-specs {
    text-align: right;
}

[dir="rtl"] .mps-phone-specs .spec-value {
    text-align: left;
}

/* Font family for Arabic content */
.mps-phone-card {
    font-family: 'Tajawal', 'Arial', sans-serif;
}

/* Accessibility improvements */
.mps-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mps-phone-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mps-phone-actions {
        display: none;
    }
    
    .mps-phone-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
