@font-face {
    font-family: 'Google Sans';
    src: url('/GoogleSans-Regular(3).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #fff;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15vh;
    width: 100%;
    max-width: 600px;
    transition: all 0.3s ease;
}

.logo {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 584px;
    height: 44px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 1px 10px rgba(32, 33, 36, 0.28);
}

.search-box input {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box button {
    width: 44px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.buttons button {
    padding: 10px 16px;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #3c4043;
    font-size: 14px;
    cursor: pointer;
}

.buttons button:hover {
    border: 1px solid #dadce0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Results page styles */
.results-container {
    width: 100%;
    padding: 20px;
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.results-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe1e5;
}

#back-button {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    cursor: pointer;
}

.search-box-small {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: 40px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    overflow: hidden;
}

.search-box-small input {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box-small button {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.result-item {
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease-in;
}

.result-url {
    color: #3c4043;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.result-title {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
}

.result-title:hover {
    text-decoration: underline;
}

.result-description {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.5;
}

.search-stats {
    margin-bottom: 15px;
    color: #70757a;
    font-size: 14px;
}

.result-category {
    color: #1a0dab;
    font-size: 13px;
    margin-top: 4px;
}

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

/* Multiplayer cursor styles */
.user-cursor {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-5px, -5px);
}

.user-cursor img {
    width: 20px;
    height: 20px;
}

.cursor-username {
    position: absolute;
    top: 15px;
    left: 10px;
    background-color: #333;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

/* Interaction counter styles */
.result-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.interaction-indicator {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid #dfe1e5;
}

.interact-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.interact-count {
    font-size: 12px;
    font-weight: bold;
    color: #5f6368;
}

/* AI Website Generation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-content img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* Generated website styles */
.ai-generated-site {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Google Sans', Arial, sans-serif;
}

.ai-generated-site header {
    border-bottom: 1px solid #dfe1e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

#back-to-search {
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    padding: 8px 16px;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: 'Google Sans', Arial, sans-serif;
}

.ai-generated-site h1 {
    font-family: 'Google Sans', Arial, sans-serif;
    color: #202124;
    font-size: 28px;
    margin-bottom: 10px;
}

.ai-generated-site .intro {
    font-size: 16px;
    color: #4d5156;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ai-generated-site .content {
    line-height: 1.6;
}

.ai-generated-site h2 {
    font-family: 'Google Sans', Arial, sans-serif;
    color: #1a73e8;
    font-size: 22px;
    margin: 25px 0 15px 0;
}

.ai-generated-site h3 {
    font-family: 'Google Sans', Arial, sans-serif;
    color: #202124;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.ai-generated-site p {
    margin-bottom: 16px;
    color: #3c4043;
}

.hero-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.hero-image img {
    width: 100%;
    display: block;
}

.supporting-image {
    width: 50%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.supporting-image img {
    width: 100%;
    display: block;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: #f1f3f4;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #80868b;
    font-size: 14px;
    position: relative;
}

.additional-resources {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #dfe1e5;
}

.additional-resources ul {
    margin-left: 20px;
}

.additional-resources li {
    margin-bottom: 10px;
}

.ai-generated-site footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dfe1e5;
    font-size: 13px;
    color: #5f6368;
    text-align: center;
}

/* Discoveries page styles */
.discoveries-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe1e5;
}

.discoveries-header h2 {
    font-family: 'Google Sans', Arial, sans-serif;
    color: #202124;
    font-size: 20px;
}

.discovery-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dfe1e5;
}

/* Add styles for search loading state */
.loading-search {
    text-align: center;
    padding: 30px 0;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@media (max-width: 768px) {
    .search-container {
        margin-top: 10vh;
        padding: 0 20px;
    }

    .search-box, .search-box-small {
        max-width: 100%;
    }
}