/* Search Page Styles */
.search-page {
    padding: 60px 0;
    min-height: 60vh;
}

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

.search-header h1 {
    font-size: 36px;
    color: #003366;
    margin-bottom: 30px;
}

.search-page-form {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #003366;
}

.search-page-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-page-btn {
    padding: 18px 30px;
    background: #003366;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.search-page-btn:hover {
    background: #004488;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #003366;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.suggestion-type {
    font-size: 12px;
    color: #6c757d;
}

/* Search Filters */
.search-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.filter-label {
    color: #6c757d;
    font-weight: 500;
    margin-right: 10px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #003366;
    color: #003366;
}

.filter-btn.active {
    background: #003366;
    border-color: #003366;
    color: white;
}

.filter-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.filter-btn.active .filter-count {
    background: rgba(255,255,255,0.2);
}

/* Results */
.results-count {
    color: #6c757d;
    margin-bottom: 25px;
}

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

.results-section-title {
    font-size: 20px;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.results-list.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Result Item */
.result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.result-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.result-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
}

.result-type {
    display: inline-block;
    font-size: 12px;
    color: #006699;
    background: #e6f2ff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.result-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.result-content h3 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.result-content h3 a:hover {
    color: #003366;
}

.result-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Program Result */
.result-program {
    align-items: flex-start;
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003366, #006699);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.program-duration {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* File Result */
.result-file {
    align-items: center;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: #fff3e6;
    color: #e67e22;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.download-btn {
    width: 45px;
    height: 45px;
    background: #003366;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #004488;
}

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

.no-results-icon {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: #ccc;
}

.no-results h2 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 5px;
}

.search-tips {
    margin-top: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 12px;
}

.search-tips h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.search-tips ul {
    list-style: none;
    padding: 0;
}

.search-tips li {
    padding: 5px 0;
    color: #6c757d;
    padding-left: 20px;
    position: relative;
}

.search-tips li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 12px;
}

/* Initial State */
.search-initial {
    text-align: center;
    padding: 60px 20px;
}

.search-initial-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #003366, #006699);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    color: white;
}

.search-initial h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.search-initial p {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto 30px;
}

.popular-searches {
    margin-top: 40px;
}

.popular-searches h3 {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 15px;
}

.popular-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f4f8;
    color: #003366;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.popular-tag:hover {
    background: #003366;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .search-header h1 {
        font-size: 28px;
    }

    .search-filters {
        justify-content: center;
    }

    .filter-label {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .result-item {
        flex-direction: column;
        gap: 15px;
    }

    .result-image {
        width: 100%;
        height: 150px;
    }

    .result-file {
        flex-direction: row;
    }

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