/**
 * WordPress Contributors Gallery Search Styles
 */

.wpcg-search-container {
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wpcg-search-form {
    margin-bottom: 2rem;
}

.wpcg-search-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.wpcg-search-input-wrapper .wpcg-search-input {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    color: #2d3748;
    transition: all 0.2s ease;
}

.wpcg-search-input-wrapper .wpcg-search-input:hover,
.wpcg-search-input-wrapper .wpcg-search-input:focus {
    border-color: #abc6f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
}

.wpcg-search-input-wrapper .wpcg-search-button {
    padding: 0.75rem 2rem;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wpcg-search-input-wrapper .wpcg-search-button:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wpcg-search-results {
    margin-top: 2rem;
    width: 100%;
}

/**
 * WordPress Contributors Gallery Search Styles
 */

 .wpcg-search-container .wpcg-contributor-search-results {
    margin: 2rem auto;
    padding: 2rem;
}

.wpcg-contributor-search-results .wpcg-contributor-search-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.wpcg-contributor-search-results .wpcg-contributor-search-summary {
    text-align: center;
}

.wpcg-contributor-search-results .wpcg-contributor-count {
    margin: 0;
    font-size: 1.5rem;
    color: #1d2327;
    font-weight: 600;
}

.wpcg-contributor-search-results .wpcg-contributor-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 2rem;
    align-items: start;
}

.wpcg-contributor-search-results .wpcg-contributor-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.wpcg-contributor-search-results .wpcg-contributor-profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.wpcg-contributor-search-results .wpcg-contributor-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.wpcg-contributor-search-results .wpcg-contributor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.wpcg-contributor-search-results .wpcg-contributor-profile-card .wpcg-contributor-avatar-container .wpcg-contributor-profile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.wpcg-contributor-search-results .wpcg-contributor-profile-link:hover {
    background-color: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.wpcg-contributor-search-results .wpcg-contributor-details {
    text-align: center;
}

.wpcg-contributor-search-results .wpcg-contributor-name {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #1d2327;
    font-weight: 600;
}

.wpcg-contributor-search-results .wpcg-contributor-meta-info {
    display: grid;
    gap: 0.75rem;
}

.wpcg-contributor-search-results .wpcg-contributor-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f0f0f1;
    border-radius: 4px;
}

.wpcg-contributor-search-results .wpcg-meta-label {
    color: #646970;
    font-weight: 500;
}

.wpcg-contributor-search-results .wpcg-meta-value {
    color: #1d2327;
    font-weight: 600;
}

.wpcg-contributor-search-results .wpcg-contributor-contributions-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wpcg-contributor-search-results .wpcg-contribution-list {
    background: #f0f0f1;
    border-radius: 8px;
    padding: 1.5rem;
}

.wpcg-contributor-search-results .wpcg-contribution-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #1d2327;
    font-weight: 600;
}

.wpcg-contributor-search-results .wpcg-version-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wpcg-contributor-search-results .wpcg-version-item {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2271b1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpcg-contributor-search-results .wpcg-version-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .wpcg-contributor-search-results .wpcg-contributor-content-wrapper {
        grid-template-columns: 1fr;
    }

    .wpcg-contributor-search-results {
        padding: 1rem;
    }

    .wpcg-contributor-search-results .wpcg-contributor-count {
        font-size: 1.2rem;
    }

    .wpcg-contributor-search-results .wpcg-contributor-profile-card {
        margin-bottom: 1.5rem;
    }
}

.wpcg-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.wpcg-loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.wpcg-error {
    color: #d63638;
    padding: 1rem;
    background: #fef7f7;
    border-left: 4px solid #d63638;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

@media screen and (max-width: 600px) {
    .wpcg-search-input-wrapper {
        flex-direction: column;
    }

    .wpcg-search-button {
        width: 100%;
        text-align: center;
    }
}
