/* ========================================
   KUNSTMEKKA LISTE - STYLING
======================================== */

.kunstmekka-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Controls grid - OPDATERET RÆKKEFØLGE */
.kunstmekka-controls {
    display: grid;
    grid-template-columns: 2fr auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Søgefelt */
.kunstmekka-search-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kunstmekka-search-input {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: text;
    background: white;
    transition: border-color 0.3s;
}

.kunstmekka-search-input:focus {
    outline: none;
    border-color: #667eea;
}

.kunstmekka-search-input::placeholder {
    color: #999;
    font-size: 14px;
}

.btn-soeg {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-soeg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Sortér og Vis */
.kunstmekka-sort,
.kunstmekka-per-side {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.kunstmekka-sort label,
.kunstmekka-per-side label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.kunstmekka-sort select,
.kunstmekka-per-side select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    min-width: 120px;
}

/* Loading spinner */
#kunstmekka-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid - 5 kolonner på store skærme */
.kunstmekka-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Kunstner-kort */
.kunstner-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.kunstner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Badge: Ny kunstner */
.badge-ny {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Profilbillede */
.kunstner-billede {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.kunstner-billede img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.kunstner-card:hover .kunstner-billede img {
    transform: scale(1.05);
}

/* Info */
.kunstner-info {
    padding: 15px;
}

.kunstner-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
}

.kunstner-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.kunstner-info h3 a:hover {
    color: #667eea;
}

.kunstner-by {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

.kunstner-stats {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #888;
}

/* Knap */
.btn-se-profil {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-se-profil:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Ingen kunstnere */
.kunstmekka-ingen {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kunstmekka-ingen p {
    font-size: 18px;
    color: #666;
}

/* Fejlbesked */
.kunstmekka-fejl {
    background: #f8d7da;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    color: #721c24;
    text-align: center;
}

/* Pagination */
.kunstmekka-pagination {
    margin-top: 40px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-block;
    padding: 10px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    pointer-events: none;
}

.pagination-dots {
    padding: 0 5px;
    color: #999;
}

/* ========================================
   RESPONSIVT
======================================== */

/* Store skærme (1400px+) */
@media (min-width: 1400px) {
    .kunstmekka-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mellem skærme (1200-1399px) */
@media (max-width: 1399px) {
    .kunstmekka-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet (768-1199px) */
@media (max-width: 1199px) {
    .kunstmekka-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet/Mobil (640-767px) */
@media (max-width: 767px) {
    .kunstmekka-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    .kunstmekka-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .kunstmekka-search-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .kunstmekka-search-input {
        max-width: 100%;
        min-width: auto;
    }

    .btn-soeg {
        width: 100%;
    }

    .kunstmekka-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kunstner-info {
        padding: 10px;
    }

    .kunstner-info h3 {
        font-size: 14px;
    }

    .kunstner-by,
    .kunstner-stats {
        font-size: 12px;
    }

    .btn-se-profil {
        padding: 8px;
        font-size: 13px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Mobil (under 640px) - 1 KOLONNE */
@media (max-width: 639px) {
    .kunstmekka-wrapper {
        padding: 0 10px;
        margin: 15px auto;
    }

    .kunstmekka-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kunstner-card {
        max-width: 100%;
    }

    .kunstner-info {
        padding: 12px;
    }

    .kunstner-info h3 {
        font-size: 15px;
    }

    .badge-ny {
        font-size: 10px;
        padding: 4px 8px;
    }
}
