/* WP Custom Google Search Stylesheet */
.wpsc-theme-container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

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

.wpsc-search-bar {
    display: flex;
    gap: 0.5rem;
    background: #0f172a;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.wpsc-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    padding: 10px 16px;
    font-size: 1rem;
    outline: none;
}

.wpsc-search-input::placeholder {
    color: #94a3b8;
}

.wpsc-search-btn {
    background: #7c3aed;
    color: #020617;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.wpsc-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wpsc-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.wpsc-filter-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.wpsc-filter-select:focus {
    border-color: #7c3aed;
}

.wpsc-results-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.wpsc-results-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.wpsc-meta-info {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.wpsc-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpsc-result-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wpsc-result-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.wpsc-card-thumb {
    width: 140px;
    height: 95px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.wpsc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpsc-card-body {
    flex: 1;
}

.wpsc-card-url {
    font-size: 0.75rem;
    color: #7c3aed;
    font-family: monospace;
    display: block;
    margin-bottom: 0.25rem;
}

.wpsc-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.wpsc-card-title a {
    color: #0284c7;
    text-decoration: none;
}

.wpsc-card-title a:hover {
    text-decoration: underline;
}

.wpsc-card-snippet {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.wpsc-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.wpsc-page-link {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.wpsc-page-link.current {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
    font-weight: 700;
}

@media (max-width: 640px) {
    .wpsc-result-card {
        flex-direction: column;
    }
    .wpsc-card-thumb {
        width: 100%;
        height: 160px;
    }
}
