:root {
    --ph-black: #000000;
    --ph-white: #ffffff;
    --ph-gray-100: #f5f5f5;
    --ph-gray-200: #e5e5e5;
    --ph-gray-300: #cccccc;
    --ph-gray-500: #999999;
    --ph-gray-700: #666666;
    --ph-gray-900: #111111;
    --ph-font: 'Inter', system-ui, -apple-system, sans-serif;
    --ph-border-radius: 12px;
}

body {
    font-family: var(--ph-font);
    background-color: var(--ph-gray-100);
    color: var(--ph-gray-900);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--ph-black);
    letter-spacing: -0.02em;
}

a {
    color: var(--ph-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ph-gray-700);
}

/* Utilities */
.text-muted {
    color: var(--ph-gray-500) !important;
}

.bg-light-gray {
    background-color: var(--ph-gray-100);
}

.border-gray {
    border: 1px solid var(--ph-gray-200);
}

/* Buttons */
.btn-primary {
    background-color: var(--ph-black);
    border-color: var(--ph-black);
    color: var(--ph-white);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--ph-gray-900) !important;
    border-color: var(--ph-gray-900) !important;
    color: var(--ph-white) !important;
}

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--ph-black);
    color: var(--ph-black);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: var(--ph-gray-100);
    color: var(--ph-black);
}

.btn-light {
    background-color: var(--ph-gray-100);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--ph-gray-200);
}

/* Navbar */
#navbar-container {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--ph-white);
}

.navbar {
    background-color: var(--ph-white);
    border-bottom: 1px solid var(--ph-gray-200);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--ph-black) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--ph-gray-700) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ph-black) !important;
}

.nav-icon {
    font-size: 1.25rem;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--ph-gray-200);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ph-black);
    outline: none;
}

.search-bar-nav {
    width: 100%;
    max-width: 800px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ph-gray-500);
}

.search-input {
    padding-left: 2.2rem;
    background-color: var(--ph-gray-100);
    border: none;
}

/* Carousel Custom Indicators */
.custom-indicators {
    bottom: -25px !important;
    /* Position below the carousel */
    margin-bottom: 0 !important;
}

.carousel-indicators.custom-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    /* Make them round */
    background-color: var(--ph-gray-300) !important;
    /* Inactive color */
    border: none !important;
    margin: 0 5px !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators.custom-indicators .active {
    background-color: var(--ph-black) !important;
    /* Active color */
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

.carousel-image {
    aspect-ratio: 8 / 3;
    object-fit: cover;
    width: 100%;
}

.search-input:focus {
    background-color: var(--ph-gray-100);
    box-shadow: none;
}

/* Cards (Posts/Projects) */
.card {
    background-color: var(--ph-white);
    border: 1px solid var(--ph-gray-200);
    border-radius: var(--ph-border-radius);
    box-shadow: none;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: transparent;
    border-bottom: none;
    padding: 1.25rem 1.25rem 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--ph-gray-100);
    padding: 1rem 1.25rem;
}

/* Images & Avatars */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--ph-gray-200);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
}

.project-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.project-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.project-gallery-img:hover {
    opacity: 0.9;
}

/* Badges / Tags */
.badge-tag {
    background-color: var(--ph-gray-100);
    color: var(--ph-gray-700);
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.badge-tag:hover {
    background-color: var(--ph-gray-200);
    color: var(--ph-black);
}

.category-badge {
    background-color: var(--ph-black);
    color: var(--ph-white);
}

/* Interactions */
.interaction-btn {
    background: none;
    border: none;
    color: var(--ph-gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.interaction-btn:hover {
    background-color: var(--ph-gray-100);
    color: var(--ph-black);
}

.interaction-btn.active {
    color: var(--ph-black);
    font-weight: 600;
}

.interaction-btn.active i {
    color: var(--ph-black);
}

/* Comments */
.comment-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-content {
    background-color: var(--ph-gray-100);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    flex: 1;
}

.reply-thread {
    margin-left: 3rem;
    border-left: 2px solid var(--ph-gray-200);
    padding-left: 1rem;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 90px;
    /* Below navbar */
}

.trending-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ph-gray-100);
}

.trending-item:last-child {
    border-bottom: none;
}

/* Explore Grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.explore-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Profile */
.profile-cover {
    height: 250px;
    background-color: var(--ph-gray-200);
    border-radius: var(--ph-border-radius);
    object-fit: cover;
    width: 100%;
}

.profile-avatar-container {
    margin-top: -64px;
    margin-left: 2rem;
    position: relative;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border: 4px solid var(--ph-white);
    background-color: var(--ph-white);
}

/* Notifications */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--ph-gray-100);
    align-items: flex-start;
}

.notification-item.unread {
    background-color: #fcfcfc;
}

/* Messages */
.message-layout {
    height: calc(100vh - 80px);
}

.conversation-list {
    border-right: 1px solid var(--ph-gray-200);
    height: 100%;
    overflow-y: auto;
    background: var(--ph-white);
}

.chat-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ph-white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--ph-gray-100);
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.message-bubble.received {
    background-color: var(--ph-white);
    border: 1px solid var(--ph-gray-200);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-bubble.sent {
    background-color: var(--ph-black);
    color: var(--ph-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Dashboard Table */
.table th {
    font-weight: 600;
    color: var(--ph-gray-700);
    border-bottom: 2px solid var(--ph-gray-200);
}

/* Layout Adjustments */
.main-feed-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}

@media (max-width: 991.98px) {

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    body {
        padding-bottom: 70px;
    }

    .mobile-bottom-nav {
        z-index: 1040;
    }
}
/* Mobile Tabs Custom */
.mobile-tabs-custom {
    gap: 10px;
}

.mobile-tabs-custom .nav-link {
    background-color: transparent !important;
    color: #212529 !important;
    border: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.mobile-tabs-custom .nav-link:hover {
    background-color: #f8f9fa !important;
}

.mobile-tabs-custom .nav-link.active {
    background-color: #212529 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Slow down carousel transition */
.carousel-item {
    transition: transform 1.0s ease-in-out !important;
}
