/**
 * Main styles for WP Landing Page Builder
 * This imports all component styles and provides base styling
 */

/* Import component styles */
@import url('components.css');

/* Base styles */
.wplpb-widget {
    position: relative;
    width: 100%;
}

.wplpb-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Animations */
.wplpb-animated {
    animation: wplpb-fadeInUp 0.8s ease-out;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-meta {
    margin-bottom: 2rem;
}

.hero-meta p {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: #ff6b6b;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.pricing-card button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-container.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonials-container.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1rem;
}

.testimonials-container.carousel::-webkit-scrollbar {
    height: 8px;
}

.testimonials-container.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.testimonials-container.carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.testimonials-container.carousel .testimonial-card {
    min-width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-card .rating {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #555;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author .name {
    font-weight: 600;
    color: #333;
}

.testimonial-card .author .role {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .testimonials-container.grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .wplpb-widget-editor {
    min-height: 200px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.elementor-editor-active .wplpb-widget-editor::before {
    content: attr(data-widget-type);
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}