﻿/* Mobil-első reszponzív alapok */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Rang színek */
.badge-role {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}
.role-owner { background-color: #8b0000; color: #fff; }
 .role-admin { 
    background-color: #0d6efd; /* Vagy #3498db */
    color: #fff; 
}
.role-vip { background-color: #ffc107; color: #000; }
.role-tag { background-color: #2ecc71; color: #fff; }
.role-pending { background-color: #6c757d; color: #fff; }
.role-garazsmester { background-color: #fd7e14; color: #fff; }

/* Mobil nézet finomhangolás */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .flex-container, header .nav-links {
        flex-direction: column !important;
    }
    input, select, textarea, button {
        width: 100% !important;
        margin-bottom: 10px;
        font-size: 16px;
    }
}

/* Galéria stílusok */
.ad-gallery-dialog {
    border: none;
    border-radius: 8px;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: fixed;
    margin: auto;
}

.ad-gallery-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.close-gallery {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-gallery:hover {
    color: #dc3545;
}

.big-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 40px; /* Hely a nyilaknak */
}

.big-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigációs nyilak (lapozás) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Kisbélyegkép sáv alul */
.thumbnail-strip {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    justify-content: center;
    overflow-x: auto;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.6;
}

.thumb-img.active {
    border-color: #fff;
    opacity: 1;
}

/* A kurzor a kis képeken mutassa, hogy kattintható */
.ad-card img {
    cursor: pointer;
}