/* Estilos gerais */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

nav {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    justify-content: flex-start;
}

nav a {
    text-decoration: none;
    font-size: 16px;
    color: #555;
    transition: color 0.3s;
}

nav a:hover {
    color: #000;
}

nav a.apps {
    color: #28a745;
    font-weight: bold;
    text-decoration: underline;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-icon {
    font-size: 20px;
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #000;
}

.google-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.google-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.google-avatar:hover {
    transform: scale(1.1);
}

.google-avatar:hover + .google-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.google-tooltip {
    position: absolute;
    top: 47px;
    left: -55px;
    background-color: #ffffff;
    color: #333;
    padding: 4px 7px 7px 6px;
    font-size: 14px;
    font-weight: normal;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    width: max-content;
    min-width: 120px;
    max-width: 200px;
    text-align: right;
}

.content {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.app-header {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.app-header img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-details h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.app-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.install-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4caf50;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.install-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.description {
    padding: 20px;
}

.description h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #4caf50;
    display: inline-block;
    padding-bottom: 5px;
}

.description p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-header img {
        margin-bottom: 10px;
    }

    .app-details {
        align-items: center;
    }
}

.mobile-menu {
    display: none;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 16px;
    color: #555;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #000;
}

.mobile-menu a.apps {
    color: #28a745;
    font-weight: bold;
    text-decoration: underline;
}

/* Versão Desktop: Alinhar nav à esquerda, colado na logo */
@media (min-width: 769px) {
    header {
        justify-content: space-between;
    }
    .logo {
        margin-right: 20px;
    }
    nav {
        margin-left: 0;
        flex-grow: 1;
        justify-content: flex-start;
    }
}

/* Versão Mobile: Links centralizados */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    .mobile-menu {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
}

footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}
