@@ -1,742 +1,147 @@
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease;
}

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

/* ===== MAIN SEARCH SECTION ===== */
.main-search-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
}

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

.logo-container {
    text-align: center;
    margin-bottom: 50px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.logo-name {
    color: #4285f4;
    font-weight: 600;
    background: linear-gradient(45deg, #4285f4, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    font-weight: 400;
}

/* Search Area */
.search-area {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-box-wrapper {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box-wrapper:focus-within {
    box-shadow: 0 15px 50px rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.search-icon {
    color: #9aa0a6;
    font-size: 1.2rem;
    margin-right: 15px;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    padding: 15px 0;
    background: transparent;
    color: #333;
}

.search-btn {
    background: #4285f4;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.search-btn:hover {
    background: #3367d6;
    transform: scale(1.05);
}

.voice-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    background: #f1f3f4;
    color: #4285f4;
}

.search-hints {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.quick-link {
    background: white;


    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;


}

.quick-link:hover {
    background: #4285f4;
    color: white;
    border-color: #4285f4;

    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
}

/* ===== RESULTS PAGE ===== */
.results-page {
    background: white;
    min-height: 100vh;
}

.results-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-box-mini {
    display: flex;
    background: #f1f3f4;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box-mini:focus-within {
    border-color: #4285f4;
    background: white;
}

.search-box-mini input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    background: transparent;
}

.search-box-mini button {
    background: #4285f4;
    border: none;
    color: white;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box-mini button:hover {
    background: #3367d6;
}

.back-btn {
    background: transparent;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

/* Results Sections */
.results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header i {
    color: #4285f4;
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
}

.results-count {
    margin-left: auto;
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Ads Container */
.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ad-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #4285f4, #34a853);
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.ad-card h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.ad-card p {
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-link.twitter { background: #000000; }
.social-link.linkedin { background: #0077b5; }
.social-link.youtube { background: #ff0000; }
.social-link.website { background: #34a853; }

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: #4285f4;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.1);
}

.result-card h3 {
    margin-bottom: 10px;

}

.result-card h3 a {
    color: #1a0dab;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

.result-card h3 a:hover {
    text-decoration: underline;
    color: #3367d6;
}

.result-link {
    color: #0d652d;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: block;

}

.result-snippet {
    color: #4d5156;
    line-height: 1.6;

}

/* Loading State */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.page-btn {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3367d6;
    transform: translateY(-2px);
}

.page-btn:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

.page-info {
    color: #5f6368;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-line {
    height: 2px;
    background: black;
    width: 100%;
    margin-bottom: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: black;
    font-size: 1.1rem;
    font-weight: 500;
}

#footerLink {
    color: #4285f4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

#footerLink:hover {
    color: #3367d6;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4285f4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .logo-text {
        font-size: 2.2rem;
    }
    
    .search-area {
        max-width: 90%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .logo-text {
        font-size: 1.8rem;

    }

    .quick-links {
        gap: 10px;
    }
    
    .quick-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .ads-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-box {
        padding: 10px;
    }
    
    #searchInput {
        font-size: 1rem;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
    }
    
    .result-card {
        padding: 20px;
    }
}

/* Add these styles to your existing style.css */

/* Result Position */
.result-position {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4285f4;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.result-card {
    position: relative;
    padding-left: 40px;
}

/* Ad Badge */
.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #34a853;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Result Date */
.result-date {
    margin-top: 10px;
    color: #70757a;
    font-size: 0.9rem;
}

/* Notification Styles (already added via JS, but for completeness) */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Loading text */
.loading-text {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

/* Result Card with Image */
.result-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.result-card:hover {
    border-color: #4285f4;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.1);
    transform: translateY(-2px);
}

.result-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

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

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

.result-content {
    flex: 1;
    position: relative;
    padding-left: 40px;
}

.result-position {
    position: absolute;
    top: 0;
    left: 0;
    background: #4285f4;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.result-content h3 {
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-content h3 a {
    color: #1a0dab;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.result-content h3 a:hover {
    text-decoration: underline;
    color: #3367d6;
}

.result-link {
    color: #0d652d;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    word-break: break-all;
}

.result-snippet {
    color: #4d5156;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-date {
    color: #70757a;
    font-size: 0.85rem;
}

/* Responsive Design for Images */
@media (max-width: 768px) {
    .result-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .result-content {
        padding-left: 0;
        padding-top: 40px;
    }
    
    .result-position {
        top: -40px;
        left: 10px;
    }
}

/* Ad Card Image */
.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.ad-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #34a853;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;

    /* Add to your existing style.css */

/* Result Card with Image */
.result-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.result-card:hover {
    border-color: #4285f4;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.1);
    transform: translateY(-2px);
}

.result-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
}

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

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

.result-content {
    flex: 1;
    position: relative;
    padding-left: 40px;
}

.result-position {
    position: absolute;
    top: 0;
    left: 0;
    background: #4285f4;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.result-content h3 {
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-content h3 a {
    color: #1a0dab;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.result-content h3 a:hover {
    text-decoration: underline;
    color: #3367d6;
}

.result-link {
    color: #0d652d;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    word-break: break-all;
}

.result-snippet {
    color: #4d5156;
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-date {
    color: #70757a;
    font-size: 0.85rem;
}

/* Responsive Design for Images */
@media (max-width: 768px) {
    .result-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .result-content {
        padding-left: 0;
        padding-top: 40px;
    }
    
    .result-position {
        top: -40px;
        left: 10px;
    }
}

/* Ad Card Image */
.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.ad-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #34a853;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
