EduMentorAI / src /static /css /subject_list.css
ziadtarek12's picture
Application Code
8472119
Raw
History Blame Contribute Delete
8.24 kB
.subjects-hero {
background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
padding: 3rem 0;
position: relative;
overflow: hidden;
color: white;
margin-top: -1rem;
margin-bottom: 3rem;
}
.subjects-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 30% 70%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
animation: subjectFloat 20s ease-in-out infinite;
}
@keyframes subjectFloat {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-10px) rotate(-1deg); }
}
.hero-content {
position: relative;
z-index: 2;
text-align: center;
max-width: 600px;
margin: 0 auto;
}
.hero-greeting {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 900;
margin-bottom: 1rem;
background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-subtitle {
font-size: 1.2rem;
opacity: 0.9;
margin-bottom: 2rem;
}
.btn-hero-action {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50px;
padding: 0.75rem 2rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
margin: 0.5rem;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
.btn-hero-action::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
transition: left 0.5s;
}
.btn-hero-action:hover::before {
left: 100%;
}
.btn-hero-action:hover {
transform: translateY(-3px);
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
background: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
}
/* Subject Cards */
.subject-card {
background: var(--card-bg);
border-radius: 20px;
padding: 2rem;
box-shadow: var(--shadow);
border: 1px solid var(--border-color);
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
animation: subjectCardSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
height: 100%;
}
.subject-card:nth-child(1) { animation-delay: 0.1s; }
.subject-card:nth-child(2) { animation-delay: 0.2s; }
.subject-card:nth-child(3) { animation-delay: 0.3s; }
.subject-card:nth-child(4) { animation-delay: 0.4s; }
.subject-card:nth-child(5) { animation-delay: 0.5s; }
.subject-card:nth-child(6) { animation-delay: 0.6s; }
@keyframes subjectCardSlideIn {
from {
opacity: 0;
transform: translateY(30px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.subject-card:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.subject-icon {
width: 60px;
height: 60px;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin-bottom: 1rem;
position: relative;
overflow: hidden;
background: linear-gradient(135deg, var(--primary-color), #047857); /* Using variable here */
}
.subject-icon::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
border-radius: inherit;
}
.subject-icon i {
position: relative;
z-index: 1;
color: white;
}
/* This is the three-dot action button */
.btn-document-action {
color: var(--text-secondary); /* FIX: Was hardcoded to white */
background: transparent;
border: none;
}
.btn-document-action:hover {
color: var(--text-primary);
}
.subject-title {
font-size: 1.1rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.5rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-clamp: 2;
}
.subject-description {
font-size: 0.875rem;
color: var(--text-secondary);
margin-bottom: 1rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
line-clamp: 3;
}
.subject-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
margin-bottom: 1rem;
}
.stat-item {
text-align: center;
padding: 0.75rem;
background: var(--background-light);
border-radius: 10px;
}
.stat-value {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary-color); /* Kept as brand color */
margin-bottom: 0.25rem;
}
.stat-label {
font-size: 0.75rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.subject-actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
}
.btn-subject-action {
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 600;
font-size: 0.875rem;
text-decoration: none;
text-align: center;
transition: all 0.2s ease;
}
.btn-subject-primary {
background: linear-gradient(135deg, var(--primary-color), #047857); /* Using variable */
color: white;
border: none;
}
.btn-subject-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}
.btn-subject-secondary {
background: var(--background-light);
color: var(--text-secondary);
border: 2px solid var(--border-color);
}
.btn-subject-secondary:hover {
background: var(--border-color);
color: var(--text-primary);
}
.subject-meta {
font-size: 0.75rem;
color: var(--text-secondary);
text-align: center;
}
.dropdown-menu {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 10px;
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
padding: 0.5rem 0;
}
.dropdown-item {
color: var(--text-primary);
padding: 0.5rem 1rem;
font-size: 0.875rem;
transition: all 0.2s ease;
}
.dropdown-item:hover {
background: var(--background-light);
color: var(--text-primary);
}
.dropdown-item i {
width: 16px;
margin-right: 0.5rem;
}
.dropdown-divider {
margin: 0.25rem 0;
border-color: var(--border-color);
}
/* Messages */
.alert {
border-radius: 10px;
border: none;
box-shadow: var(--shadow);
margin-bottom: 2rem;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-secondary);
}
.empty-state-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
opacity: 0.5;
color: var(--primary-color);
}
.empty-state-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-primary);
}
.empty-state-text {
font-size: 1.1rem;
margin-bottom: 2rem;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
/* Responsive */
@media (max-width: 768px) {
.subjects-hero {
padding: 2rem 0;
}
.hero-greeting {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
}
.btn-hero-action {
padding: 0.5rem 1.5rem;
margin: 0.25rem;
}
.subject-card {
padding: 1.5rem;
}
.subject-stats {
grid-template-columns: 1fr;
gap: 0.5rem;
}
}
@media (prefers-color-scheme: dark) {
.btn-hero-action {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50px;
padding: 0.75rem 2rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
margin: 0.5rem;
position: relative;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
}
}
[data-theme="dark"] .subjects-hero {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}