/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #202124;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: #1a0dab;
}

a:hover {
    text-decoration: underline;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    font-size: 13px;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #202124;
    font-size: 13px;
}

.nav-link:hover {
    text-decoration: underline;
}

.menu-icon {
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    background: #f0f0f0;
}

.signin-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 9px 23px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.25px;
}

.signin-btn:hover {
    background: #1558b0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: -100px;
}

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

.logo {
    width: 272px;
    height: auto;
}

/* ===== SEARCH FORM ===== */
.search-form {
    width: 100%;
    max-width: 584px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.search-container {
    width: 100%;
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 14px;
    height: 44px;
    transition: all 0.2s;
    background: #fff;
}

.search-container:hover,
.search-container:focus-within {
    border-color: transparent;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.search-icon {
    display: flex;
    align-items: center;
    margin-right: 13px;
    flex-shrink: 0;
}

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

.search-input::placeholder {
    color: #9aa0a6;
}

.mic-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.buttons {
    display: flex;
    gap: 8px;
}

.search-btn, .lucky-btn {
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    color: #3c4043;
    padding: 0 16px;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.search-btn:hover, .lucky-btn:hover {
    border-color: #dadce0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    background: #f1f3f4;
}

/* ===== LANGUAGE ===== */
.language {
    margin-top: 30px;
    font-size: 13px;
    color: #4d5156;
}

.language a {
    color: #1a0dab;
    padding: 0 4px;
    font-size: 13px;
}

.language a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: #f2f2f2;
    margin-top: auto;
}

.footer-top {
    padding: 15px 30px;
    border-bottom: 1px solid #dadce0;
    font-size: 15px;
    color: #70757a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-circle {
    font-size: 10px;
    color: #70757a;
}

.footer-bottom {
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left, .footer-right {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #70757a;
    font-size: 14px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-header {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-header-content {
    max-width: 1136px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    display: block;
}

.header-search-form {
    flex: 1;
    max-width: 692px;
}

.header-search-container {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 14px;
    height: 44px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.header-search-container:hover,
.header-search-container:focus-within {
    border-color: transparent;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

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

.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    flex: 1;
    padding: 20px 24px;
}

.results-container {
    max-width: 652px;
    margin: 0;
}

.results-count {
    color: #70757a;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.result-card {
    margin-bottom: 28px;
}

.result-url {
    color: #006621;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 2px;
    word-break: break-all;
}

.result-title {
    font-size: 20px;
    line-height: 1.3;
    color: #1a0dab;
    display: block;
    margin-bottom: 3px;
}

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

.result-description {
    color: #545454;
    font-size: 14px;
    line-height: 1.58;
    word-wrap: break-word;
}

/* ===== RELATED SEARCHES ===== */
.related-searches {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.related-searches h3 {
    font-size: 18px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.related-item {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 24px;
    color: #1a0dab;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

.related-item:hover {
    background: #f1f3f4;
    border-color: #bdc1c6;
    text-decoration: none;
}

/* ===== SEARCH FOOTER ===== */
.search-footer {
    background: #f2f2f2;
    margin-top: auto;
}

.search-footer .footer-bottom {
    max-width: 1136px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo {
        width: 200px;
    }
    
    .main-content {
        margin-top: -50px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn, .lucky-btn {
        width: 200px;
    }
    
    .search-header-content {
        padding: 10px 16px;
        gap: 20px;
    }
    
    .header-search-form {
        max-width: 100%;
    }
    
    .results-container {
        max-width: 100%;
    }
    
    .search-results {
        padding: 16px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left, .footer-right {
        justify-content: center;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 160px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-right .nav-link {
        display: none;
    }
}