/* ===========================
   LAYOUT
   =========================== */

/* MAIN NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 20px;
}

/* DROPDOWN WRAPPER */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* CLICKABLE AREA (image + arrow) */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ARROW */
.dropdown-arrow {
    font-size: 14px;
    color: #333;
    transition: transform 0.2s ease;
}

/* ROTATE ARROW WHEN OPEN */
.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* PROFILE IMAGE */
.profile-dropdown .nav-profile-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

/* SHOW MENU WHEN ACTIVE */
.profile-dropdown.active .dropdown-menu {
    display: flex;
}

/* DROPDOWN LINKS */
.dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    display: block;
    transition: 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    color: #555;
}

/* SHOW DROPDOWN ON HOVER */
.profile-dropdown:hover .dropdown-menu {
    display: flex;
}

/* USER SECTION */
.navbar .user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome {
    font-weight: 600;
    color: #333;
}

/* PROFILE IMAGE */
.nav-profile-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

/* NAV LINKS WRAPPER */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* NAV LINKS */
.navbar-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.navbar-links a:hover {
    background: #f0f0f0;
}

/* COIN BALANCE */
.coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.coin-balance .coin-link {
    text-decoration: none;
    color: #0077ff;
    font-weight: 500;
}

.coin-balance .coin-link:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 100px auto var(--space-6);
    padding: var(--space-5) var(--space-4);
}

.footer {
    text-align: center;
    padding: var(--space-5);
    background: var(--card-bg);
    color: var(--text-light);
    margin-top: var(--space-6);
    border-radius: var(--radius) var(--radius) 0 0;
}


/* PAGE TITLE */
h2 {
    margin: 20px 0;
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

/* FILTER BAR */
.browse-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.browse-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #333;
}

.browse-filters button {
    padding: 8px 14px;
    background: #0077ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.browse-filters button:hover {
    background: #005fcc;
}

.browse-filters label i {
    color: #555;
    font-size: 16px;
}

/* GRID WRAPPER */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* PROFILE CARD GRID */
.profile-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* PROFILE IMAGE */
.browse-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

/* CARD TEXT */
.profile-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.profile-card p {
    margin: 0;
    font-size: 15px;
    color: #555;
}

/* LIKE BUTTON */
.profile-card button {
    padding: 10px;
    background: #ff3366;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: 0.2s ease;
}

.profile-card button:hover {
    background: #e02d5b;
}