/* Landing Page Styles */
.landing-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: heroFadeIn 1.5s ease-in-out;
    border-radius: 15px;
}

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

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: contentSlideUp 1s ease-out 0.3s both;
}

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

.hero-logo {
    max-width: 400px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255,203,5,0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 20px rgba(255,203,5,0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(255,203,5,0.8)); }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #FFCB05;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
    to { text-shadow: 2px 2px 8px rgba(255,203,5,0.5); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    animation: subtitleFade 1s ease-out 0.6s both;
}

@keyframes subtitleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(10, 25, 41, 0.9);
    border: 2px solid rgba(255,203,5,0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: cardFloat 1s ease-out 0.9s both;
}

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

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #FFCB05;
    box-shadow: 0 10px 25px rgba(255,203,5,0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFCB05;
    display: block;
    animation: numberCount 2s ease-out 1.2s both;
}

@keyframes numberCount {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-label {
    font-size: 1rem;
    color: #cdd4e0;
    margin-top: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: buttonsSlide 1s ease-out 1.5s both;
}

@keyframes buttonsSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-primary-cta {
    background: linear-gradient(45deg, #FFCB05, #FFA000);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255,203,5,0.3);
}

.btn-primary-cta:hover {
    background: linear-gradient(45deg, #FFA000, #FFCB05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,203,5,0.5);
    color: #000;
}

.btn-secondary-cta {
    background: transparent;
    color: #FFCB05;
    border: 2px solid #FFCB05;
}

.btn-secondary-cta:hover {
    background: #FFCB05;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,203,5,0.3);
}

.features-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    border-radius: 15px;
    padding: 4rem 0;
    backdrop-filter: blur(5px);
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255,203,5,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card.reveal.active[data-bg="unova"]::before {
    background-image: url('../images/Regioes/unova.png');
    opacity: 0.1;
}

.feature-card.reveal.active[data-bg="alola"]::before {
    background-image: url('../images/Regioes/alola.png');
    opacity: 0.1;
}

.feature-card.reveal.active[data-bg="galar"]::before {
    background-image: url('../images/Regioes/galar.png');
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #FFCB05;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 3rem;
    color: #FFCB05;
    margin-bottom: 1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.top-trainers {
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,203,5,0.3);
    backdrop-filter: blur(10px);
}

.trainer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trainer-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,203,5,0.5);
    transform: translateX(10px);
}

.trainer-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFCB05;
    min-width: 40px;
    text-shadow: 0 0 10px rgba(255,203,5,0.5);
}

.trainer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,203,5,0.3);
    transition: all 0.3s ease;
}

.trainer-item:hover .trainer-avatar {
    border-color: #FFCB05;
    transform: scale(1.1);
}

/* Floating particles effect */
.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,203,5,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,203,5,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,203,5,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,203,5,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { 
        font-size: 2rem; 
    }
    
    .hero-subtitle { 
        font-size: 1.1rem; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .trainer-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-section {
        padding: 2rem 0;
    }
}

/* Loading animation for dynamic content */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,203,5,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos das Abas */
.content-tabs {
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,203,5,0.3);
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(255,203,5,0.3);
    color: #cdd4e0;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn:hover {
    border-color: #FFCB05;
    color: #FFCB05;
}

.tab-btn.active {
    background: #FFCB05;
    color: #000;
    border-color: #FFCB05;
}

.tab-content {
    min-height: 400px;
}

.tab-panel h3 {
    color: #FFCB05;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.screenshot-caption {
    padding: 1rem;
    color: white;
    text-align: center;
    font-weight: bold;
}

/* Tutoriais */
.tutorials-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tutorial-item {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #FFCB05;
}

.tutorial-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.tutorial-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
    color: inherit;
    text-decoration: none;
}

.tutorial-content h4 {
    color: #FFCB05;
    margin-bottom: 0.5rem;
}

.tutorial-content p {
    color: #cdd4e0;
    margin: 0;
}

/* Notícias */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #FFCB05;
}

.news-date {
    background: #FFCB05;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    align-self: flex-start;
}

.news-content h4 {
    color: #FFCB05;
    margin-bottom: 0.5rem;
}

.news-content p {
    color: #cdd4e0;
    margin: 0;
}

/* Responsivo para abas */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tutorial-item {
        text-align: center;
    }
    
    .news-date {
        align-self: center;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 25, 41, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FFCB05, #FFA000);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FFA000, #FFCB05);
}

/* Indicador de Scroll */
.scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: 2%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: scrollBounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #FFCB05;
    border-bottom: 2px solid #FFCB05;
    transform: rotate(45deg);
    margin-bottom: 10px;
    animation: arrowBounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-5px); }
    60% { transform: rotate(45deg) translateY(-2px); }
}

/* Estilos para carrossel nos tutoriais */
.tutorial-carousel {
    text-align: center;
    margin: 1.5rem 0;
}

.carousel-container {
    position: relative;
    display: inline-block;
}

.carousel-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(255,203,5,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 10px;
}

.carousel-btn {
    background: rgba(255,203,5,0.8);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #FFCB05;
    transform: scale(1.1);
}

.carousel-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.carousel-dots {
    margin-top: 10px;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,203,5,0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FFCB05;
    transform: scale(1.2);
}

/* Modal para mobile */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.modal-btn {
    background: #FFCB05;
    color: #000;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.modal-counter {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #FFCB05;
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-image {
        max-height: 200px;
        width: auto;
    }
    
    .carousel-controls {
        display: none;
    }
    
    .carousel-dots {
        display: none;
    }
    
    .carousel-counter {
        display: none;
    }
}

@media (min-width: 769px) {
    .carousel-image {
        min-height: 300px;
        max-height: 500px;
    }
}