/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --dark-color: #000000;
    --light-color: #ffffff;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.logo {
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-download .icon {
    font-size: 1.3rem;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.error {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

.alert.success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 
        0 0 5px rgba(0, 123, 255, 0.5),
        0 0 10px rgba(0, 123, 255, 0.3),
        0 0 15px rgba(0, 123, 255, 0.2);
}

.frontend .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    text-align: center;
    margin: 40px 0;
    padding: 30px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #555;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input[type="text"] {
    flex: 1;
    max-width: 400px;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.search-box .btn-go {
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box .btn-go:hover {
    background-color: var(--primary-dark);
}

.app-display {
    max-width: 800px;
    margin: 0 auto;
}

.app-card {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-image {
    flex: 0 0 200px;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-details h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Carrossel de Anúncios */
.ad-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px; /* Definição de altura */
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slide 10s infinite linear; /* Adicionando animação */
}

.ad-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ad-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.ad-slide .btn-saiba {
    margin-top: 10px;
}

/* Animação de rotação */
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    60% { transform: translateX(-300%); }
    80% { transform: translateX(-400%); }
    100% { transform: translateX(0); }
}

/* Anúncios Laterais */
.ad-container {
    position: fixed;
    top: 100px;
    width: 160px;
    text-align: center;
    z-index: 1000;
}

.ad-left {
    left: 10px;
}

.ad-right {
    right: 10px;
}

.ad-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.btn-saiba {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-saiba:hover {
    background-color: #0056b3;
}

/* Esconder anúncios em telas pequenas */
@media (max-width: 768px) {
    .ad-container {
        display: none;
    }

    .app-card {
        flex-direction: column;
    }

    .app-image {
        flex: 0 0 auto;
        height: 200px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .ad-slider {
        display: block; /* Ajustado para mostrar o carrossel em telas pequenas */
    }
}

/* Responsividade completa para telas menores */
@media (max-width: 480px) {
    .search-box form {
        flex-direction: column;
    }

    .search-box input[type="text"],
    .search-box .btn-go {
        width: 100%;
    }

    .app-card {
        flex-direction: column;
        width: 100%;
    }

    .app-image img {
        height: auto;
    }

    .app-details h2 {
        font-size: 1.5rem;
    }

    .btn-download {
        width: 100%;
        padding: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}
