/**
 * [Senior Standard] Native Banner Style v3.8
 * Features: Responsive Grid, GSAP Optimized Layout
 */

.native-editor-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

/* Config Panel */
.config-panel {
    background: #fff;
    padding: 20px;
    height: fit-content;
}
.panel-header { margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; }
.panel-header h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: #1e293b; }
.panel-header p { margin: 0; font-size: 0.85rem; color: #64748b; }

.config-panel h3.mt-20 { margin-top: 20px; font-size: 1rem; color: #334155; margin-bottom: 10px; }

.form-group {
    margin-bottom: 10px;
}
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 4px; }
.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.color-row {
    display: flex;
    gap: 15px;
}
.color-group { flex: 1; }
.color-group input { height: 40px; padding: 2px; }

/* Preview Panel */
.preview-panel {
    background: #f8fafc;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.preview-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    min-height: 400px;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* The Banner Itself */
.banner-box {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
}

.banner-top {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.text-wrap { flex: 1; }
.title { margin: 0; font-size: 0.95rem; color: #1e293b; line-height: 1.2; }
.sponsor { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

.main-img-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}
.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-bottom {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}
.data { font-size: 0.85rem; font-weight: 600; color: #334155; }
.cta-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #007bff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .native-editor-container { grid-template-columns: 1fr; }
    .preview-canvas { padding: 20px; min-height: auto; }
}
