/*
Theme Name: Hibu
Description: A service marketplace theme like Armut.
Author: Antigravity
Version: 1.1
*/

:root {
    --primary-color: #2fb423;
    /* WhatsApp Green / Trusted Green */
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-radius: 16px;
    --search-bg: #2c2c2c;
    --accent-color: #37d67a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    /* Space for bottom navbar */
}

/* Header & Search */
header {
    text-align: left;
    /* Aligned left for more modern app feel or center */
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 900;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: none;
    background: var(--search-bg);
    border-radius: 30px;
    font-size: 16px;
    color: #fff;
    box-sizing: border-box;
}

.search-container button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}


/* Horizontal Tags Filter */
.tags-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.tags-scroll-container::-webkit-scrollbar {
    display: none;
}

.tag-item {
    display: inline-block;
    padding: 8px 20px;
    margin-right: 10px;
    background: var(--card-bg);
    color: var(--text-muted);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-item.active,
.tag-item:hover {
    background: #fff;
    color: #000;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    aspect-ratio: 1 / 1;
    /* Square cards like standard app grids */
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
}

.category-item:hover img {
    transform: scale(1.05);
    opacity: 0.6;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    box-sizing: border-box;
}

.category-item h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Bottom Navbar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item.active,
.nav-item:hover {
    color: #fff;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    background: #2c2c2c;
    color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* File Upload Styles */
.image-upload-wrapper {
    margin-top: 5px;
}

.image-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px dashed #555;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

.image-upload-label:hover {
    background: #444;
    border-color: var(--primary-color);
}

.image-upload-label i {
    font-size: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}