/* Mockup Creator - Frontend Styles */

.bfmc-creator-trigger {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

.bfmc-open-creator {
    background: #1a1a2e !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: background .3s, transform .3s !important;
    font-family: 'Montserrat', sans-serif !important;
}

.bfmc-open-creator:hover {
    background: #e94560 !important;
    transform: translateY(-2px) !important;
}

.bfmc-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* Modal */
.bfmc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.bfmc-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: bfmcFadeIn .3s ease;
}

@keyframes bfmcFadeIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

.bfmc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.bfmc-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Montserrat', sans-serif;
}

.bfmc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}

.bfmc-modal-close:hover {
    color: #e94560;
}

.bfmc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.bfmc-creator-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.bfmc-creator-canvas-wrap {
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.bfmc-creator-canvas-wrap canvas {
    display: block;
    max-width: 100%;
}

.bfmc-creator-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Zone controls */
.bfmc-zone-control {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: border-color .2s;
}

.bfmc-zone-control:hover,
.bfmc-zone-control.active {
    border-color: #1a1a2e;
}

.bfmc-zone-control h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bfmc-zone-type-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.bfmc-zone-type-badge.image {
    background: #dbeafe;
    color: #2563eb;
}

.bfmc-zone-type-badge.text {
    background: #dcfce7;
    color: #16a34a;
}

/* Image upload zone */
.bfmc-image-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}

.bfmc-image-upload:hover {
    border-color: #2563eb;
    background: #f0f6ff;
}

.bfmc-image-upload.has-image {
    border-style: solid;
    padding: 0;
}

.bfmc-image-upload img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.bfmc-image-upload .bfmc-upload-icon {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.bfmc-image-upload p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.bfmc-image-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Text input zone */
.bfmc-text-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}

.bfmc-text-input:focus {
    border-color: #1a1a2e;
}

.bfmc-char-count {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

/* Control rows */
.bfmc-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bfmc-control-row label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    min-width: 60px;
}

.bfmc-control-row select,
.bfmc-control-row input[type="range"] {
    flex: 1;
}

/* Footer */
.bfmc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

.bfmc-modal-footer .button-primary {
    background: #1a1a2e !important;
    border-color: #1a1a2e !important;
    padding: 10px 32px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

.bfmc-modal-footer .button-primary:hover {
    background: #e94560 !important;
    border-color: #e94560 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bfmc-creator-layout {
        grid-template-columns: 1fr;
    }

    .bfmc-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
}
