/* ===============================================
   עיצוב מודרני לניהול מחשבים - AnyDesk
   תמיכה מלאה במובייל, טאבלט ומחשב
   =============================================== */

/* Global Styles */
* {
    box-sizing: border-box;
}

/* Container - דריסה חזקה לפריסה מלאה */
.computer-list-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 40px !important;
    direction: rtl;
}

/* דריסת כל container של WordPress */
.computer-list-container * {
    max-width: none;
}

.entry-content .computer-list-container,
.post-content .computer-list-container,
.page-content .computer-list-container,
article .computer-list-container {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 20px 40px !important;
}

/* דריסת העמוד עצמו - פריסה מלאה */
body .computer-list-container {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* ===============================================
   Dropdown Filter - עיצוב מודרני
   =============================================== */
form {
    margin-bottom: 30px;
    text-align: center;
}

#computer_category {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    outline: none;
    appearance: none;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-right: 20px;
}

#computer_category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#computer_category:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* עיצוב אופציות */
#computer_category option {
    background: white;
    color: #2c3e50;
    padding: 10px;
}

/* ===============================================
   Computer Grid - רשת מחשבים מודרנית
   =============================================== */
.computer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* ===============================================
   Computer Item Cards - כרטיסיות מעוצבות
   =============================================== */
.computer-item {
    background: white;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 2px solid transparent;
}

.computer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.computer-item:hover::before {
    transform: scaleX(1);
}

.computer-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.computer-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 25px;
    text-align: center;
}

.computer-item h2 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
}

.computer-item:hover h2 {
    color: #667eea;
}

.computer-item img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.computer-item:hover img {
    transform: scale(1.05);
}

.computer-item p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

/* ===============================================
   Empty State - מצב ריק
   =============================================== */
.computer-grid + p {
    text-align: center;
    font-size: 20px;
    color: #95a5a6;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

/* ===============================================
   Responsive Design - טאבלט
   =============================================== */
@media screen and (max-width: 1024px) {
    .computer-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .computer-item h2 {
        font-size: 19px;
    }
    
    #computer_category {
        max-width: 350px;
        font-size: 16px;
    }
}

/* ===============================================
   Responsive Design - מובייל
   =============================================== */
@media screen and (max-width: 768px) {
    .computer-list-container {
        padding: 15px 15px;
    }
    
    .computer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .computer-item {
        border-radius: 15px;
    }
    
    .computer-item a {
        padding: 20px;
    }
    
    .computer-item h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .computer-item img {
        height: 200px;
        border-radius: 12px;
    }
    
    .computer-item p {
        font-size: 14px;
    }
    
    #computer_category {
        max-width: 100%;
        font-size: 16px;
        padding: 14px 18px;
    }
    
    form {
        margin-bottom: 25px;
    }
}

/* ===============================================
   Responsive Design - מובייל קטן
   =============================================== */
@media screen and (max-width: 480px) {
    .computer-list-container {
        padding: 10px 10px;
    }
    
    .computer-grid {
        gap: 15px;
    }
    
    .computer-item {
        border-radius: 12px;
    }
    
    .computer-item a {
        padding: 15px;
    }
    
    .computer-item h2 {
        font-size: 18px;
    }
    
    .computer-item img {
        height: 160px;
    }
    
    #computer_category {
        font-size: 15px;
        padding: 12px 15px;
    }
}

/* ===============================================
   Loading Animation - אנימציית טעינה
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.computer-item {
    animation: fadeIn 0.6s ease forwards;
}

.computer-item:nth-child(1) { animation-delay: 0.1s; }
.computer-item:nth-child(2) { animation-delay: 0.2s; }
.computer-item:nth-child(3) { animation-delay: 0.3s; }
.computer-item:nth-child(4) { animation-delay: 0.4s; }
.computer-item:nth-child(5) { animation-delay: 0.5s; }
.computer-item:nth-child(6) { animation-delay: 0.6s; }

/* ===============================================
   Dark Mode Support (אופציונלי)
   =============================================== */
@media (prefers-color-scheme: dark) {
    .computer-item {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .computer-item h2 {
        color: #ecf0f1;
    }
    
    .computer-item:hover h2 {
        color: #667eea;
    }
    
    .computer-item p {
        color: #bdc3c7;
    }
}