/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

/* Search Form Section */
.search-page-form {
    padding: 60px 0;
    background: #000000;
}

.search-page-form__header {
    text-align: center;
    margin-bottom: 40px;
}

.search-page-form__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.search-page-form__subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.search-page-form__container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    margin-top: 30px;
}

.search-form__input-group {
    position: relative;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form__input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-right: none;
    font-size: 1.1rem;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.search-form__input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-form__button {
    padding: 15px 30px;
    background: #201e1e;
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-form__button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.search-form__button:active {
    transform: translateY(0);
}

/* Search Results Section */
.search-results-section {
    padding: 60px 0;
    background: #000000;
}

.search-results__header {
    margin-bottom: 40px;
}

.search-results__title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.search-results__count {
    color: #6c757d;
    font-weight: 400;
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Search Result Item */
.search-result-item {
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.search-result-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-result-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.search-result-card__body {
    padding: 25px;
}

.search-result-card__content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.search-result-card__main {
    flex: 1;
}

.search-result-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.search-result-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-card__title a:hover {
    color: #007bff;
    text-decoration: none;
}

.search-result-card__description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.search-result-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-result-card__badge {
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-card__badge--article {
    background: #28a745;
}

.search-result-card__badge--project {
    background: #007bff;
}

.search-result-card__date {
    color: #6c757d;
    font-size: 0.9rem;
}

.search-result-card__category {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.search-result-card__image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-card:hover .search-result-card__image img {
    transform: scale(1.05);
}

/* No Results Section */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
}

.search-no-results__icon {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0.7;
}

.search-no-results__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.search-no-results__message {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.search-suggestions__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions__item {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.8;
    padding: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-page-form__title {
        font-size: 2rem;
    }
    
    .search-form__input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .search-form__button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .search-results__title {
        font-size: 1.6rem;
    }
    
    .search-result-card__content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-result-card__image {
        width: 100%;
        height: 200px;
    }
    
    .search-result-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .search-page-form {
        padding: 40px 0;
    }
    
    .search-page-form__title {
        font-size: 1.8rem;
    }
    
    .search-form__input-group {
        flex-direction: column;
    }
    
    .search-form__input {
        border-radius: 8px 8px 0 0;
        border-right: 2px solid #e9ecef;
    }
    
    .search-form__button {
        border-radius: 0 0 8px 8px;
    }
    
    .search-results-section {
        padding: 40px 0;
    }
    
    .search-result-card__body {
        padding: 20px;
    }
}

/* Animation for search results */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    animation: fadeInUp 0.5s ease-out;
}

.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-result-item:nth-child(4) { animation-delay: 0.4s; }
.search-result-item:nth-child(5) { animation-delay: 0.5s; }
