:root {
    --main-background: rgb(0, 0, 0);
    --ad-background: rgb(50, 50, 50);
    --font-overall: Arial, sans-serif;
    --text-color: #d3d3d3;
}

body {
    background-color: var(--main-background);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
}

.title-top {
    font-weight: bold;
    font-size: 1.1em;
}

.hr-rounded {
    border: none;
    height: 4px;
    background: #e5e5e5;
    border-radius: 999px;
    margin: 22px 0;
}

.title-bottom {
    font-size: 1.2rem;
    color: var(--text-color);
}

.title {
    display: inline-block;   /* titel wordt zo breed als zijn inhoud */
}

h1 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-color);


  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 3px;
}

h2{
    margin-top: -30px;
    text-align: center;   
    color: var(--text-color);
    padding: 10px;
    margin-bottom: 0;
}

#adList {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Altijd 3 kolommen, gelijke breedte */
    justify-content: center; /* centreert alle kolommen */
    gap: 25px;
    padding: 0 175px 0 175px;
}

/* CARD-STYLING */
.card {
    background: var(--ad-background);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; 
    padding-bottom: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;


    min-width: 350px;
}

/* Optioneel: hover effect voor meer diepte */
.card:hover {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.4),
        0 12px 30px rgba(0,0,0,0.6),
        0 16px 50px rgba(0,0,0,0.3);
}

#adList {
  padding: clamp(
    25px, 
    calc(25px + (175 - 25) * ((100vw - 1300px) / (1900 - 1300))), 
    175px
  );}

@media(max-width: 1300px) {
    #adList {
        grid-template-columns: repeat(2, 1fr); /* Altijd 3 kolommen, gelijke breedte */
        padding: 30px;
    }
    .card {
        width: 100%;
    }
}

@media(max-width: 800px) {
    #adList {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .card {
        width: 100%;
    }
}

.expected-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: bold;    
    padding: 0;
    border: none;
    background: none;
    text-align: center;
    margin-top: 5px;
    display: block;
    width: 100%;
}

.middle-row-expected {
    padding: 0px 25px 0 25px;
}


.card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: -20px;
    text-align: center;
    width: 100%;
    padding: 10px;
}

.card-content {
    padding: 18px;
    padding-bottom: 0;
    height: auto;
    position: relative; /* voor SoH-badge */
}

.meta {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 6px;
}

.description {
    margin: 10px 0 15px 0;
    font-size: 14px;
    color: #ddd;
    min-height: 40px;
}

/* SoH Badge */
.soh-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #005500;
    color: white;
    font-weight: bold;
    border-radius: 50%;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;

    display: none;
}

/* CARD FOOTER: link + prijs in dezelfde row */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #2a2a2a;
    margin-top: auto; /* altijd onderaan card-content */
}

.card-footer a {
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: red;
}

.card-footer a::after {
    content: " >";
    font-weight: bold;
}

/* Performance badge */
.performance-badge {
    width: fit-content;
    height: 4px;
    background-color: red;
    margin-top: 4px;
    border-radius: 2px;
}

/* HR rounded */
.hr-rounded {
    border: none;
    height: 2px;
    background: #e0e0e0;
    border-radius: 100px;
    margin: 12px 0;
}

.middle-row {
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;

    padding: 0 25px 0 25px;
}


.bottom-row {
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: bold;
}

.view-link {
    display: flex;      /* zorgt dat het pijltje mooi meebeweegt */
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: bold;    
    padding: 0;
    border: none;
    background: none;
    letter-spacing: 0.05em;
}

/* Toggle buttons */
.view-toggle {
    text-align: center;
    margin: 20px 0;
    display: none;
}

.view-toggle button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #555;
    color: #fff;
    display: none;
}

.view-toggle button.active {
    background: #00ff00;
    color: #000;
}

@media(max-width: 800px) {
    .view-toggle{
        display: block;
    }
    #adList {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .card {
        width: 100%;
    }

/* LIJST: 1 of 2 per rij */
#adList.list {
        grid-template-columns: 1fr;
}

/* GALERIJ: 3 per rij */
#adList.gallery {
        grid-template-columns: repeat(2, 1fr); /* Altijd 3 kolommen, gelijke breedte */
}

}