body.cio-search-page {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
}

.search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.search-header .search-query {
    color: #03cbff;
    font-weight: bold;
}

.search-results-count {
    font-size: 1.1rem;
    color: #03cbff;
    margin-top: 10px;
}

.filters-section {
    background-color: #0a0a0a;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #1a1a1a;
}

.filters-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #03cbff;
    font-weight: bold;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.filter-group label {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    padding: 12px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303cbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.filter-group select:hover,
.filter-group input:hover,
.filter-group select:focus,
.filter-group input:focus {
    border-color: #03cbff;
    background-color: #0f0f0f;
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.search-container .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.search-container .btn-primary {
    background-color: #03cbff;
    color: #000;
}

.search-container .btn-primary:hover {
    background-color: #00a8cc;
    transform: translateY(-2px);
}

.search-container .btn-secondary {
    background-color: #1a1a1a;
    color: #03cbff;
    border: 1px solid #03cbff;
}

.search-container .btn-secondary:hover {
    background-color: #03cbff;
    color: #000;
}

.results-section {
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.result-card {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #03cbff, #fff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.result-card:hover {
    border-color: #03cbff;
    background-color: #111;
    transform: translateY(-5px);
}

.result-card:hover::before {
    transform: scaleX(1);
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-type {
    display: inline-block;
    padding: 6px 12px;
    background-color: #03cbff;
    color: #000;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.result-date {
    font-size: 0.9rem;
    color: #888;
}

.result-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.4;
    flex-grow: 1;
}

.result-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #03cbff;
}

.result-excerpt {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.result-author {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.result-link {
    display: inline-block;
    color: #03cbff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.result-link:hover {
    color: #00ff00;
    margin-left: 5px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #03cbff;
    background-color: #03cbff;
    color: #000;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-current {
    padding: 10px 15px;
    border: 1px solid #03cbff;
    border-radius: 4px;
    background-color: #03cbff;
    color: #000;
    font-weight: 600;
    display: inline-block;
}

.pagination-dots {
    padding: 10px 5px;
    display: inline-block;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #03cbff;
    grid-column: 1 / -1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #03cbff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cio-search-spin 0.8s linear infinite;
}

@keyframes cio-search-spin {
    to { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

.search-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

.search-empty-state h2,
.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.error-message {
    background-color: #ff4444;
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .search-container {
        padding: 20px 15px;
    }

    .search-header h1 {
        font-size: 1.8rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        font-size: 16px;
    }

    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .search-container .btn {
        width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        padding: 20px;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .result-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination-btn,
    .pagination-current {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}
