* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background-color: #fff;
    color: #000;
}

/* Styles pour le mode sombre */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.container {
    width: 100%;
    padding: 20px;
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15vh;
    position: relative;
}

.logo-text {
    font-size: clamp(40px, 8vw, 72px);
    margin-bottom: 30px;
    letter-spacing: -2px;
    text-align: center;
}

.open-source {
    color: #4285f4;
    font-weight: 400;
}

.hub {
    color: #ea4335;
    font-weight: 500;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(584px, 90%);
    height: 46px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease-in-out;
    background-color: #fff;
}

.search-box:hover,
.search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.search-icon {
    color: #9aa0a6;
    font-size: 20px;
    padding: 0 8px;
}

#searchInput {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    margin: 0 8px;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

#searchInput:focus {
    background-color: #fff;
}

.search-results {
    max-width: min(652px, 95%);
    margin: 20px auto;
}

.project-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #1e1e1e;
    border: 1px solid #444;
}

.project-card h2 {
    color: #1a73e8;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 8px;
    cursor: pointer;
    word-break: break-word;
}

.project-card h2:hover {
    text-decoration: underline;
}

.project-card p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.58;
    word-break: break-word;
}

.project-card a {
    color: #202124;
    text-decoration: none;
    font-size: 14px;
}

.url {
    color: #006621;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
    word-break: break-all;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    color: #b0b0b0;
    font-size: 12px;
}

.loading, .error, .no-results {
    text-align: center;
    padding: 20px;
    color: #e0e0e0;
}

.error {
    color: #d93025;
    background-color: #fce8e6;
    border-radius: 4px;
}

.load-more {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.load-more:hover {
    background-color: #f1f3f4;
}

/* Styles pour la pagination */
.results-info {
    color: #70757a;
    font-size: 14px;
    margin: 20px 0;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.pagination-button {
    padding: 8px 16px;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    background: #333;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-button:hover:not(:disabled) {
    background-color: #444;
    border-color: #dadce0;
}

.pagination-button.active {
    background-color: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

.pagination-button:disabled {
    color: #70757a;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.pagination-ellipsis {
    color: #70757a;
    padding: 0 4px;
}

/* Media Queries */
@media (max-width: 600px) {
    .search-section {
        margin-top: 10vh;
    }

    .project-stats {
        gap: 8px;
        font-size: 11px;
    }

    .project-card {
        padding: 15px;
    }

    .project-card h2 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .search-box {
        height: 40px;
    }

    #searchInput {
        font-size: 14px;
    }

    .search-icon {
        font-size: 18px;
    }

    .project-stats {
        flex-direction: column;
        gap: 4px;
    }
}

/* Media Queries pour la pagination */
@media (max-width: 600px) {
    .pagination {
        gap: 4px;
    }

    .pagination-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

@media (max-width: 400px) {
    .pagination-button {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 32px;
    }
}

.loading small {
    display: block;
    font-size: 12px;
    color: #70757a;
    margin-top: 4px;
}

/* Ajouter ces styles pour l'aide à la recherche */
.help-icon {
    color: #9aa0a6;
    font-size: 20px;
    padding: 0 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.help-icon:hover {
    color: #1a73e8;
}

.search-help {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    z-index: 1000;
    color: #ffffff;
}

.search-help.visible {
    display: block;
}

.help-content h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 16px;
}

.operators-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.operators-list li {
    margin: 8px 0;
    color: #e0e0e0;
    font-size: 14px;
}

.operators-list code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1a73e8;
    font-family: monospace;
    margin-right: 4px;
}

.example {
    padding: 10px;
    background: #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 13px;
    margin-top: 10px;
} 