/* Pamatstils */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a, #333); /* Tumšs gradienta fons */
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header stils */
header {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo un nosaukums */
header img {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 24px;
    color: #fff;
}

/* Navigācijas izvēlne */
#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

#menu ul li {
    display: inline;
}

#menu ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    background: transparent;
    transition: background 0.3s ease;
}

#menu ul li a:hover {
    background-color: #e63946; /* Sarkans hover efekts */
}

/* Pogu stils */
.button, button, .auth-buttons a {
    text-decoration: none;
    color: #fff;
    background-color: #000;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover, button:hover, .auth-buttons a:hover {
    background-color: #e63946; /* Sarkanā krāsa pie hover */
    border-color: #e63946;
    color: #fff;
}

/* Informācijas sadaļa */
#info {
    flex: 1;
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}

/* Car listing */
#info .car-listing {
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #333;
}

#info .car-listing:hover {
    transform: translateY(-10px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
}

/* Attēla izmērs */
.car-listing img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Cena un apraksts */
.car-listing h3 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
}

.car-listing p {
    font-size: 1em;
    color: #ddd;
    margin: 5px 0;
    text-overflow: ellipsis;
    overflow: hidden;
    max-height: 120px;
}

/* Cena */
.car-listing .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e63946; /* Sarkanā cena */
    margin-top: 15px;
}

.car-listing .price:before {
    content: "Cena: ";
    font-weight: normal;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Responsīvais dizains */
@media (min-width: 768px) {
    .car-listing {
        width: calc(50% - 20px); /* 50% platums vidēja lieluma ekrānos */
    }
}

@media (min-width: 1200px) {
    .car-listing {
        width: calc(33.33% - 20px); /* 33.33% platums lielos ekrānos */
    }
}

