/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Layout ocupando toda a tela */
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Header da Play Store - Mobile */
.playstore-header {
    background: #ffffff;
    border-bottom: 1px solid #dadce0;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.playstore-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #5f6368;
}

.playstore-logo span {
    font-size: 18px;
    font-weight: 400;
    color: #5f6368;
}

.header-center {
    flex: 1;
    margin: 0 16px;
}

.search-container {
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 40px;
    border: 1px solid #dadce0;
    border-radius: 18px;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.search-box input:focus {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: #4285f4;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    font-size: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-icon {
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    font-size: 20px;
}

.help-icon:hover {
    background-color: #f8f9fa;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Página do App - Mobile */
.app-page {
    padding: 16px;
    background: #ffffff;
    min-height: calc(100vh - 56px - 64px); /* header height - bottom nav height */
    padding-bottom: 80px; /* espaço para navegação inferior */
}

.app-container {
    width: 100%;
}

/* Cabeçalho do App */
.app-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.app-icon {
    flex-shrink: 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(45deg, #10a37f, #1a7f64);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.icon-circle svg {
    border-radius: 16px;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    line-height: 1.2;
}

.app-developer {
    font-size: 14px;
    color: #01875f;
    margin-bottom: 8px;
    cursor: pointer;
}

.app-developer:hover {
    text-decoration: underline;
}

.app-tag {
    display: inline-block;
    font-size: 12px;
    color: #5f6368;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dadce0;
}

/* Estatísticas do App */
.app-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.stat-value {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3;
}

.age-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.rating-badge {
    width: 24px;
    height: 24px;
    background: #ff6d00;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* Seção de Instalação */
.install-section {
    margin-bottom: 24px;
}

.install-btn {
    background: #01875f;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(1, 135, 95, 0.3);
}

.install-btn .material-icons {
    font-size: 18px;
}

.install-btn:hover {
    background: #017e56;
}

.action-buttons {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
}

.action-btn {
    background: none;
    border: none;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    transition: color 0.2s ease;
    flex: none;
}

.action-btn:hover {
    color: #017e56;
}

.action-btn .material-icons {
    font-size: 18px;
}

/* Informações de Compatibilidade */
.compatibility-info {
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4;
}

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

.info-item .material-icons {
    color: #5f6368;
    font-size: 20px;
    margin-top: 2px;
}

.learn-more {
    color: #1a73e8;
    text-decoration: none;
    margin-left: 4px;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Screenshots - Mobile */
.screenshots-section {
    margin-bottom: 24px;
}

.screenshot-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

.screenshot {
    flex-shrink: 0;
    width: 160px;
    height: 284px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e8eaed);
    position: relative;
}

.screenshot-content {
    padding: 20px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screenshot-header {
    margin-bottom: 20px;
}

.screenshot-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.screenshot-subtitle {
    font-size: 12px;
    color: #5f6368;
}

.screenshot-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generated-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4285f4, #34a853);
    border-radius: 8px;
}

.screenshot-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    align-self: flex-end;
}

.voice-options {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.voice-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dadce0;
}

.voice-option.active {
    background: #1a73e8;
}

.screenshot-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.screenshot-text p {
    font-size: 11px;
    color: #5f6368;
    line-height: 1.4;
}

/* Sobre este app */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 16px;
    cursor: pointer;
}

.about-section h2 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
}

.expand-icon {
    color: #5f6368;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.about-section:hover .expand-icon {
    transform: rotate(90deg);
}

/* Descrição do App */
.app-description {
    margin-bottom: 24px;
}

.app-description p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
}

/* Seção de Segurança */
.security-section {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.security-section h3 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 12px;
}

.security-description {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 16px;
}

.security-items {
    margin-bottom: 16px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #5f6368;
}

.security-item:last-child {
    margin-bottom: 0;
}

.security-item .material-icons {
    font-size: 20px;
    color: #5f6368;
    margin-top: 2px;
}

.see-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.see-more-btn:hover {
    text-decoration: underline;
}

/* Seção de Classificações */
.ratings-section {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.ratings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ratings-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    flex: 1;
}

.verified-badge {
    font-size: 12px;
    color: #5f6368;
}

.info-icon {
    font-size: 16px;
    color: #5f6368;
}

/* Resumo das Avaliações */
.rating-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.rating-score {
    text-align: center;
    min-width: 80px;
}

