/**
 * Main Stylesheet - Google-like Design
 * Clean, minimal design similar to Google.com
 */

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: #202124;
    background-color: #fff;
    line-height: 1.5;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #dadce0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

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

@media (min-width: 769px) {
    .header-content {
        padding: 12px 24px;
    }
}

.logo-container {
    flex: 0 0 auto;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.site-logo-text {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #f1f3f4;
    text-decoration: none;
}

.nav-link.active {
    color: #1a73e8;
    font-weight: 500;
}

/* Homepage Styles */
.homepage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    background-color: #fff;
}

.homepage-content {
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.homepage-logo {
    max-width: 272px;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.2s;
}

.homepage-logo:hover {
    transform: scale(1.02);
}

.homepage-title {
    font-size: 90px;
    font-weight: 400;
    color: #4285f4;
    margin: 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.search-section {
    margin-top: 30px;
}

.search-form {
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
    transition: all 0.2s ease;
}

.search-box:hover {
    box-shadow: 0 2px 8px 1px rgba(64,60,67,.28);
    border-color: transparent;
}

.search-box:focus-within {
    box-shadow: 0 2px 8px 1px rgba(64,60,67,.28);
    border-color: transparent;
    outline: none;
}

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

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

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #f1f3f4;
}

.search-button:active {
    background-color: #e8eaed;
}

/* Clear button styling */
.search-clear {
    display: none;
    position: absolute;
    right: 50px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #70757a;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.search-clear:hover {
    color: #202124;
}

.search-box.focused,
.search-box-inline.focused {
    box-shadow: 0 2px 8px 1px rgba(64,60,67,.28);
}

/* Inline search clear button */
.search-box-inline .search-clear {
    right: 45px;
}

/* Search Page Styles */
.search-page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    background-color: #fff;
}

.search-header {
    margin-bottom: 30px;
    position: sticky;
    top: 60px;
    z-index: 50;
    background-color: #fff;
    padding: 12px 0;
    margin-top: -12px;
}

.search-form-inline {
    width: 100%;
}

.search-box-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.search-box-inline:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.search-box-inline:focus-within {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-color: transparent;
}

.logo-link-inline {
    text-decoration: none;
    flex: 0 0 auto;
}

.logo-inline {
    height: 30px;
    width: auto;
    display: block;
}

.logo-text-inline {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
}

.search-input-inline {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 0;
    background: transparent;
    color: #202124;
}

.search-button-inline {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-button-inline:hover {
    background-color: #f1f3f4;
}

.search-results-container {
    max-width: 650px;
    margin: 0 auto;
}

/* Footer Styles */
.site-footer {
    background-color: #f2f2f2;
    border-top: 1px solid #dadce0;
    margin-top: auto;
    padding: 20px 0;
    min-height: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #202124;
}

.footer-copyright {
    color: #5f6368;
    font-size: 13px;
}

.footer-copyright p {
    margin: 0;
}

@media (min-width: 769px) {
    .footer-content {
        padding: 0 24px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-results-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    
    .homepage {
        padding: 30px 16px;
        min-height: calc(100vh - 180px);
    }
    
    .homepage-title {
        font-size: 60px;
        letter-spacing: -1px;
    }
    
    .homepage-logo {
        max-width: 200px;
    }
    
    .search-box {
        max-width: 100%;
        padding: 0 14px;
    }
    
    .search-box-inline {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 12px;
    }
    
    .logo-link-inline {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .search-input-inline {
        order: 1;
        width: 100%;
        padding: 6px 0;
    }
    
    .search-button-inline {
        order: 2;
    }
    
    .search-page {
        padding: 16px;
    }
    
    .search-header {
        margin-bottom: 20px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .site-footer {
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .homepage {
        padding: 20px 12px;
    }
    
    .homepage-title {
        font-size: 48px;
        letter-spacing: -1px;
    }
    
    .homepage-logo {
        max-width: 150px;
    }
    
    .search-box {
        border-radius: 20px;
        padding: 0 12px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .search-box-inline {
        border-radius: 20px;
        padding: 6px 10px;
    }
    
    .search-input-inline {
        font-size: 14px;
    }
    
    .logo-inline {
        height: 24px;
    }
    
    .logo-text-inline {
        font-size: 18px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .search-clear {
        right: 45px;
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .search-box-inline .search-clear {
        right: 40px;
    }
}

/* Content Page Styles */
.content-page {
    flex: 1;
    padding: 40px 20px;
    background-color: #fff;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dadce0;
}

.page-content {
    color: #3c4043;
    line-height: 1.6;
    font-size: 15px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content a {
    color: #1a73e8;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-top: 32px;
    margin-bottom: 16px;
}

.subsection-title {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin-top: 24px;
    margin-bottom: 12px;
}

.subsection-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #5f6368;
    margin-top: 16px;
    margin-bottom: 12px;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #202124;
    font-weight: 500;
}

.contact-info a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Content Pages */
@media (max-width: 768px) {
    .content-page {
        padding: 24px 16px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .subsection-title {
        font-size: 18px;
    }
    
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .page-content {
        font-size: 14px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Google CSE Results Overrides */
.gsc-control-cse {
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.gsc-above-wrapper-area {
    padding: 0;
    margin-bottom: 20px;
}

.gsc-result-info {
    color: #70757a;
    font-size: 14px;
    margin-bottom: 16px;
    padding-left: 0;
}

/* Google CSE Result Items */
.gsc-webResult.gsc-result,
.gsc-results .gsc-imageResult {
    border: 0;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.gsc-webResult.gsc-result:last-child,
.gsc-results .gsc-imageResult:last-child {
    border-bottom: 0;
}

.gsc-webResult.gsc-result:hover,
.gsc-results .gsc-imageResult:hover {
    background-color: transparent;
}

/* Result Title */
.gsc-result .gs-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 3px;
    font-weight: 400;
}

.gsc-result .gs-title a {
    color: #1a0dab;
    text-decoration: none;
    cursor: pointer;
}

.gsc-result .gs-title a:visited {
    color: #609;
}

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

.gsc-result .gs-title a:active {
    color: #1a0dab;
}

/* Result URL */
.gsc-result .gs-visibleUrl {
    color: #006621;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
}

/* Result Snippet */
.gsc-result .gs-snippet {
    color: #545454;
    font-size: 14px;
    line-height: 1.58;
    margin-top: 4px;
}

/* Pagination */
.gsc-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.gsc-pagination a {
    color: #1a0dab;
    text-decoration: none;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
    background-color: #fff;
}

.gsc-pagination a:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    border-color: #dadce0;
    background-color: #f8f9fa;
}

.gsc-pagination .gsc-cursor-page {
    background-color: #4285f4;
    color: #fff;
    border-color: #4285f4;
    font-weight: 500;
}

.gsc-pagination .gsc-cursor-page:hover {
    background-color: #4285f4;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* No Results */
.gsc-no-results-result {
    padding: 40px 20px;
    text-align: center;
}

.gsc-no-results-result .gs-snippet {
    color: #70757a;
    font-size: 16px;
}

/* Search Box in Results */
.gsc-search-box {
    margin-bottom: 20px;
}

/* Branding */
.gcsc-branding {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ebebeb;
}

.gcsc-branding-text {
    color: #70757a;
    font-size: 13px;
}

/* Responsive CSE Results */
@media (max-width: 768px) {
    .gsc-result .gs-title {
        font-size: 18px;
    }
    
    .gsc-result .gs-snippet {
        font-size: 13px;
    }
    
    .gsc-pagination a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-header {
        top: 0;
        padding: 8px 0;
    }
}

