.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

/* Missing stránka - 4 sloupce */
.cards-container-missing {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsivní úpravy pro menší obrazovky */
@media (max-width: 1200px) {
    .cards-container-missing {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-container-missing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .cards-container-missing {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-image img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f9f9f9;
}

.card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 0 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-flag {
    height: 16px;
    width: auto;
    border: none;
    flex-shrink: 0;
}

.card-desc {
    flex: 1;
    font-style: italic;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 0.75rem;
}

.card-owner {
    flex: 0;
    font-size: 0.85rem;
    color: #555;
}

.card-code {
    flex: 0;
    font-size: 0.85rem;
    color: #555;
}

.card-code label {
    display: inline-block;
    font-weight: bold;
    min-width: 100px;
}

.card-date {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
}


/* Volitelné: jemné responsivní úpravy */
@media (max-width: 600px) {
    .card-title { font-size: 1.1rem; }
    .card-desc  { font-size: 0.9rem; }
}

/* Loading Spinner */
.loading-spinner {
    display: none; /* Hidden by default */
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db; /* Blue theme color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}