/*
 Theme Name: Discy Child
 Template: discy
*/

/* ============================================================
   RESET DISCY HEADER STYLES (APPLIES ONLY TO HOMEPAGE HEADER)
============================================================ */

body.home-custom-header .quibr-home-header,
body.home-custom-header .quibr-home-header * {
    all: unset;
    display: revert;
    box-sizing: border-box;
    font-family: inherit;
}

/* ============================================================
   CUSTOM HOMEPAGE HEADER (MATCHES QUIBR MOCKUP)
============================================================ */

body.home-custom-header .quibr-home-header {
    background: #ffffff;
    padding: 25px 40px 35px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

/* TOP BAR: Logo + dots + sign in */
body.home-custom-header .quibr-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

body.home-custom-header .quibr-logo img {
    height: 42px;
}

body.home-custom-header .quibr-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.home-custom-header .quibr-dots {
    font-size: 22px;
    color: #0a2ea0;
    line-height: 1;
}

body.home-custom-header .sign-in-btn {
    padding: 8px 18px;
    background: #f0f0f0;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* HERO SEARCH SECTION */
body.home-custom-header .quibr-hero {
    text-align: center;
}

/* Search bar wrapper */
body.home-custom-header .quibr-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Search icon */
body.home-custom-header .search-icon {
    margin-right: -42px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Search input */
body.home-custom-header .quibr-search-input {
    width: 400px;
    padding: 14px 16px 14px 44px;
    border-radius: 12px;
    border: 1px solid #cccccc;
    background: #e6e6e6;
    font-size: 16px;
}

/* Dropdown next to search */
body.home-custom-header .quibr-search-select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fafafa;
}

/* Search button */
body.home-custom-header .quibr-search-btn {
    padding: 12px 22px;
    border-radius: 10px;
    background: #f0f0f0;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* OR separator */
body.home-custom-header .quibr-or {
    margin: 16px;
    display: inline-block;
    font-weight: 600;
    color: #666;
}

/* ASK A QUESTION BUTTON */
body.home-custom-header .quibr-ask-btn {
    background: #0057d9;
    color: #fff !important;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
}

/* tagline */
body.home-custom-header .quibr-hero-tagline {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
}

/* ============================================================
   HOMEPAGE BODY SECTIONS (MEMBERS / QUESTIONS / TAGS)
============================================================ */

.home-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.home-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #555;
}

/* MEMBERS */
.home-members {
    display: flex;
    gap: 20px;
    align-items: center;
}

.member {
    text-align: center;
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 100px;
    object-fit: cover;
}

.member-name {
    margin-top: 8px;
    font-size: 14px;
}

/* QUESTIONS GRID */
.home-questions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.question-img-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.question-img-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* TAGS */
.home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-tags .tag {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.home-tags .tag:hover {
    background: #e2e2e2;
}

/* MOBILE */
@media(max-width: 768px) {
    .home-questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
