/* Safari App Styles */
.safari-header {
    background-color: #f0f0f0;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.safari-content {
    padding: 0;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    flex: 1;
}

/* Google Search Container */
.google-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.google-logo {
    margin-bottom: 30px;
}

.google-logo img {
    width: 180px;
    height: auto;
}

.safari-search {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 8px 16px;
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    position: relative;
}

.safari-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    padding-left: 0px;
    text-align: center;
}

.search-submit-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #4285f4;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: none;
}

.search-submit-btn:hover {
    background-color: #f8f9fa;
}

.search-submit-btn i {
    font-size: 16px;
}

.safari-search:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

/* Search Results Styles */
.search-results-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.search-results-header {
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dfe1e5;
}

.results-search-bar {
    background-color: transparent;
    margin: 0;
    display: flex;
    align-items: center;
}

.results-search-bar i {
    font-size: 14px;
    color: #5f6368;
}

.results-search-bar i.fa-times {
    cursor: pointer;
    margin-left: 5px;
}

.search-results-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

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

.search-result-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-url {
    color: #202124;
    font-size: 12px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-url img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.result-title {
    color: #1a0dab;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin: 5px 0;
    text-decoration: none;
    display: block;
}

.result-description {
    color: #4d5156;
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Loading State */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Large screen adjustments */
@media (min-width: 768px) {
    .safari-search {
        max-width: 584px;
        width: 60%;
    }
}

/* Mobile view adjustments */
@media (max-width: 480px) {
    .google-search-container {
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .google-logo {
        margin-bottom: 25px;
        text-align: center;
    }

    .google-logo img {
        width: 200px;
        height: auto;
        max-width: 90vw;
    }

    .safari-search {
        width: 85%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* iPhone XR specific adjustments */
@media (max-width: 414px) and (max-height: 896px) {
    .google-search-container {
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 60px);
        padding: 30px 20px;
    }

    .google-logo img {
        width: 220px;
    }

    .safari-search {
        width: 90%;
        max-width: 350px;
    }
} 