/*
 * ElectroBike - Estilos Complementares ao Tailwind CSS
 * Estilos personalizados para animações e efeitos especiais
 */

/* Variáveis CSS */
:root {
    --primary: #ff8c00;
    --primary-dark: #e67e00;
    --secondary: #333;
    --light: #f9f9f9;
    --dark: #121212;
    --card-radius: 1.25rem;
    --transition-slow: 0.5s;
    --transition-medium: 0.3s;
    --transition-fast: 0.15s;
}

/* Comportamento de Scroll Suave */
html {
    scroll-behavior: smooth;
}

/* Animações Personalizadas */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Classes de Animação */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.animate-rotate {
    animation: rotate 10s linear infinite;
}

/* Delays de Animação */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }

/* Efeitos de Hover */
.hover-lift {
    transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform var(--transition-medium) ease;
}

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

/* Efeito de Vidro (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Gradientes */
.gradient-primary {
    background: linear-gradient(to right, var(--primary), #ffa500);
}

.gradient-primary-vertical {
    background: linear-gradient(to bottom, var(--primary), #ffa500);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, var(--primary), #ffa500);
}

/* Utilitários adicionais que complementam o Tailwind */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para componentes */
.filter-button.active {
    background-color: var(--primary);
    color: white;
}

/* Customizações para o Swiper */
.swiper-pagination-bullet-active {
    background-color: var(--primary) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
}

/* Container */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* Button Styles */
.btn { 
    padding: 12px 30px; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 600;
    text-decoration: none; 
    display: inline-block; 
    transition: all 0.3s ease; 
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    border: none;
}
.btn-primary { 
    background: var(--primary-gradient); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4); 
}
.btn-secondary { 
    background: transparent; 
    border: 2px solid #ff8c00; 
    color: #ff8c00; 
}
.btn-secondary:hover { 
    background: #ff8c00; 
    color: #fff; 
}
body.dark .btn-secondary { 
    border-color: #ff4500; 
    color: #ff4500; 
}
body.dark .btn-secondary:hover { 
    background: #ff4500; 
    color: #121212; 
}

/* Timer Sticky Bar */
.timer-sticky { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background: var(--primary-gradient); 
    color: #fff; 
    text-align: center; 
    padding: 12px 15px; 
    font-size: 1.1rem; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    font-weight: 600;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
}
.theme-toggle { 
    background: rgba(0, 0, 0, 0.2); 
    color: #fff; 
    padding: 6px 12px; 
    border-radius: 50px; 
    border: none; 
    cursor: pointer; 
    font-size: 0.9rem; 
    font-weight: 500;
    transition: all 0.3s ease; 
}
.theme-toggle:hover { 
    background: rgba(0, 0, 0, 0.4); 
}
.financing-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    animation: pulse 2s infinite;
}
.timer-sticky .countdown {
    font-size: 1.2rem;
}
.progress-bar {
    animation: decrease 30s linear forwards;
}

/* Hero Section */
.hero {
    padding: clamp(5rem, 10vw, 12rem) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}
