/* ========================================
 * Minecraft Font Demo Page Styles
 * Styles specific to the demo application
 * ======================================== */

/* Demo Page Theme Variables */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #4caf50;
    --text-color: #e0e0e0;
    --border-color: #333;
}

/* Demo Page Layout */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

h1 {
    text-align: center;
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Demo Preview Area */
.preview-area {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

@media (max-width: 768px) {
    .preview-area {
        flex-direction: column;
    }
}

/* Demo Textarea Styles */
textarea {
    width: 100%;
    height: 500px;
    background-color: #000;
    color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Minecraft Custom', sans-serif;
    font-size: 32px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    image-rendering: pixelated;
    line-height: 1.5;
}

textarea:focus {
    border-color: var(--primary-color);
}

/* Demo Output Area */
.item-lore {
    width: 100%;
    min-height: 500px;
    background-color: #000;
    color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Minecraft Custom', sans-serif;
    font-size: 32px;
    box-sizing: border-box;
    image-rendering: pixelated;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

/* Demo Footer */
.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Demo Control Panel */
.control-panel {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.control-panel label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Font Size Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-container input[type="range"] {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    background: #5cbf60;
    transform: scale(1.1);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

#font-size-display {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Toggle Buttons */
.toggle-button {
    background-color: var(--border-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.toggle-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.toggle-button.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Demo Specific Text Shadow Override */
.text-shadow {
    text-shadow: 0.125em 0.125em color-mix(in srgb, currentColor 25%, black);
}