campus-connect / static /css /explore.css
Bhuwan31's picture
Initial deploy
dc76e71
/* ══════════════════════════════════════════════════════
EXPLORE PAGE STYLES
══════════════════════════════════════════════════════ */
/* ── Search Hero ────────────────────────────────────── */
.explore-hero {
background: linear-gradient(135deg, #ff6b35 0%, #e85d04 100%);
border-radius: 16px;
padding: 28px 24px 20px;
margin-bottom: 20px;
}
.explore-search-wrap {
position: relative;
}
.explore-search-icon {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
color: #65676b;
font-size: 16px;
pointer-events: none;
/* shift up a bit when tabs are visible */
}
.explore-search-input {
width: 100%;
padding: 14px 16px 14px 44px;
border: none;
border-radius: 12px;
font-size: 15px;
background: #fff;
color: #1c1e21;
outline: none;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin-bottom: 12px;
}
.explore-search-input::placeholder { color: #bcc0c4; }
.explore-search-icon {
top: 22px;
transform: none;
}
/* ── Filter Tabs ─────────────────────────────────────── */
.explore-filter-tabs {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.filter-tab {
padding: 6px 16px;
border: none;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
background: rgba(255,255,255,0.25);
color: #fff;
transition: background 0.15s, color 0.15s;
}
.filter-tab:hover {
background: rgba(255,255,255,0.4);
}
.filter-tab.active {
background: #fff;
color: #e85d04;
}
/* ── Section header ──────────────────────────────────── */
.explore-section-header {
font-size: 16px;
font-weight: 700;
color: #1c1e21;
margin: 4px 0 14px;
display: flex;
align-items: center;
gap: 8px;
}
.explore-section-header i { color: #e85d04; }
/* ── Trending Grid ───────────────────────────────────── */
.trending-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 14px;
margin-bottom: 24px;
}
.trending-card {
background: #fff;
border-radius: 14px;
overflow: hidden;
box-shadow: 0 1px 4px rgba(0,0,0,0.07);
transition: box-shadow 0.15s, transform 0.15s;
}
.trending-card:hover {
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
transform: translateY(-2px);
}
.trending-img {
width: 100%;
height: 160px;
object-fit: cover;
}
.trending-body {
padding: 14px;
}
.trending-author {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
color: #1c1e21;
text-decoration: none;
margin-bottom: 8px;
}
.trending-author:hover { color: #e85d04; }
.trending-avatar {
width: 30px; height: 30px;
border-radius: 50%;
object-fit: cover;
}
.trending-avatar-init {
width: 30px; height: 30px;
border-radius: 50%;
background: #e85d04;
color: #fff;
font-size: 13px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.trending-content {
font-size: 13px;
color: #3c4043;
line-height: 1.5;
margin-bottom: 10px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.trending-meta {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
color: #65676b;
}
.trending-meta i { color: #e85d04; margin-right: 4px; }
/* ── Suggested Users ─────────────────────────────────── */
.suggested-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #f0f2f5;
}
.suggested-row:last-child { border-bottom: none; }
.suggested-info {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
flex: 1;
min-width: 0;
}
.suggested-avatar {
width: 40px; height: 40px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.suggested-avatar-init {
width: 40px; height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, #e85d04, #ff6b35);
color: #fff;
font-size: 16px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.suggested-name {
font-size: 14px;
font-weight: 600;
color: #1c1e21;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.suggested-dept {
font-size: 12px;
color: #65676b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.suggested-add-btn {
width: 34px; height: 34px;
border-radius: 50%;
border: none;
background: #f0f2f5;
color: #e85d04;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: background 0.15s;
}
.suggested-add-btn:hover { background: #ffe0cc; }
/* ── Search Results ──────────────────────────────────── */
.search-results-wrap { margin-bottom: 16px; }
.results-section { margin-bottom: 20px; }
.results-label {
font-size: 14px;
font-weight: 700;
color: #65676b;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 6px;
}
.results-label i { color: #e85d04; }
/* Users grid */
.result-user-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 10px;
}
.result-user-card {
background: #fff;
border-radius: 12px;
padding: 14px;
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
transition: box-shadow 0.15s;
position: relative;
}
.result-user-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.result-avatar {
width: 44px; height: 44px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.result-avatar-init {
width: 44px; height: 44px;
border-radius: 50%;
background: linear-gradient(135deg, #e85d04, #ff6b35);
color: #fff;
font-size: 18px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.result-user-info { min-width: 0; }
.result-user-name {
font-size: 13px;
font-weight: 600;
color: #1c1e21;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.result-user-dept {
font-size: 12px;
color: #65676b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.result-badge-you {
position: absolute;
top: 8px; right: 8px;
background: #e85d04;
color: #fff;
font-size: 10px;
font-weight: 700;
padding: 2px 6px;
border-radius: 8px;
}
/* Post results */
.result-post-card {
background: #fff;
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 10px;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.result-post-meta {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #65676b;
margin-bottom: 6px;
}
.result-post-author { font-weight: 600; color: #3c4043; }
.result-post-content {
font-size: 14px;
color: #1c1e21;
line-height: 1.5;
}
.result-post-img {
width: 100%;
max-height: 160px;
object-fit: cover;
border-radius: 8px;
margin-top: 10px;
}
/* Announcement results */
.result-ann-card {
display: block;
background: #fff;
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 10px;
text-decoration: none;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
border-left: 4px solid #e85d04;
transition: box-shadow 0.15s;
}
.result-ann-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }
.result-ann-title {
font-size: 14px;
font-weight: 700;
color: #1c1e21;
margin-bottom: 4px;
}
.result-ann-preview {
font-size: 13px;
color: #65676b;
line-height: 1.4;
}
/* Empty state */
.results-empty {
text-align: center;
padding: 40px 20px;
color: #65676b;
}
.results-empty i {
font-size: 40px;
color: #bcc0c4;
margin-bottom: 12px;
display: block;
}
.results-empty p { font-size: 15px; }
/* Loading */
.explore-loading {
color: #65676b;
font-size: 14px;
padding: 20px 0;
display: flex;
align-items: center;
gap: 8px;
}
.explore-empty {
color: #65676b;
font-size: 14px;
padding: 12px 0;
}
/* ── Quick Links ─────────────────────────────────────── */
.quick-links {
display: flex;
flex-direction: column;
gap: 4px;
}
.quick-links a {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 10px;
font-size: 14px;
color: #3c4043;
border-radius: 8px;
text-decoration: none;
transition: background 0.12s;
}
.quick-links a:hover { background: #f0f2f5; color: #e85d04; }
.quick-links a i { color: #65676b; font-size: 14px; }
/* ── Nav search bar ──────────────────────────────────── */
.nav-search-wrap {
position: relative;
flex: 1;
max-width: 360px;
margin: 0 16px;
}
.nav-search-input {
width: 100%;
padding: 8px 14px 8px 36px;
border: none;
border-radius: 20px;
background: #f0f2f5;
font-size: 14px;
color: #1c1e21;
outline: none;
transition: background 0.15s, box-shadow 0.15s;
}
.nav-search-input:focus {
background: #fff;
box-shadow: 0 0 0 2px #e85d04;
}
.nav-search-input::placeholder { color: #bcc0c4; }
.nav-search-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: #65676b;
font-size: 13px;
pointer-events: none;
}
.nav-search-dropdown {
position: absolute;
top: calc(100% + 8px);
left: 0; right: 0;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 28px rgba(0,0,0,0.14);
z-index: 999;
overflow: hidden;
animation: dropIn 0.12s ease;
max-height: 380px;
overflow-y: auto;
}
@keyframes dropIn {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.nav-dd-section-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #65676b;
padding: 10px 14px 4px;
}
.nav-dd-user-row {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 14px;
text-decoration: none;
color: #1c1e21;
transition: background 0.12s;
cursor: pointer;
}
.nav-dd-user-row:hover { background: #f0f2f5; }
.nav-dd-mini-avatar {
width: 34px; height: 34px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.nav-dd-mini-init {
width: 34px; height: 34px;
border-radius: 50%;
background: #e85d04;
color: #fff;
font-size: 14px;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.nav-dd-user-name { font-size: 13px; font-weight: 600; }
.nav-dd-user-dept { font-size: 12px; color: #65676b; }
.nav-dd-post-row {
padding: 9px 14px;
cursor: pointer;
transition: background 0.12s;
border-top: 1px solid #f0f2f5;
}
.nav-dd-post-row:hover { background: #f0f2f5; }
.nav-dd-post-author {
font-size: 11px;
color: #65676b;
margin-bottom: 2px;
}
.nav-dd-post-text {
font-size: 13px;
color: #3c4043;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nav-dd-view-all {
display: block;
text-align: center;
padding: 10px;
font-size: 13px;
font-weight: 600;
color: #e85d04;
border-top: 1px solid #f0f2f5;
text-decoration: none;
transition: background 0.12s;
}
.nav-dd-view-all:hover { background: #fff5f0; }
.nav-dd-empty {
padding: 16px;
text-align: center;
font-size: 13px;
color: #65676b;
}