PIOE / frontend /styles.css
B1acB1rd
PIOE 2.0 ready for deploymnet
4d92cd5
/* PIOE - Personal Intelligence & Opportunity Engine
Modern Dark Theme with Glassmorphism */
:root {
/* Color Palette */
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-tertiary: #1a1a24;
--bg-card: rgba(26, 26, 36, 0.8);
--bg-glass: rgba(255, 255, 255, 0.03);
--accent-primary: #6366f1;
--accent-secondary: #8b5cf6;
--accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
--text-primary: #ffffff;
--text-secondary: #a1a1aa;
--text-muted: #71717a;
--border-color: rgba(255, 255, 255, 0.08);
--border-hover: rgba(255, 255, 255, 0.15);
/* Status Colors */
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
--info: #3b82f6;
/* Category Colors */
--cat-hackathon: #f43f5e;
--cat-internship: #3b82f6;
--cat-scholarship: #22c55e;
--cat-research: #8b5cf6;
--cat-job: #f59e0b;
--cat-grant: #14b8a6;
--cat-opensource: #ec4899;
/* Spacing */
--sidebar-width: 260px;
--header-height: 70px;
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
/* App Layout */
.app {
display: flex;
min-height: 100vh;
}
/* Sidebar */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
padding: 24px 16px;
position: fixed;
height: 100vh;
overflow-y: auto;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
margin-bottom: 32px;
}
.logo-icon {
font-size: 28px;
filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}
.logo-text {
font-size: 24px;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-section {
margin-bottom: 24px;
}
.nav-label {
display: block;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
padding: 0 12px;
margin-bottom: 8px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: var(--radius-sm);
color: var(--text-secondary);
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
cursor: pointer;
}
.nav-item:hover {
background: var(--bg-glass);
color: var(--text-primary);
}
.nav-item.active {
background: var(--accent-gradient);
color: white;
}
.nav-item .icon {
font-size: 16px;
}
/* Main Content */
.main-content {
flex: 1;
margin-left: var(--sidebar-width);
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.header {
height: var(--header-height);
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 32px;
position: sticky;
top: 0;
z-index: 50;
backdrop-filter: blur(12px);
}
.header-title h1 {
font-size: 20px;
font-weight: 600;
}
.subtitle {
font-size: 13px;
color: var(--text-muted);
}
.header-actions {
display: flex;
gap: 12px;
}
.filter-select {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 8px 16px;
border-radius: var(--radius-sm);
font-size: 13px;
cursor: pointer;
transition: border-color 0.2s;
}
.filter-select:hover {
border-color: var(--border-hover);
}
.filter-select:focus {
outline: none;
border-color: var(--accent-primary);
}
/* Content Area */
.content-area {
flex: 1;
padding: 24px 32px;
overflow-y: auto;
}
/* Stats Banner */
.stats-banner {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 20px;
display: flex;
flex-direction: column;
gap: 4px;
backdrop-filter: blur(8px);
}
.stat-card.highlight {
background: var(--accent-gradient);
border: none;
}
.stat-value {
font-size: 28px;
font-weight: 700;
}
.stat-label {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stat-card.highlight .stat-label {
color: rgba(255, 255, 255, 0.8);
}
/* Opportunity Feed */
.feed {
display: flex;
flex-direction: column;
gap: 16px;
}
.loading {
text-align: center;
padding: 60px;
color: var(--text-muted);
}
/* Opportunity Card */
.opportunity-card {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 20px;
transition: all 0.2s ease;
cursor: pointer;
backdrop-filter: blur(8px);
}
.opportunity-card:hover {
border-color: var(--border-hover);
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 12px;
}
.card-category {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.card-category.hackathon {
background: rgba(244, 63, 94, 0.2);
color: var(--cat-hackathon);
}
.card-category.internship {
background: rgba(59, 130, 246, 0.2);
color: var(--cat-internship);
}
.card-category.scholarship {
background: rgba(34, 197, 94, 0.2);
color: var(--cat-scholarship);
}
.card-category.research {
background: rgba(139, 92, 246, 0.2);
color: var(--cat-research);
}
.card-category.job {
background: rgba(245, 158, 11, 0.2);
color: var(--cat-job);
}
.card-category.grant {
background: rgba(20, 184, 166, 0.2);
color: var(--cat-grant);
}
.card-category.open_source {
background: rgba(236, 72, 153, 0.2);
color: var(--cat-opensource);
}
.card-category.other {
background: rgba(161, 161, 170, 0.2);
color: var(--text-secondary);
}
.card-score {
display: flex;
align-items: center;
gap: 4px;
font-size: 13px;
color: var(--text-secondary);
}
.score-bar {
width: 60px;
height: 6px;
background: var(--bg-tertiary);
border-radius: 3px;
overflow: hidden;
}
.score-fill {
height: 100%;
background: var(--accent-gradient);
border-radius: 3px;
transition: width 0.3s ease;
}
.card-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
line-height: 1.4;
}
.card-meta {
display: flex;
gap: 16px;
font-size: 12px;
color: var(--text-muted);
margin-bottom: 12px;
}
.card-meta span {
display: flex;
align-items: center;
gap: 4px;
}
.card-summary {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border-color);
}
.deadline-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: var(--radius-sm);
font-size: 12px;
font-weight: 500;
}
.deadline-badge.urgent {
background: rgba(239, 68, 68, 0.2);
color: var(--danger);
}
.deadline-badge.soon {
background: rgba(245, 158, 11, 0.2);
color: var(--warning);
}
.deadline-badge.ok {
background: rgba(34, 197, 94, 0.2);
color: var(--success);
}
.card-actions {
display: flex;
gap: 8px;
}
.action-btn {
padding: 6px 12px;
border-radius: var(--radius-sm);
font-size: 12px;
font-weight: 500;
border: none;
cursor: pointer;
transition: all 0.2s;
}
.action-btn.primary {
background: var(--accent-gradient);
color: white;
}
.action-btn.primary:hover {
transform: scale(1.05);
}
.action-btn.secondary {
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-color);
}
.action-btn.secondary:hover {
border-color: var(--border-hover);
color: var(--text-primary);
}
/* Digest View */
.digest-view {
background: var(--bg-card);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
padding: 32px;
backdrop-filter: blur(8px);
}
.digest-content {
font-size: 14px;
line-height: 1.8;
}
.digest-content h1 {
font-size: 24px;
margin-bottom: 16px;
}
.digest-content h2 {
font-size: 18px;
margin: 24px 0 12px;
}
.digest-content h3 {
font-size: 16px;
margin: 20px 0 8px;
}
.digest-content p {
margin-bottom: 12px;
color: var(--text-secondary);
}
.digest-content blockquote {
border-left: 3px solid var(--accent-primary);
padding-left: 16px;
color: var(--text-secondary);
margin: 12px 0;
}
.digest-content a {
color: var(--accent-primary);
}
.digest-content hr {
border: none;
border-top: 1px solid var(--border-color);
margin: 24px 0;
}
.digest-content table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
}
.digest-content th,
.digest-content td {
padding: 8px 12px;
border: 1px solid var(--border-color);
text-align: left;
}
.digest-content th {
background: var(--bg-tertiary);
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
}
.modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.modal-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
}
.modal-content {
position: relative;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
width: 90%;
max-width: 700px;
max-height: 80vh;
overflow-y: auto;
padding: 32px;
z-index: 1001;
}
.modal-close {
position: absolute;
top: 16px;
right: 16px;
background: var(--bg-tertiary);
border: none;
color: var(--text-secondary);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.modal-close:hover {
background: var(--danger);
color: white;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
background: var(--bg-tertiary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-primary);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.opportunity-card {
animation: fadeIn 0.3s ease forwards;
}
.opportunity-card:nth-child(1) {
animation-delay: 0.05s;
}
.opportunity-card:nth-child(2) {
animation-delay: 0.1s;
}
.opportunity-card:nth-child(3) {
animation-delay: 0.15s;
}
.opportunity-card:nth-child(4) {
animation-delay: 0.2s;
}
.opportunity-card:nth-child(5) {
animation-delay: 0.25s;
}
/* Responsive */
@media (max-width: 1024px) {
.sidebar {
width: 200px;
}
.main-content {
margin-left: 200px;
}
.stats-banner {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.sidebar {
display: none;
}
.main-content {
margin-left: 0;
}
.header {
flex-direction: column;
height: auto;
padding: 16px;
gap: 12px;
}
.content-area {
padding: 16px;
}
.stats-banner {
grid-template-columns: 1fr 1fr;
}
}
/* PIOE 2.0: New Category Colors */
.card-category.micro_grant {
background: rgba(16, 185, 129, 0.2);
color: #10b981;
}
.card-category.ecosystem_grant {
background: rgba(245, 158, 11, 0.2);
color: #f59e0b;
}
.card-category.innovation_fund {
background: rgba(59, 130, 246, 0.2);
color: #3b82f6;
}
.card-category.partnership {
background: rgba(139, 92, 246, 0.2);
color: #8b5cf6;
}
.card-category.collaboration {
background: rgba(236, 72, 153, 0.2);
color: #ec4899;
}
.card-category.pitch_event {
background: rgba(244, 63, 94, 0.2);
color: #f43f5e;
}
.card-category.demo_day {
background: rgba(99, 102, 241, 0.2);
color: #6366f1;
}
.card-category.bounty {
background: rgba(34, 197, 94, 0.2);
color: #22c55e;
}
.card-category.ambassador {
background: rgba(234, 179, 8, 0.2);
color: #eab308;
}
.card-category.pre_grant_signal {
background: rgba(168, 85, 247, 0.2);
color: #a855f7;
}
.card-category.pre_hiring_signal {
background: rgba(6, 182, 212, 0.2);
color: #06b6d4;
}
/* PIOE 2.0: Chat Panel */
.chat-fab {
position: fixed;
bottom: 24px;
right: 24px;
width: 60px;
height: 60px;
border-radius: 50%;
background: var(--accent-gradient);
border: none;
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
font-size: 28px;
cursor: pointer;
z-index: 999;
transition: all 0.3s ease;
}
.chat-fab:hover {
transform: scale(1.1);
box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}
.chat-panel {
position: fixed;
bottom: 100px;
right: 24px;
width: 380px;
height: 500px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
display: none;
flex-direction: column;
z-index: 1000;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.chat-panel.active {
display: flex;
}
.chat-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
background: var(--accent-gradient);
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
font-weight: 600;
}
.chat-close {
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
opacity: 0.8;
transition: opacity 0.2s;
}
.chat-close:hover {
opacity: 1;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
.chat-message {
padding: 12px 16px;
border-radius: var(--radius-md);
max-width: 90%;
animation: fadeIn 0.3s ease;
}
.chat-message.user {
background: var(--accent-gradient);
color: white;
align-self: flex-end;
}
.chat-message.bot {
background: var(--bg-tertiary);
color: var(--text-secondary);
align-self: flex-start;
}
.chat-message p {
margin: 0;
font-size: 14px;
line-height: 1.5;
}
.chat-message .opp-link {
display: block;
background: var(--bg-card);
padding: 8px 12px;
border-radius: var(--radius-sm);
margin-top: 8px;
font-size: 12px;
color: var(--accent-primary);
text-decoration: none;
border: 1px solid var(--border-color);
transition: border-color 0.2s;
}
.chat-message .opp-link:hover {
border-color: var(--accent-primary);
}
.chat-input-area {
display: flex;
gap: 8px;
padding: 16px;
border-top: 1px solid var(--border-color);
}
.chat-input-area input {
flex: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 12px 16px;
border-radius: var(--radius-sm);
font-size: 14px;
}
.chat-input-area input:focus {
outline: none;
border-color: var(--accent-primary);
}
.chat-input-area button {
background: var(--accent-gradient);
border: none;
color: white;
padding: 12px 20px;
border-radius: var(--radius-sm);
font-weight: 500;
cursor: pointer;
transition: transform 0.2s;
}
.chat-input-area button:hover {
transform: scale(1.05);
}
@media (max-width: 480px) {
.chat-panel {
width: calc(100% - 32px);
right: 16px;
bottom: 90px;
height: 60vh;
}
}