/* Breadcrumb navigation */
.breadcrumb {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666666;
}

.breadcrumb a {
    color: var(--minecraft-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* MOTD container */
.motd-container {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
}

.editor-section h2 {
    margin-bottom: 1rem;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Editor toolbar */
.editor-toolbar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    border-bottom: none;
    padding: 0.5rem;
    gap: 0.25rem;
}

.tool-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--minecraft-panel);
    border: 1px solid var(--minecraft-secondary);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    color: #E0E0E0;
}

.tool-btn:hover {
    background: rgba(59, 133, 38, 0.2);
}

.tool-btn.active {
    background: rgba(59, 133, 38, 0.4);
    border-color: var(--minecraft-green);
}

.divider {
    width: 1px;
    height: 24px;
    background: var(--minecraft-secondary);
    margin: 0 0.5rem;
}

/* Color picker */
.color-picker-btn {
    position: relative;
    margin-left: 0.5rem;
}

.color-preview {
    width: 30px;
    height: 30px;
    border: 1px solid var(--minecraft-secondary);
    background: #FFFF55;
    cursor: pointer;
}

.color-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--minecraft-panel);
    border: 1px solid var(--minecraft-secondary);
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    z-index: 100;
    display: none;
}

.color-dropdown.active {
    display: grid;
}

.color-option {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

/* Text area */
.motd-textarea-container {
    position: relative;
}

#motdTextarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--minecraft-secondary);
    font-size: 1rem;
    font-family: 'Noto Sans', sans-serif;
    resize: none;
    background: url('images/motd.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background-color: rgba(29, 28, 26, 0.8);
    background-blend-mode: overlay;
    letter-spacing: 0.05em;
}

#motdTextarea:focus {
    outline: none;
    border-color: var(--minecraft-green);
}

.line-limit {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
}

/* Preview button */
.preview-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Server preview */
.server-preview-container {
    max-width: 800px;
    margin: 2rem auto;
}

.server-preview {
    background: url('images/motd.png');
    background-size: cover;
    background-position: center;
    background-color: rgba(29, 28, 26, 0.8);
    background-blend-mode: overlay;
    padding: 1rem;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.server-preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-icon {
    width: 64px;
    height: 64px;
}

.server-info {
    flex: 1;
}

.server-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'VT323', monospace;
}

.server-motd {
    color: #666666;
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 0.05em;
}

.motd-line {
    margin-bottom: 0.25rem;
    word-break: break-word;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.server-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.player-count {
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ping-indicator {
    display: flex;
    gap: 2px;
}

.ping-bar {
    width: 3px;
    height: 12px;
    background: #555;
}

.ping-bar.active {
    background: var(--minecraft-green);
}

/* Create button */
.create-btn-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Copy area */
.copy-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: url('images/motd.png');
    background-size: cover;
    background-position: center;
    background-color: rgba(29, 28, 26, 0.8);
    background-blend-mode: overlay;
    overflow: hidden;
    border: 2px solid var(--minecraft-secondary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.copy-header {
    background: var(--minecraft-green);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'VT323', monospace;
}

.copy-content {
    padding: 1rem;
    color: white;
    font-family: 'Noto Sans Mono', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 60px;
    letter-spacing: 0.05em;
    background-color: rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Usage instructions */
.usage-section {
    background: var(--minecraft-panel);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
}

.usage-content {
    max-width: 800px;
    margin: 0 auto;
}

.usage-content ul {
    list-style-type: none;
    padding: 0;
}

.usage-content li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666666;
}

.usage-content li::before {
    content: "•";
    color: var(--minecraft-green);
    position: absolute;
    left: 0;
}

/* Text formatting styles */
.bold { font-weight: bold; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }
.strikethrough { text-decoration: line-through; }
.obfuscated { letter-spacing: 2px; }

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .motd-container {
        padding: 1rem;
    }
    
    .server-preview-header {
        flex-direction: column;
        text-align: center;
    }
    
    .server-status {
        align-items: center;
        margin-top: 1rem;
    }
} 