/* Add these styles to your existing CSS */
.loading, .error, .no-projects, .no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
}

.error {
    color: #e74c3c;
}

.loading {
    color: var(--primary-color);
}

:root {
    --primary-color: #8860D0;
    --secondary-color: #5680E9;
    --background-color: #F5F6FA;
    --text-color: #2C3E50;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.join-btn, .connect-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.join-btn {
    background: #e74c3c;
    color: white;
    border: none;
}

.connect-btn {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.join-btn:hover, .connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Updated button styles */
.join-btn, .connect-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.join-btn {
    background: #e74c3c;
    color: white;
    border: none;
}

.connect-btn {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.join-btn:hover, .connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add responsive styles */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        gap: 0.5rem;
    }
    
    .join-btn, .connect-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Add margin to main content to account for fixed header */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-logo {
    width: 160px;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.signup-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
}

.input-icon {
    padding: 0 1rem;
    color: #666;
}

#searchInput {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
}

#searchInput:focus {
    outline: none;
}

.category-filter {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    background: white;
    min-width: 150px;
}

/* Projects Grid */
.projects-section {
    padding: 4rem 0;
}

#projectGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 420px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 240px;
    background-size: contain;
    background-position: center;
    position: relative;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 240px);
    justify-content: space-between;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-images {
    position: relative;
    width: 55px;
    height: 40px;
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
}

.author-avatar-offset {
    position: absolute;
    left: 20px;
    top: 0;
}

.author span {
    color: #666;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.connect {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Update Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal-content {
    background: white;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000;
}

.markdown-content {
    line-height: 1.6;
}

.markdown-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.markdown-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.markdown-content p {
    margin-bottom: 1rem;
}

.markdown-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .signup-box {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Add responsive styles for filter buttons */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Add no results styling */
.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    grid-column: 1 / -1;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
}

/* Add these styles */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-top: 80px;
}

.hero-logo {
    width: 80px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
}

.search-section {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
}

.search-icon {
    margin-right: 0.5rem;
    color: #666;
}

#searchInput {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.category-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    min-width: 150px;
}

/* Update existing styles */
.filter-buttons {
    margin: 2rem 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid #8860D0;
    color: #8860D0;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #8860D0;
    color: white;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--primary-color);
}

/* Add these new styles */
.purple-theme {
    background-color: #4A148C;
    color: white;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.1rem;
    margin: 0 auto 3rem;
    display: block;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.featured-section {
    width: 100vw;
    margin: 3rem 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 0;
}

.featured-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-tools-container {
    display: flex;
    gap: 20px;
    transition: transform 0.15s ease-out;
    will-change: transform;
    padding: 2rem 0;
}

.featured-tool-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.15s ease-out;
    text-decoration: none;
    color: white;
    opacity: 0.5;
    transform: scale(0.85);
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-tool-card.active {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.tool-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Tool card specific styles */
.featured-tool-card .tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-tool-card .tool-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px;
}

.featured-tool-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.featured-tool-card .description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-tool-card .category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: white;
    display: block;
    cursor: pointer;
}

.tool-card:hover,
.featured-tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.tool-content {
    padding: 1.5rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

/* Add loading state */
.tool-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-icon-wrapper.loading::before {
    opacity: 1;
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.tool-card:hover .category-tag,
.featured-tool-card:hover .category-tag {
    background: rgba(255, 255, 255, 0.2);
}
.tool-link {
    display: inline-flex;
    align-items: center;
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-link {
    opacity: 1;
}
