* { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: "Poppins", sans-serif; background-color: #f8f9fa; } a { text-decoration: none; color: #1a0dab; } a:hover { text-decoration: underline; } .main-content { display: flex; flex-direction: column; align-items: center; padding: 50px 20px; } .search-container { width: 100%; max-width: 700px; position: relative; width: 60%; margin-bottom: 20px; } .search-box { width: 100%; padding: 12px 16px; border: 2px solid #4285f4; border-radius: 24px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: box-shadow .2s ease-in-out, width .3s ease, border-color .3s ease; display: flex; align-items: center; } .search-box:focus-within { box-shadow: 0 4px 8px rgba(32,33,36,0.35); border-color: #ea4335; } #search-query { width: calc(100% - 40px); border: none; outline: 0; font-size: 16px; padding: 4px 0; transition: font-size .2s ease; } #search-query::placeholder { color: #9aa0a6; transition: color .2s ease; } #search-query:focus { font-size: 18px; } #search-query:focus::placeholder { color: transparent; } #search-form button { background: 0 0; border: none; cursor: pointer; padding: 8px; margin-left: 10px; transition: transform .2s ease; } #search-form button:hover { transform: scale(1.1); } #search-form button svg { display: none; } #search-form button::after { content: "\f002"; color: #9aa0a6; transition: color .2s ease, transform .2s ease; font: 900 1.2em "Font Awesome 5 Free"; } #search-form button:hover::after { color: #4285f4; transform: scale(1.1); } #suggestions { width: calc(80% - 32px); background-color: #fff; border: none; border-radius: 8px; box-shadow: 0 4px 6px rgba(32,33,36,0.28); display: none; position: absolute; top: 100%; left: 0; z-index: 10; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; padding: 10px 0; } @keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } } #suggestions ul { list-style-type: none; padding: 0; margin: 0; } #suggestions li { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #eee; transition: background-color .2s ease; } #suggestions li:hover { background-color: #e9e9e9; } #suggestions li.selected { background-color: #f0f0f0; } .search-box:focus-within + #suggestions, .search-box:hover + #suggestions { display: block; opacity: 1; transform: translateY(0); } #results { width: 100%; max-width: 700px; margin-top: 20px; } .result, .ai-result { margin-bottom: 20px; padding: 15px; border-radius: 8px; background-color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; animation: fadeInUp .5s ease forwards; } .ai-result { background-color: #f0f0f5; width: 100%; max-width: 800px; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .result.show, .ai-result.show { opacity: 1; transform: translateY(0); } .result:hover, .ai-result:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.2); } .result h3 { margin: 0 0 5px; font-size: 1.2rem; color: #222; } .result .url { color: #202124; font-size: .9rem; margin-bottom: 8px; display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .result p { color: #555; font-size: .9rem; line-height: 1.6em; margin: 0; } .loading-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0); z-index: 1000; } .loading-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; border: 5px solid #f3f3f3; border-top: 5px solid #3498db; animation: spin 1.2s linear infinite; } .loading-text { margin-left: 10px; font-size: 1rem; color: #333; } #no-results { display: none; text-align: center; padding: 20px; font-size: 1.1em; color: #555; } .result .actions button { background-color: #f2f2f2; color: #000; border: 1px solid #ddd; padding: 8px 16px; border-radius: 20px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; margin-right: 10px; } .result .actions button:hover { background-color: #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .summary-popup, .answer-popup { border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); background-color: #f8f9fa; color: #333; font-family: 'Poppins', sans-serif; padding: 20px; position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); max-width: 80%; max-height: 80%; overflow-y: auto; z-index: 1001; } .summary-popup .close, .answer-popup .close { position: absolute; top: 15px; right: 15px; cursor: pointer; font-size: 1.5em; color: #666; transition: color .2s ease; } .summary-popup .close:hover, .answer-popup .close:hover { color: #333; } .summary-popup .loading, .answer-popup .loading { display: flex; justify-content: center; align-items: center; height: 100px; display: none; } .summary-popup .loading-spinner, .answer-popup .loading-spinner { width: 60px; height: 60px; border-radius: 50%; border: 5px solid #f3f3f3; border-top: 5px solid #3498db; animation: spin 1.2s linear infinite; } .summary-popup .content, .answer-popup .content { padding: 20px; font-size: 1rem; line-height: 1.5; } .summary-popup #summaryContent, .answer-popup #answerContent { font-family: 'Poppins', sans-serif; margin-bottom: 20px; } #loading-more { display: none; text-align: center; padding: 10px; } #loading-more.active { display: block; } .ai-result h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 700; color: #333; } .ai-result p { color: #444; font-size: .9rem; line-height: 1.5em; margin: 0; display: flex; flex-direction: column; } .ai-result .actions { display: flex; justify-content: flex-end; margin-top: 10px; } .ai-result .actions button { background-color: #f2f2f2; color: #000; border: 1px solid #ddd; padding: 8px 12px; border-radius: 20px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; margin-left: 10px; } .ai-result .actions button:hover { background-color: #e0e0e0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .ai-result .actions button i { font-size: 1.2rem; color: #333; }