/**
 * AI Visual Builder - Frontend Styles
 */

/* Preview Box */
.aivb-preview {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.aivb-preview h3 {
    margin-top: 0;
    color: #333;
}

.aivb-preview-content {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Buttons */
.aivb-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.aivb-button.primary {
    background: #4f46e5;
    color: #fff;
}

.aivb-button.primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.aivb-button.secondary {
    background: #10b981;
    color: #fff;
}

.aivb-button.secondary:hover {
    background: #059669;
}

.aivb-button.outline {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}

.aivb-button.outline:hover {
    background: #4f46e5;
    color: #fff;
}

/* Button Sizes */
.aivb-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.aivb-button.medium {
    padding: 12px 24px;
    font-size: 16px;
}

.aivb-button.large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Cards */
.aivb-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aivb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.aivb-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aivb-card-content {
    padding: 20px;
}

.aivb-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.aivb-card-body {
    color: #666;
    line-height: 1.6;
}

/* Grid */
.aivb-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .aivb-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Live Preview Mode */
body.aivb-preview-mode {
    padding-top: 60px;
}

.aivb-preview-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
}

.aivb-preview-toolbar .aivb-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.aivb-preview-toolbar .aivb-btn:hover {
    background: #4338ca;
}

/* Container */
.aivb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.aivb-section {
    padding: 60px 0;
}

.aivb-section.dark {
    background: #1a1a1a;
    color: #fff;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .aivb-button.large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .aivb-card img {
        height: 150px;
    }
}