.score-number {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 4px 0;
}

.star {
    font-size: 16px;
}

.star.filled {
    color: #ffc107;
}

.star.empty {
    color: #dadce0;
}

.rating-count {
    font-size: 12px;
    color: #5f6368;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bar-label {
    font-size: 12px;
    color: #5f6368;
    width: 8px;
    text-align: center;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

/* Filtros de Avaliação */
.rating-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    background: none;
    border: 1px solid #dadce0;
    color: #5f6368;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Lista de Avaliações */
.reviews-list {
    margin-bottom: 16px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-menu {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.review-menu:hover {
    background: #f8f9fa;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.review-rating .star {
    font-size: 14px;
}

.review-text {
    margin-bottom: 12px;
}

.review-text p {
    font-size: 14px;
    color: #202124;
    line-height: 1.5;
}

.review-helpful {
    font-size: 12px;
    color: #5f6368;
}

.review-helpful span {
    display: block;
    margin-bottom: 8px;
}

.helpful-buttons {
    display: flex;
    gap: 16px;
}

.helpful-btn {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.helpful-btn:hover {
    background: #f8f9fa;
}

.helpful-btn .material-icons {
    font-size: 16px;
}

.see-all-reviews-btn {
    background: none;
    border: 1px solid #dadce0;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.see-all-reviews-btn:hover {
    background: #f8f9fa;
}

/* Seção de Suporte */
.support-section {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
}

.support-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
}

.support-header .expand-icon {
    color: #5f6368;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.support-header:hover .expand-icon {
    transform: rotate(180deg);
}

/* Seção de Apps Semelhantes */
.similar-apps-section {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.similar-apps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    cursor: pointer;
}

.similar-apps-header h3 {
    font-size: 16px;
    font-weight: 400;
    color: #202124;
}

.arrow-icon {
    color: #5f6368;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.similar-apps-header:hover .arrow-icon {
    transform: translateX(4px);
}

.similar-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.similar-app-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 72px;
}

.similar-app-item:hover {
    background-color: #f8f9fa;
}

.similar-app-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    margin-top: 2px;
}

.similar-app-info {
    flex: 1;
    min-width: 0;
}

.similar-app-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.similar-app-developer {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-app-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.similar-app-rating .rating-value {
    font-size: 12px;
    color: #5f6368;
}

.similar-app-rating .star {
    font-size: 12px;
    color: #ffc107;
}

/* Seção de Links Finais */
.footer-links-section {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid #f1f3f4;
}

.footer-flag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.footer-flag:hover {
    color: #1a73e8;
}

.footer-flag .material-icons {
    font-size: 18px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f3f4;
}

.bottom-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.bottom-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Navegação Inferior - Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #dadce0;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #5f6368;
    padding: 6px 12px;
    transition: color 0.2s ease;
    min-width: 60px;
    border-radius: 8px;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-item .material-icons {
    font-size: 22px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* Mobile-first approach - remover media queries desnecessárias */
/* Todas as configurações já estão otimizadas para mobile */

/* Scrollbar personalizada para screenshots */
.screenshot-container::-webkit-scrollbar {
    height: 4px;
}

.screenshot-container::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 2px;
}

.screenshot-container::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 2px;
}

.screenshot-container::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* Screenshots Reais (quando há imagens) */
.screenshot-real {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.screenshot-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-real:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-real:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay .material-icons {
    color: white;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 50%;
}

/* Indicadores de Screenshots */
.screenshots-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0 20px;
}

.screenshot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dadce0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.screenshot-indicator.active {
    background: #1976d2;
    transform: scale(1.2);
}

.screenshot-indicator:hover {
    background: #5f6368;
}

/* App Icon Large (para screenshots padrão) */
.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal de Screenshot */
.screenshot-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.screenshot-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.screenshot-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.screenshot-modal-close {
    color: white;
    margin-top: 15px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Responsivo para Screenshots */
@media (max-width: 768px) {
    .screenshot {
        width: 140px;
        height: 248px;
    }
    
    .screenshots-indicators {
        padding: 0 10px;
    }
    
    .screenshot-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Animações suaves */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Estados de foco para acessibilidade */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Estados de hover para elementos interativos */
.app-developer:hover,
.learn-more:hover,
.about-section:hover {
    opacity: 0.8;
}