/* ============================================
   CARD RESPONSIVE
   All card-related media queries and
   responsive grid adjustments
   ============================================ */

/* ---- Desktop / Tablet Grid Breakpoints ---- */
@media (max-width: 1200px) {
    .plates-grid {
        grid-template-columns: repeat(3, 250px);
        justify-content: center;
    }
    
    .plate-card {
        width: 250px;
    }
}

/* iPad Pro 12.9"/13" */
@media (min-width: 1000px) and (max-width: 1100px) {
    .plates-grid {
        grid-template-columns: repeat(3, 300px);
        justify-content: center;
        gap: 30px;
    }
    
    .plate-card {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .plates-grid {
        grid-template-columns: repeat(2, 240px);
        justify-content: center;
    }
    
    .plate-card {
        width: 240px;
        height: 305px;
    }
    
    .plate-number-container {
        height: 180px;
    }
    
    .plate-number {
        font-size: 28px;
    }
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
    .plates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-content: stretch;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .plate-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: 285px;
        transition: none;
        background: #fff;
    }
    
    .plate-card:hover {
        transform: none;
    }
    
    .plate-number-container {
        height: 160px;
    }
    
    .plate-number {
        font-size: 24px;
    }
    
    /* Sponsored carousel on mobile */
    .sponsored-plates {
        display: flex;
        overflow-x: auto !important;
        overflow-y: hidden;
        gap: 15px;
        padding: 10px 0 20px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none !important;
        scrollbar-width: thin;
        position: relative;
        width: auto;
        max-width: none;
    }
    
    .sponsored-plates .plate-card {
        flex: 0 0 auto;
        width: 240px;
        min-width: 240px;
        scroll-snap-align: none !important;
    }
}

/* ---- Small Phone ---- */
@media (max-width: 480px) {
    .plates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    .plate-card {
        width: 100%;
        max-width: 100%;
        height: 265px;
    }
    
    .plate-number-container {
        height: 150px;
    }
    
    .plate-number {
        font-size: 20px;
        letter-spacing: 1px;
        font-weight: 700;
    }
    
    .sponsored-plates .plate-card {
        width: calc(50vw - 20px);
        min-width: calc(50vw - 20px);
    }
}
