/* ML Projects Public Page Styles */

/* Hero Section */
.ml-projects-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.ml-projects-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.ml-projects-hero h1 i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.ml-projects-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Projects Section */
.ml-projects-section {
    padding: 4rem 0;
    background: var(--light-color);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-form select {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    min-width: 250px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-badge i {
    font-size: 0.7rem;
}

.project-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.student-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-description p {
    margin: 0;
}

/* Metrics Preview */
.project-metrics-preview {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

.metric-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.metric-preview i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* Project Actions */
.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-primary {
    flex: 1;
    text-align: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-github {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1rem;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-github:hover {
    background: var(--dark-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ml-projects-hero {
        padding: 4rem 0 3rem;
    }
    
    .ml-projects-hero h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form select {
        width: 100%;
        min-width: auto;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn-github,
    .btn-demo {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ml-projects-hero h1 {
        font-size: 1.75rem;
    }
    
    .ml-projects-hero p {
        font-size: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

