/* Interactive Playground Styles - Wizarding Theme */
.playground-container {
    background: rgba(10, 6, 20, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 0;
    backdrop-filter: blur(10px);
}

.playground-title {
    color: rgba(234, 163, 85, 0.9);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 18px 0;
}

/* Canvas Playground */
.canvas-playground {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.canvas-wrapper {
    background: #000000;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.canvas-playground canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

.canvas-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.canvas-btn {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(234, 163, 85, 0.1));
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #d4a574;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.canvas-btn:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(234, 163, 85, 0.2));
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.2);
    transform: translateY(-2px);
}

.canvas-btn.active {
    background: linear-gradient(135deg, rgba(116, 0, 1, 0.2), rgba(158, 27, 27, 0.2));
    border-color: #9e1b1b;
    color: #da3e3e;
}

/* Chat Playground */
.chat-playground {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages {
    background: #000000;
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    padding: 14px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 12px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    line-height: 1.5;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0.08));
    border: 1px solid rgba(212, 165, 116, 0.2);
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
}

.chat-message.ai {
    background: linear-gradient(135deg, rgba(234, 163, 85, 0.12), rgba(234, 163, 85, 0.08));
    border: 1px solid rgba(234, 163, 85, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.15);
    background: rgba(0, 0, 0, 0.7);
}

.chat-send-btn {
    background: linear-gradient(135deg, rgba(234, 163, 85, 0.15), rgba(212, 165, 116, 0.15));
    border: 1px solid rgba(234, 163, 85, 0.4);
    color: #eaa355;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, rgba(234, 163, 85, 0.25), rgba(212, 165, 116, 0.25));
    box-shadow: 0 0 20px rgba(234, 163, 85, 0.3);
    transform: translateY(-2px);
}

/* Sentiment Analyzer */
.sentiment-playground {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sentiment-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 165, 116, 0.3);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    min-height: 70px;
    resize: vertical;
    transition: all 0.3s ease;
}

.sentiment-input:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.15);
    background: rgba(0, 0, 0, 0.7);
}

.sentiment-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(212, 165, 116, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.sentiment-label {
    color: rgba(234, 163, 85, 0.9);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sentiment-score {
    flex: 1;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sentiment-fill {
    height: 100%;
    background: linear-gradient(90deg, #9e1b1b, #eaa355, #10b981);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(234, 163, 85, 0.3);
}

.sentiment-value {
    color: #eaa355;
    font-size: 15px;
    font-weight: 700;
    min-width: 100px;
    text-align: right;
}

/* GitHub Button - Wizarding Theme */
.github-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(234, 163, 85, 0.12), rgba(212, 165, 116, 0.12));
    border: 1px solid rgba(234, 163, 85, 0.4);
    color: #eaa355;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.github-btn:hover {
    background: linear-gradient(135deg, rgba(234, 163, 85, 0.2), rgba(212, 165, 116, 0.2));
    box-shadow: 0 0 25px rgba(234, 163, 85, 0.3);
    transform: translateY(-2px);
}

.github-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(136, 136, 136, 0.08), rgba(100, 100, 100, 0.08));
    border-color: rgba(136, 136, 136, 0.3);
    color: rgba(136, 136, 136, 0.7);
}

.github-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}