/**
 * Grid Card Styles
 * Card layout for grid view mode
 */

/* Grid-specific card styling */
.recalls-grid .recall-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.recalls-grid .recall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark mode: Analog backlight glow on hover */
body[data-theme="dark"] .recalls-grid .recall-card:hover {
    box-shadow:
        0 8px 25px rgba(100, 180, 255, 0.25),
        0 4px 15px rgba(100, 180, 255, 0.35),
        0 0 40px rgba(100, 180, 255, 0.3),
        0 0 60px rgba(100, 180, 255, 0.15),
        inset 0 0 80px rgba(100, 180, 255, 0.08) !important;
    border-color: rgba(100, 180, 255, 0.4) !important;
}

/* Date styling - 16x16 icon */
.recalls-grid .recall-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.recalls-grid .recall-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Title */
.recalls-grid .recall-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Product info */
.recalls-grid .recall-product {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Description */
.recalls-grid .recall-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card actions at bottom */
.recalls-grid .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Share buttons - 16x16 icons */
.recalls-grid .share-buttons {
    display: flex;
    gap: 8px;
}

.recalls-grid .share-btn {
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recalls-grid .share-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.recalls-grid .share-btn svg {
    width: 16px;
    height: 16px;
}

/* Bookmark button */
.recalls-grid .action-btn {
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recalls-grid .action-btn:hover:not(:disabled) {
    background: var(--hover-bg);
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.recalls-grid .action-btn.bookmarked {
    background: var(--success-light);
    color: white;
}

.recalls-grid .action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recalls-grid .action-btn svg {
    width: 16px;
    height: 16px;
}

/* View Details button */
.recalls-grid .btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.recalls-grid .btn-small:hover {
    background: var(--primary-dark);
}

/* Card content */
.recalls-grid .card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card image */
.recalls-grid .card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.recalls-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image carousel */
.recalls-grid .image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.recalls-grid .carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.recalls-grid .carousel-images img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recalls-grid .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.recalls-grid .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.recalls-grid .carousel-btn.prev {
    left: 8px;
}

.recalls-grid .carousel-btn.next {
    right: 8px;
}