.hero-content {
    flex: 1;
    padding: 0 30px;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    animation: pulse 4s infinite ease-in-out;
}
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}
.hero .tagline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff8c00; 
    animation: fadeInUp 1.2s ease;
}
body.dark .hero .tagline {
    color: #ff4500; 
}
.hero .description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1.4s ease;
}
.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.6s ease;
}
.hero .btn-gradient {
    background: var(--primary-gradient);
    border: none;
    animation: pulse 2s ease;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f5f9fc;
}
body.dark .features {
    background: #1a1a1a;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    background: #fff;
}
body.dark .feature-card {
    background: #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
body.dark .feature-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}
.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Bikes Highlight Section */
.bikes-highlight {
    padding: 80px 0;
}
.swiper-container-highlight .swiper-slide {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}
body.dark .swiper-container-highlight .swiper-slide {
    background: #222;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.swiper-container-highlight .swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}
body.dark .swiper-container-highlight .swiper-slide:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.swiper-container-highlight .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}
.swiper-container-highlight .swiper-slide h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 15px 0;
    font-family: 'Montserrat', sans-serif;
}
.swiper-container-highlight .swiper-slide .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff8c00; 
}
body.dark .swiper-container-highlight .swiper-slide .price {
    color: #ff4500; 
}
.swiper-container-highlight .swiper-slide .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Swiper Customization */
.swiper-container-highlight {
    padding: 30px 10px;
    overflow: visible;
}
.swiper-button-next, .swiper-button-prev {
    color: #ff8c00; 
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
body.dark .swiper-button-next, body.dark .swiper-button-prev {
    color: #ff4500; 
    background: #222;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
}
.swiper-container-highlight .swiper-slide p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    padding: 0 10px;
}
.swiper-container-highlight .swiper-slide .btn-quick-view {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Bikes Section */
.bikes {
    padding: 100px 0;
    background: #f5f9fc;
}
body.dark .bikes {
    background: #1a1a1a;
}
.bikes-controls {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.bikes-controls input {
    padding: 12px 25px;
    width: 100%;
    max-width: 350px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
body.dark .bikes-controls input {
    background: #222;
    border-color: #333;
    color: #fff;
}
.bikes-controls input:focus {
    border-color: #ff8c00; 
    outline: none;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.1); 
}
.bikes-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.bikes-filters button {
    padding: 8px 20px;
    border: 2px solid #ff8c00; 
    background: transparent;
    color: #ff8c00; 
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}
body.dark .bikes-filters button {
    border-color: #ff4500; 
    color: #ff4500; 
}
.bikes-filters button:hover, .bikes-filters button.active {
    background: #ff8c00; 
    color: #fff;
}
body.dark .bikes-filters button:hover, body.dark .bikes-filters button.active {
    background: #ff4500; 
    color: #121212;
}
.bikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.bike-item {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}
body.dark .bike-item {
    background: #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.bike-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
body.dark .bike-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.bike-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.bike-item:hover img {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
body.dark .bike-item:hover img {
    filter: drop-shadow(0 10px 15px rgba(255,255,255,0.05));
}
.bike-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}
.bike-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    height: 40px;
    overflow: hidden;
}
.specs-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}
body.dark .specs-preview {
    color: #aaa;
}
.specs-preview span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bike-item .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff8c00; 
}
body.dark .bike-item .price {
    color: #ff4500; 
}
.bike-item .badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge-favorite {
    position: absolute;
    top: 20px;
    right: 60px;
    background: #e74c3c; 
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}
.bike-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.bike-item .quantity-controls input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}
.bike-item .quantity-controls button {
    background: #ff8c00; 
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.bike-item .quantity-controls button:hover {
    background: #cc7000; 
}
.bike-item .favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.bike-item .favorite:hover, .bike-item .favorite.active {
    color: #e74c3c; 
    transform: scale(1.2);
}
.pulse-animation {
    animation: pulse 0.5s;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #fff;
}
body.dark .testimonials {
    background: #121212;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}
.testimonial-card {
    padding: 30px;
    border-radius: var(--card-radius);
    background: #f5f9fc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
body.dark .testimonial-card {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
body.dark .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.testimonial-rating {
    color: #f1c40f; 
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-author {
    font-weight: 600;
    text-align: right;
    color: #ff8c00; 
}
body.dark .testimonial-author {
    color: #ff4500; 
}

/* Comparison Section */
.compare-bikes {
    padding: 80px 0;
    background: #fff;
}
body.dark .compare-bikes {
    background: #121212;
}
.compare-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    margin-top: 40px;
}
.compare-item {
    flex: 1;
    border-radius: var(--card-radius);
    padding: 20px;
    background: #f5f9fc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
body.dark .compare-item {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.compare-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
}
body.dark .compare-select {
    background: #222;
    border-color: #333;
    color: #fff;
}
.compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ff8c00; 
}
body.dark .compare-vs {
    color: #ff4500; 
}
.compare-content img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}
.compare-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.compare-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}
.specs-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.spec {
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.spec.better {
    background: rgba(46, 204, 113, 0.1); 
    border-left: 3px solid #2ecc71; 
    font-weight: 600;
}
body.dark .spec.better {
    background: rgba(46, 204, 113, 0.2); 
}

/* Color selection in modal */
.color-options {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.color-option:hover, .color-option.selected {
    transform: scale(1.2);
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#selected-color {
    font-size: 0.9rem;
    margin: 5px 0 15px;
}

/* Modal Styles */
.modal-details, .checkout-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: var(--card-radius);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: var(--modal-shadow);
    backdrop-filter: blur(10px);
}
body.light .modal-details, body.light .checkout-modal {
    background: rgba(255, 255, 255, 0.95);
}
body.dark .modal-details, body.dark .checkout-modal {
    background: rgba(34, 34, 34, 0.95);
}
.modal-details.active, .checkout-modal.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}
.modal-details img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
}
.modal-details h3, .checkout-modal h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}
.modal-details p, .checkout-modal p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        padding: 130px 0 70px;
        text-align: center;
    }
    .hero-content {
        padding: 0 20px 40px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero .tagline {
        font-size: 1.8rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .footer-newsletter form {
        flex-direction: column;
    }
    .compare-container {
        flex-direction: column;
    }
    .compare-vs {
        transform: rotate(90deg);
        margin: -20px 0;
    }
}

@media (max-width: 768px) {
    .timer-sticky {
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero .tagline {
        font-size: 1.5rem;
    }
    .hero .description {
        font-size: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .bikes-controls {
        flex-direction: column;
    }
    .bikes-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .bike-item {
        padding: 20px;
    }
    .bike-item h3 {
        font-size: 1.2rem;
    }
    .bike-item p {
        font-size: 0.85rem;
    }
    .specs-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .compare-content .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}