/* Mandelbrot Explorer Styles */

.mandelbrot-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    padding: 0;
    max-width: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mandelbrot-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.mandelbrot-stats {
    display: flex;
    gap: 15px;
    font-weight: bold;
    color: #333;
}

.mandelbrot-stats.compact {
    font-size: 12px !important;
}

.mandelbrot-stats label {
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 13px;
}

.mandelbrot-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.mandelbrot-action-buttons label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.mandelbrot-canvas-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 4px;
    overflow: hidden;
    width: 100%;
    min-height: 400px;
    max-height: calc(100vh - 280px);
    height: 100%;
}

.mandelbrot-canvas {
    border: 2px solid #8b5cf6;
    background: #000;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    cursor: crosshair;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.mandelbrot-coords {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #8b5cf6;
    font-family: monospace;
    font-size: 12px;
    text-align: center;
}

.mandelbrot-controls-bottom {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: space-around;
    flex-shrink: 0;
}

.mandelbrot-control-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.mandelbrot-control-column h4 {
    margin: 0 0 5px 0;
    color: #1a0a2e;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 3px;
}

.mandelbrot-info {
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 13px;
    color: #555;
    flex-shrink: 0;
}

.mandelbrot-info strong {
    color: #1a0a2e;
}

.mandelbrot-info a {
    color: #8b5cf6;
    text-decoration: none;
}

.mandelbrot-info a:hover {
    text-decoration: underline;
}

.mandelbrot-btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
    border: none;
    border-radius: 4px;
    background: #1a0a2e;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mandelbrot-btn:hover {
    background: #2d1a4e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.mandelbrot-btn-small {
    padding: 3px 8px !important;
    font-size: 11px !important;
    border: none;
    border-radius: 3px;
    background: #1a0a2e;
    color: white;
    cursor: pointer;
}

.mandelbrot-btn-small:hover {
    background: #2d1a4e;
}

/* Mobile Zoom Controls */
.mandelbrot-mobile-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
}

.mandelbrot-zoom-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    background: #1a0a2e;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandelbrot-zoom-btn:hover {
    background: #2d1a4e;
    transform: scale(1.1);
}

.mandelbrot-zoom-btn:active {
    transform: scale(0.95);
    background: #8b5cf6;
}

.mandelbrot-zoom-btn.zoom-in {
    border-color: #00ff88;
}

.mandelbrot-zoom-btn.zoom-out {
    border-color: #ff6b6b;
}

.zoom-label {
    color: #aaa;
    font-size: 12px;
}

/* Show mobile controls on touch devices */
@media (max-width: 768px) {
    .mandelbrot-mobile-controls {
        display: flex;
    }

    .mandelbrot-controls-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .mandelbrot-controls-bottom {
        flex-direction: column;
    }

    .mandelbrot-canvas-section {
        min-height: 300px;
        max-height: calc(100vh - 350px);
    }
}

/* Also show on touch-capable devices regardless of screen size */
@media (hover: none) and (pointer: coarse) {
    .mandelbrot-mobile-controls {
        display: flex;
    }
}
