/* Embeds Container Styles */
.embeds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.embeds-header .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.embed-editor {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.embed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.embed-title-header {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.embed-header-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-embed-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color var(--transition-fast);
}

.toggle-embed-btn svg {
    transition: transform var(--transition-fast);
}

.toggle-embed-btn:hover {
    color: #333;
}

.embed-editor.collapsed .toggle-embed-btn svg {
    transform: rotate(180deg);
}

.embed-editor.collapsed .embed-content {
    display: none;
}

.remove-embed {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.remove-embed:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Field Styles */
.field-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.field-number {
    font-weight: 600;
    font-size: 14px;
}

.remove-field {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.remove-field:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Discord Preview Styles */
.discord-preview {
    background-color: #36393f;
    border-radius: 16px;
    padding: 20px;
    color: #dcddde;
    font-family: 'Whitney', 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: auto;
}

.discord-message-container {
    padding: 10px 0;
}

.discord-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.discord-author #previewUsername {
    color: white;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.discord-metadata {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}

.bot-tag {
    background-color: #5865F2;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
}

.timestamp {
    font-size: 12px;
    color: #a3a6aa;
    font-weight: 400;
}

.discord-content {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.375;
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: pre-line;
}

.discord-embeds-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 520px;
}

.discord-embed {
    border-left: 4px solid #5865F2;
    background-color: #2f3136;
    border-radius: 4px;
    padding: 12px;
    max-width: 520px;
    margin-top: 8px;
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.embed-author-name {
    color: #ffffff;
    font-weight: 500;
}

.embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.embed-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.embed-title a {
    color: #00b0f4;
    text-decoration: none;
}

.embed-title a:hover {
    text-decoration: underline;
}

.embed-description {
    font-size: 14px;
    line-height: 1.375;
    margin-bottom: 12px;
    color: #dcddde;
    word-wrap: break-word;
}

.embed-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.embed-field {
    font-size: 14px;
    margin-bottom: 5px;
}

.embed-field.full-width {
    grid-column: 1 / -1;
}

.embed-field-name {
    font-weight: 600;
    margin-bottom: 2px;
    color: #ffffff;
}

.embed-field-value {
    color: #dcddde;
}

.embed-thumbnail {
    float: right;
    margin-left: 15px;
    margin-bottom: 10px;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.embed-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    margin-top: 12px;
    display: block;
}

.embed-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a3a6aa;
    margin-top: 12px;
}

.embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.embed-timestamp {
    font-size: 12px;
    color: #a3a6aa;
}

/* Markdown Formatting */
.discord-markdown {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.discord-markdown em {
    font-style: italic;
}

.discord-markdown strong {
    font-weight: bold;
}

.discord-markdown u {
    text-decoration: underline;
}

.discord-markdown s {
    text-decoration: line-through;
}

.discord-markdown code {
    background-color: #2b2d31;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
}

.discord-markdown a {
    color: #00b0f4;
    text-decoration: none;
}

.discord-markdown a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .embed-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .embed-fields {
        grid-template-columns: 1fr;
    }
}