/**
 * Vozy Shortcode Styles
 */

/* Grid layout */
.vozy-grid {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.vozy-grid-cols-1 { grid-template-columns: 1fr; }
.vozy-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vozy-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vozy-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vozy-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.vozy-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive */
@media (max-width: 1200px) {
    .vozy-grid-cols-5,
    .vozy-grid-cols-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .vozy-grid-cols-4,
    .vozy-grid-cols-5,
    .vozy-grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .vozy-grid-cols-3,
    .vozy-grid-cols-4,
    .vozy-grid-cols-5,
    .vozy-grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .vozy-grid-cols-2,
    .vozy-grid-cols-3,
    .vozy-grid-cols-4,
    .vozy-grid-cols-5,
    .vozy-grid-cols-6 { grid-template-columns: 1fr; }
}

/* Card */
.vozy-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vozy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vozy-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vozy-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Image container */
.vozy-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

/* Badge */
.vozy-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.vozy-badge-new {
    background: #dc2626;
}

.vozy-badge-price-changed {
    background: #f97316;
}

/* Photo count */
.vozy-card-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.vozy-card-photo-count svg {
    width: 14px;
    height: 14px;
}

/* Content */
.vozy-card-content {
    padding: 16px;
}

.vozy-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer with specs and price */
.vozy-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

/* Specs */
.vozy-card-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vozy-card-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.vozy-card-spec svg {
    width: 14px;
    height: 14px;
    color: #999;
    flex-shrink: 0;
}

/* Price */
.vozy-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
}

/* No results */
.vozy-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vozy-card {
        background: #1e1e2e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .vozy-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .vozy-card-title {
        color: #f0f0f0;
    }
    
    .vozy-card-spec {
        color: #aaa;
    }
    
    .vozy-card-spec svg {
        color: #777;
    }
    
    .vozy-card-image {
        background: #2a2a3e;
    }
}

/* Alternative compact layout for smaller cards */
@media (max-width: 768px) {
    .vozy-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vozy-card-specs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 16px;
    }
    
    .vozy-card-price {
        margin-top: 8px;
        width: 100%;
        text-align: right;
    }
}

/* First card larger variant (optional) */
.vozy-grid-featured .vozy-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.vozy-grid-featured .vozy-card:first-child .vozy-card-image {
    aspect-ratio: 16 / 10;
}

.vozy-grid-featured .vozy-card:first-child .vozy-card-title {
    font-size: 20px;
}

.vozy-grid-featured .vozy-card:first-child .vozy-card-price {
    font-size: 24px;
}

@media (max-width: 768px) {
    .vozy-grid-featured .vozy-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .vozy-grid-featured .vozy-card:first-child .vozy-card-image {
        aspect-ratio: 4 / 3;
    }
    
    .vozy-grid-featured .vozy-card:first-child .vozy-card-title {
        font-size: 16px;
    }
    
    .vozy-grid-featured .vozy-card:first-child .vozy-card-price {
        font-size: 18px;
    }
}
