/* Navbar Styles */
html {
      scroll-behavior: smooth;
    }
.navbar {
    max-width: 100%;
    margin: 2rem auto;
    margin-left: 23rem;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; 
}

header {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
}

.nav-links {
    font-size: 1.2rem;
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.1s ease;
}

.nav-links a:hover {
    color: #4285f4;
}

#signup-btn {
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    width: 8vw;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#signup-btn:hover {
    background-color: #3367d6;
    transform: scale(1.05);
}

.logo {
    width: 200px;
    height: 50px;   
    overflow: hidden;
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    height: 40vh;
    text-align: center;
    background: #EEAECA;
    background: radial-gradient(circle, rgba(238, 174, 202, 0.25) 0%, rgba(148, 187, 233, 0.25) 100%);
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #4285f4;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.hero-actions .button {
    margin: 0 10px;
}

/* Features Section */
.features-section {
    background-color: #f5f5f5;
    height: 60vh;
    padding: 40px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: #4285f4;
    color: white;
    border-radius: 4px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-primary {
    background-color: #4285f4;
}

.feature-icon-accent {
    background-color: #00bcd4;
}

.feature-icon-success {
    background-color: #4caf50;
}

.feature h3 {
    font-weight: bold;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #666;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
    margin: 3rem;
    border-radius: 10px;
}

.btn-primary:hover {
    background-color: #3367d6;
}

.btn-outline {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-ghost {
    background-color: transparent;
    color: #666;
}

.btn-ghost:hover {
    background-color: #f5f5f5;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

/* Badge Styles */
.badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.badge-secondary {
    font-size: 16px;
    background-color: #f5f5f5;
    color: #333;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid #ddd;
}

/* Programming Language Badge Colors */
.badge-javascript {
    background-color: #f7df1e;
    color: #333;
}

.badge-typescript {
    background-color: #3178c6;
    color: white;
}

.badge-python {
    background-color: #3776ab;
    color: white;
}

.badge-react {
    background-color: #61dafb;
    color: #333;
}

.badge-vue {
    background-color: #4fc08d;
    color: white;
}

.badge-angular {
    background-color: #dd0031;
    color: white;
}

.badge-css {
    background-color: #1572b6;
    color: white;
}

.badge-nodejs {
    background-color: #339933;
    color: white;
}

.badge-docker {
    background-color: #2496ed;
    color: white;
}

.badge-sql {
    background-color: #336791;
    color: white;
}

/* Card Styles */
.card {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding-bottom: 10px;
}

.card-content {
    padding-top: 10px;
}

.card .card-header {
    color: #333;
}

.card .card-content {
    color: #333;
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4285f4;
    color: white;
    text-align: center;
    line-height: 32px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

/* Filter Bar */
.filter-bar {
    margin-top: 4rem auto;
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

#filter-toggle {
    margin-right: 5rem;
    background-color: #4285f4;
    color: white;
    border-radius: 40px;
    height: 55px;
}

.sticky-top {
    position: sticky;
    top: 0;
}

.filter-main {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Search Input */
.search-input {
    max-width: 70vw;
    width: 100%;
    padding: 10px;
    padding-left: 40px;
    border: 1px solid #ddd;
    font-size: 14px;
}

#search-input {
    margin-top: 11px;
    padding-left: 30px;
    border-radius: 5px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.search-input:focus {
    border-color: #4285f4;
    outline: none;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #666;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.filters-panel {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    color: #666;
    margin: 0;
}

.nuggets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Loading Spinner */
.loading-placeholder {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.no-results p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-logo h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link.github:hover {
    background: rgba(24, 23, 23, 0.2);
    border-color: #24292e;
    color: white;
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    color: white;
}

.social-link i {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 40px 0 30px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-heart {
    margin-top: 10px;
}

.footer-heart p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.toast {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toast-success {
    border-left: 4px solid #4caf50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.toast-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Card Button Styles */
.card .btn-ghost {
    color: #4285f4;
    background-color: white;
    border: 1px solid #ddd;
}

.card .btn-ghost:hover {
    background-color: #f5f5f5;
}

.card .like-btn {
    color: #f44336;
}

.card .copy-btn {
    color: #00bcd4;
}

.card .expand-btn {
    color: #4285f4;
}

/* Code Blocks in Cards */
.card .content-area pre {
    color: #333;
    background-color: #f8f8f8;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    overflow-x: auto;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .filter-main {
        flex-direction: column;
    }

    .nuggets-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        margin-left: 0;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        margin-right: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}