/* ===== message.html page-specific styles ===== */

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Editor Panel */
.editor-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.input-group { margin-bottom: 1.5rem; }

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.text-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

textarea.text-input { resize: vertical; min-height: 100px; }

/* Bubble Style Selector */
.bubble-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bubble-option {
    padding: 1.5rem;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.bubble-option:hover { border-color: #667eea; transform: translateY(-2px); }

.bubble-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.bubble-preview {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding: 0.8rem 1.2rem;
}

.bubble-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Bubble Styles */
.bubble-ios {
    background: white;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.bubble-ios::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 3px rgba(0,0,0,0.05);
}

.bubble-android { background: #e8e8e8; border-radius: 18px 18px 18px 4px; }

.bubble-whatsapp { background: #dcf8c6; border-radius: 7px 7px 7px 0; }
.bubble-whatsapp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 10px;
    height: 10px;
    background: #dcf8c6;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.bubble-telegram { background: #0088cc; color: white; border-radius: 15px 15px 4px 15px; }

.bubble-discord { background: #36393f; color: #dcddde; border-radius: 5px; }

.bubble-twitter { background: #1da1f2; color: white; border-radius: 20px; }

/* Color Options */
.color-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}
.color-option:hover { transform: scale(1.1); }
.color-option.active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Preview Section */
.preview-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.preview-container {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.preview-bubble {
    position: relative;
    padding: 0.8rem 1.2rem;
    max-width: 70%;
    font-size: 1.1rem;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
}
.preview-bubble:hover { opacity: 0.9; }
.preview-bubble::after {
    content: '';
    position: absolute;
}

/* Action Buttons */
.action-buttons { display: flex; gap: 1rem; }

.btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-dark);
}
.btn-secondary:hover { background: #cbd5e0; }

/* Responsive */
@media (max-width: 768px) {
    .bubble-selector { grid-template-columns: 1fr 1fr; }
    .preview-bubble { max-width: 85%; }
}
@media (max-width: 480px) {
    .bubble-selector { grid-template-columns: 1fr; }
}
