/**
 * Search Page Styles
 * Extracted from inline styles for better performance and caching
 */

/* Search Results Styling */
.bold_results {
    font-weight: 700;
    background: #fffacd;
    padding: 1px 3px;
    border-radius: 2px;
    color: #000;
}

.h1_bold_q {
    color: #29486e;
}

.result_paragraph {
    font-size: 0.95em;
    line-height: 1.7;
    color: #333333;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result_quotes {
    font-size: 1.3em;
}

.query_list_a {
    margin: 0 0 0.5em 0;
    padding: 0;
    line-height: 1.4;
    font-size: 1.25em;
}

.query_list_a a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.query_list_a a:hover {
    color: #0066cc;
}

.resultsLinks {
    font-size: 15px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.resultsLinks:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.secondary_info {
    font-size: 0.9em;
    color: #666666;
    margin: 0 0 0.75em 0;
    padding: 0;
    line-height: 1.5;
}

.secondary_info_category {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.secondary_info_category:hover {
    color: #0052a3;
    text-decoration: underline;
}

.quote_results_name {
    color: #3399ff;
    margin-right: 32px;
}

.quote_results_link {
    text-decoration: underline;
}

.search_icon_menu {
    margin-top: 3px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .resultsLinks {
        padding: 1.2em;
        margin-bottom: 1.5em;
    }

    .query_list_a {
        font-size: 1.1em;
    }

    .secondary_info {
        font-size: 0.85em;
    }

    .result_paragraph {
        font-size: 0.9em;
    }

    .quote_results_name {
        margin-right: 0px;
    }
}

@media (max-width: 480px) {
    .resultsLinks {
        padding: 1em;
        margin-bottom: 1.2em;
    }

    .query_list_a {
        font-size: 1em;
        margin-bottom: 0em;
    }
}

/* Loading Spinner for Infinite Scroll */
.spinner {
    border: 4px solid #e8e8e8;
    border-top: 4px solid #00BFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-more {
    display: none;
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#loading-more p {
    margin-top: 18px;
    color: #2d3748;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#no-more-results {
    display: none;
    text-align: center;
    padding: 25px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.05em;
    font-weight: 500;
    border: 1px dashed #dee2e6;
}

#no-more-results p {
    margin: 0;
}

/* Responsive AdSense */
.index-resp {
    width: 320px;
    height: 100px;
}

@media(min-width: 500px) {
    .index-resp {
        width: 468px;
        height: 60px;
    }
}

@media(min-width: 800px) {
    .index-resp {
        width: 728px;
        height: 90px;
    }
}

@media(min-width: 1000px) {
    .index-resp {
        width: 970px;
        height: 250px;
    }
}
