/**
 * Frontend styles for GrapesJS widgets and shortcodes
 */

/* Button Component */
.gjs-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gjs-button-primary {
    background-color: #4F46E5;
    color: #fff;
}

.gjs-button-primary:hover {
    background-color: #4338CA;
    color: #fff;
}

.gjs-button-secondary {
    background-color: #6B7280;
    color: #fff;
}

.gjs-button-secondary:hover {
    background-color: #4B5563;
}

.gjs-button-outline {
    background-color: transparent;
    color: #4F46E5;
    border-color: #4F46E5;
}

.gjs-button-outline:hover {
    background-color: #4F46E5;
    color: #fff;
}

.gjs-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.gjs-button-medium {
    padding: 12px 24px;
    font-size: 16px;
}

.gjs-button-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Alert Component */
.gjs-alert {
    padding: 16px;
    border-radius: 4px;
    margin: 16px 0;
    border-left: 4px solid;
}

.gjs-alert-info {
    background-color: #EFF6FF;
    border-color: #3B82F6;
    color: #1E40AF;
}

.gjs-alert-success {
    background-color: #F0FDF4;
    border-color: #10B981;
    color: #065F46;
}

.gjs-alert-warning {
    background-color: #FFFBEB;
    border-color: #F59E0B;
    color: #92400E;
}

.gjs-alert-error {
    background-color: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.gjs-alert-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.gjs-alert-content {
    line-height: 1.5;
}

/* Column Layout */
.gjs-column {
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
}

.gjs-column-1-4 { width: 25%; }
.gjs-column-1-3 { width: 33.333%; }
.gjs-column-1-2 { width: 50%; }
.gjs-column-2-3 { width: 66.666%; }
.gjs-column-3-4 { width: 75%; }
.gjs-column-1-1 { width: 100%; }

/* Clear floats */
.gjs-column::after {
    content: "";
    display: table;
    clear: both;
}

/* Hero Section */
.gjs-hero {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.gjs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.gjs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.gjs-hero-headline {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gjs-hero-subheadline {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.gjs-hero-cta {
    display: inline-block;
    padding: 16px 32px;
    background-color: #4F46E5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.3s;
}

.gjs-hero-cta:hover {
    background-color: #4338CA;
    color: #fff;
}

/* Features Section */
.gjs-features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gjs-features-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.gjs-features-grid {
    display: grid;
    gap: 30px;
}

.gjs-features-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gjs-features-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gjs-features-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .gjs-features-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Pricing Card */
.gjs-pricing-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

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

.gjs-pricing-featured {
    border-color: #4F46E5;
    border-width: 2px;
    position: relative;
}

.gjs-pricing-featured::before {
    content: 'Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4F46E5;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.gjs-pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.gjs-pricing-price {
    margin-bottom: 30px;
}

.gjs-pricing-amount {
    font-size: 48px;
    font-weight: 700;
    color: #4F46E5;
}

.gjs-pricing-period {
    display: block;
    font-size: 14px;
    color: #6B7280;
    margin-top: 5px;
}

.gjs-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.gjs-pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
}

.gjs-pricing-features li:last-child {
    border-bottom: none;
}

.gjs-pricing-cta {
    display: inline-block;
    padding: 12px 32px;
    background-color: #4F46E5;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.gjs-pricing-cta:hover {
    background-color: #4338CA;
    color: #fff;
}

/* FAQ Section */
.gjs-faq {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.gjs-faq-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.gjs-faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* CTA Section */
.gjs-cta {
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.gjs-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.gjs-cta-headline {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.gjs-cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.gjs-cta-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: #fff;
    color: #4F46E5;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.gjs-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .gjs-hero-headline {
        font-size: 32px;
    }

    .gjs-hero-subheadline {
        font-size: 16px;
    }

    .gjs-features-title,
    .gjs-faq-title,
    .gjs-cta-headline {
        font-size: 28px;
    }

    .gjs-column {
        width: 100% !important;
        float: none;
    }
}
