:root {
    /* Sötét téma változók */
    --primary-color: #008f7d;
    /* Türkiz */
    --primary-dark: #007063;
    --accent-color: #ff6600;
    /* Narancs */
    --accent-hover: #e65c00;

    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --bg-color: #121212;
    /* Sötét háttér */

    --card-bg: #1e1e1e;
    /* Kártya és doboz háttér */
    --text-on-primary: #ffffff;
    /* Szöveg sötét/színes háttéren */

    --border-color: #333333;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background: var(--primary-color);
    color: var(--text-on-primary);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-on-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-on-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-on-primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--text-on-primary);
    color: var(--text-on-primary);
    background: transparent;
    padding: 6px 14px;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 6px 14px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-on-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.hero h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.search-box {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
    width: 350px;
    font-size: 1rem;
}

/* Categories Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card h4 {
    margin: 15px 0 10px;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 0 15px;
}

.card p {
    color: var(--text-light);
    padding: 0 15px;
    margin-bottom: 20px;
}

.card a {
    display: block;
    background: var(--bg-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid var(--border-color);
}

.card a:hover {
    background: var(--primary-color);
    color: var(--text-on-primary);
}

.main-footer {
    background: #0f171e;
    /* Nagyon sötét lábléc */
    color: var(--text-on-primary);
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

/* Upload Grid */
.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.upload-box {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.upload-btn {
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    color: var(--text-color);
}

.upload-btn:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.preview-card {
    border: 1px solid var(--border-color);
    background: #000;
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.delete-btn:hover {
    background: red;
}

.main-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
}

/* Ad Listing Custom CSS */

.ad-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
}

.x-small {
    font-size: 0.75rem;
}

@media (max-width: 767.98px) {
    .w-100-mobile {
        width: 100% !important;
    }

    .border-start-md {
        border-left: none !important;
        border-top: 1px solid var(--border-color);
    }

    .border-end-md {
        border-right: none !important;
        border-bottom: 1px dashed #eee;
        padding-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--border-color) !important;
    }

    .border-end-md {
        border-right: 1px solid #eee !important;
    }
}