/**
 * GoHome Theme - Main Stylesheet
 * A minimal search engine theme for domain link discovery
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* Search Page Styles */
.search-container {
    padding: 80px 20px 40px;
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 40px;
}

.site-logo {
    max-width: 300px;
    max-height: 120px;
    height: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 80px;
}

.logo-container img {
    height: 80%;
    width: auto;
}

.site-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.search-form {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #dfe1e5;
    border-radius: 50px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

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

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

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

.search-button:hover {
    background: #357ae8;
    transform: scale(1.05);
}

.search-history {
    margin-bottom: 30px;
    min-height: 40px;
}

.history-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.history-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-tag:hover {
    background: #e8eaed;
}

.history-tag .keyword {
    /* Clickable keyword */
}

.history-tag .remove-btn {
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.history-tag .remove-btn:hover {
    color: #d93025;
}

.search-results {
    margin-top: 30px;
    text-align: left;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaed;
}

.results-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.clear-button {
    background: #f1f3f4;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.clear-button:hover {
    background: #e8eaed;
    color: #333;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom scrollbar */
.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track {
    background: transparent;
}

.results-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Firefox scrollbar */
.results-list {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

.result-item {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: #f1f3f4;
}

.result-info {
    flex: 1;
}

.result-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 5px;
}

.result-domain {
    font-size: 14px;
    color: #5f6368;
}

.result-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.result-slogan {
    color: #999;
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #dfe1e5;
    margin-bottom: 15px;
}

.loading-indicator {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 20px;
}

.loading-indicator i {
    margin-right: 10px;
}

/* Footer Styles */
.gohome-footer {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #666;
    font-size: 14px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-menu {
    margin-bottom: 15px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu li {
    display: inline-block;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.icp-number {
    font-size: 13px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .site-name {
        font-size: 2rem;
    }

    .search-input-wrapper {
        padding: 10px 15px;
    }

    .result-item {
        padding: 3px;
    }

    .result-icon {
        width: 40px;
        height: 40px;
    }

    .result-name {
        font-size: 16px;
    }

    .gohome-footer {
        padding: 20px 15px;
    }

    .footer-content {
        font-size: 13px;
    }

    .footer-menu ul {
        gap: 15px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}