/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Search section */
.search-section {
    margin: 2rem 0;
    text-align: center;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-form input:focus {
    border-color: #007bff;
}

.search-form button {
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

.search-form button:hover {
    background-color: #0056b3;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-button:hover {
    background-color: #f0f0f0;
}

.filter-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Search results */
.search-results {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: transform 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
}

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

.result-content {
    flex: 1;
}

.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.type-badge.video {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-badge.article {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.type-badge.business {
    background-color: #e8f5e9;
    color: #388e3c;
}

.result-item h3 {
    margin-bottom: 0.5rem;
}

.result-item h3 a {
    color: #333;
    text-decoration: none;
}

.result-item h3 a:hover {
    color: #007bff;
}

.result-item p {
    color: #666;
    margin-bottom: 1rem;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.read-more {
    color: #007bff;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.ad-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad {
    text-align: center;
}

.ad h4 {
    margin-bottom: 0.5rem;
}

.ad p {
    color: #666;
    margin-bottom: 1rem;
}

.ad-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.ad-link:hover {
    background-color: #0056b3;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Load more button */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more button {
    padding: 0.8rem 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.load-more button:hover {
    background-color: #e9ecef;
}

/* Error message */
.error-message {
    background-color: #fff3f3;
    color: #dc3545;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    background-color: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image optimizations */
img {
    max-width: 100%;
    height: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Ad container with image support */
.ad-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-image {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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