/* -----------------------------------
   EDITOR PRO — ECLIPCSS
   Eclipcss
----------------------------------- */

.editor-container {
    display: flex;
    height: calc(100vh - 80px);
    background: var(--bg, #f5f5f5);
    overflow: hidden;
}

/* -----------------------------------
   SIDEBAR
----------------------------------- */
.editor-sidebar {
    width: 320px;
    background: #0f0f0f;
    color: #fff;
    padding: 20px;
    border-right: 2px solid #1f1f1f;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.editor-sidebar h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tabs */
.tabs {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.tab {
    background: #1a1a1a;
    color: #ccc;
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #222;
    transition: 0.2s ease;
    text-align: left;
}

.tab:hover {
    background: #222;
}

.tab.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

/* -----------------------------------
   CONTROLES
----------------------------------- */
select,
input[type="range"] {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #1c1c1c;
    color: #fff;
    outline: none;
}

input[type="range"] {
    cursor: pointer;
}

/* -----------------------------------
   COLOR SWATCHES
----------------------------------- */
#editor-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: #fff;
}

/* -----------------------------------
   GEOMETRY BUTTONS
----------------------------------- */
#editor-geometry-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shape-btn {
    padding: 8px 12px;
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #222;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.shape-btn:hover {
    background: #222;
    color: #fff;
}

/* -----------------------------------
   DISPLAY DEL LOGOTIPO
----------------------------------- */
.editor-display {
    flex: 1;
    background: #e9e9e9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

#logo-preview {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    min-width: 420px;
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* -----------------------------------
   SHAPES BÁSICOS
----------------------------------- */
.shape {
    width: 50px;
    height: 50px;
    background: currentColor;
    display: inline-block;
}

/* Círculo */
.shape-circle {
    border-radius: 50%;
}

/* Cuadrado */
.shape-square {
    border-radius: 6px;
}

/* Triángulo */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 50px solid currentColor;
    background: none !important;
}

/* Hexágono */
.shape-hexagon {
    width: 60px;
    height: 34px;
    background: currentColor;
    position: relative;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 17px solid currentColor;
}

.shape-hexagon:after {
    top: 100%;
    border-top: 17px solid currentColor;
}

/* -----------------------------------
   SHAPES AVANZADOS
----------------------------------- */

/* Estrella */
.shape-star {
    width: 0;
    height: 0;
    color: currentColor;
    position: relative;
}
.shape-star:before {
    content: "★";
    font-size: 50px;
    color: currentColor;
}

/* Rombo */
.shape-diamond {
    width: 50px;
    height: 50px;
    background: currentColor;
    transform: rotate(45deg);
}

/* Gota */
.shape-drop {
    width: 40px;
    height: 60px;
    background: currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
}

/* Escudo */
.shape-shield {
    width: 60px;
    height: 70px;
    background: currentColor;
    clip-path: polygon(50% 0%, 90% 25%, 90% 70%, 50% 100%, 10% 70%, 10% 25%);
}

/* -----------------------------------
   ESTILOS VISUALES
----------------------------------- */

/* NEÓN */
.style-neon {
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

/* OUTLINE */
.style-outline {
    -webkit-text-stroke: 2px currentColor;
    color: transparent !important;
}

/* GRADIENT */
.style-gradient {
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    color: transparent;
}

/* GLASS */
.style-glass {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* -----------------------------------
   MOCKUPS
----------------------------------- */
.mockup-container {
    margin-top: 40px;
    text-align: center;
}

.mockup-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-btn {
    padding: 10px 16px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #333;
}

.mockup-btn:hover {
    background: #333;
}

#mockup-preview {
    width: 500px;
    height: 300px;
    background: #ddd;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -----------------------------------
   BOTONES DE EXPORTACIÓN
----------------------------------- */
.editor-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.editor-actions .btn {
    padding: 12px 18px;
    background: #4f46e5;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.editor-actions .btn:hover {
    background: #4338ca;
}

/* -----------------------------------
   ANIMACIONES
----------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
