/* Golden Harmonic Duck Plugin Styles */

.golden-harmonic-duck-container {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    align-items: flex-start;
}

.golden-harmonic-duck-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ghd-canvas-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.ghd-canvas {
    width: 800px;
    height: 600px;
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #444;
    border-radius: 8px;
    background: #000;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 1;
    object-fit: contain;
    display: block;
    aspect-ratio: 4/3;
}

.ghd-controls {
    min-width: 280px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.ghd-controls h3 {
    color: #ffd700;
    margin: 0 0 20px 0;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.control-group label .value {
    color: #ffd700;
    font-weight: bold;
    float: right;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #333, #666);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group input[type="range"]:hover {
    background: linear-gradient(to right, #444, #777);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Loading indicator */
.ghd-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffd700;
    font-size: 18px;
    text-align: center;
    z-index: 10;
}

.ghd-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .golden-harmonic-duck-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        width: auto;
        max-width: 100%;
    }
    
    .ghd-controls {
        min-width: auto;
        width: 100%;
    }
    
    .ghd-canvas-wrapper {
        min-height: auto;
        width: 100%;
    }
    
    .ghd-canvas {
        width: 100%;
        height: auto;
        max-width: 400px;
        max-height: 300px;
        aspect-ratio: 4/3;
    }
}

/* Performance indicators */
.ghd-fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 10;
}

/* Particle count display */
.ghd-particle-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    z-index: 10;
}
