/* 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;
}

/* Page decorations */
.tool-container {
    position: relative;
    overflow: hidden;
}

.grass-block-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA7klEQVRYhe2XMQ7CMAxFXzN0YekROAE34QQMnIuJiYGJgYmJlSNwBA7AAVjKgFo1VdM4aZGKJUt/cPLlO3acCPwTCnAFHsAZGAKhxvlb4r9KAAfDHKAHzIE18AC2wBiIFP4VMAdK4A7MgF7dgnGvp2QsExjV+KcGO7XBNW8JXNJkAuwa5qwU/0yYQA6cFH8T0uCo+JtQvucmToWCEeBXwSiQyVwmqlEQ41bB1fX8Vi2ZMQp6zv2XgnwPHQWZo6DG5Ypw9/xKyecK9kmDRiiZr9LEDzKRKbiSuVsXvO1kpKyC02ve+gqWoODzf+CvPAFUVvdRnE1w7QAAAABJRU5ErkJggg==');
    background-size: cover;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

.diamond-ore-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA1klEQVQ4y83TMUoDQRTG8d/GQrCxVBCxSBFIYWMjeIFcQG+QK3iEXMAT2HkA02lI6QWsUqS1SGGRQrGwsfCzsJFld2Z3C/3gwQzD+/7vzTCpVqsI4hjbmHc5/sYAE/iqC2pJTGunMNFiPsA++jjAVdF8lKOvchXrBVTxlRVzknNgU0u5H0DI3J4aAOXC+CnvwDGupeBrPOI9ZD7MqLnDFt7yCrjNqOliA5M8AkJTb3RwhnbMXOAZRw14nOAhZN7AKe5rAr5xjlFsE5WYwgzP+V3/v3TxiAs8pVzfogKMEF94h+YAAAAASUVORK5CYII=');
    background-size: cover;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

/* Whitelist Generator Container */
.whitelist-generator-container {
    position: relative;
    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);
    z-index: 1;
    border-radius: 2px;
}

.whitelist-generator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.whitelist-generator-container h2 {
    color: var(--minecraft-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    color: #CCCCCC;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* Generator Input Section */
.generator-input {
    margin-bottom: 2rem;
}

.generator-input label {
    display: block;
    font-weight: bold;
    color: #E0E0E0;
    margin-bottom: 0.5rem;
}

.generator-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    font-family: 'Noto Sans Mono', monospace;
    resize: vertical;
    border-radius: 2px;
}

.generator-input textarea:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.2);
}

.input-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Processing Status */
.processing-status {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

.status-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--minecraft-green);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.status-text {
    color: #CCCCCC;
    font-size: 0.9rem;
    text-align: center;
}

/* Results Container */
.results-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.results-container h3 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #AAAAAA;
    margin-top: 0.25rem;
}

/* Results Content */
.results-content {
    margin-bottom: 1.5rem;
}

.valid-players, .error-players {
    margin-bottom: 1.5rem;
}

.valid-players h4, .error-players h4 {
    color: #E0E0E0;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--minecraft-secondary);
}

.players-list, .errors-list {
    display: grid;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(68, 189, 50, 0.1);
    border: 1px solid var(--minecraft-green);
    border-radius: 2px;
}

.error-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(170, 0, 0, 0.1);
    border: 1px solid #AA0000;
    border-radius: 2px;
}

.player-name {
    font-family: 'Noto Sans Mono', monospace;
    font-weight: bold;
    color: #E0E0E0;
}

.player-uuid {
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.8rem;
    color: #AAAAAA;
}

.error-message {
    color: #FF5555;
    font-size: 0.9rem;
    font-style: italic;
}

/* JSON Preview */
.json-preview {
    margin-top: 1.5rem;
}

.json-preview h4 {
    color: #E0E0E0;
    margin-bottom: 0.5rem;
}

.json-preview pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    padding: 1rem;
    border-radius: 2px;
    color: #E0E0E0;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 300px;
    overflow-y: auto;
}

.download-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Features Section */
.whitelist-features-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);
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

.whitelist-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.whitelist-features-section h2 {
    margin-bottom: 1.5rem;
    color: var(--minecraft-green);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--minecraft-green);
}

.feature-icon {
    font-size: 2rem;
    color: var(--minecraft-green);
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.feature-info h3 {
    color: #E0E0E0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.feature-info p {
    color: #AAAAAA;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Instructions */
.instructions {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(59, 133, 38, 0.1);
    border-left: 4px solid var(--minecraft-green);
    border-radius: 2px;
}

.instructions p {
    margin-bottom: 0.5rem;
    color: #AAAAAA;
}

.instructions code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.3rem;
    font-family: 'Noto Sans Mono', monospace;
    color: #FF8C00;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

/* Usage guide */
.usage-guide {
    background: var(--minecraft-panel);
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    z-index: 1;
    border-radius: 2px;
}

.usage-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.usage-guide h2 {
    margin-bottom: 1.5rem;
    color: var(--minecraft-green);
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.usage-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.usage-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

.usage-section h3 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.usage-section p {
    color: #AAAAAA;
    margin-bottom: 1rem;
}

.usage-section code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    margin: 1rem 0;
    font-family: 'Noto Sans Mono', monospace;
    color: #FF8C00;
    border: 1px solid var(--minecraft-secondary);
    white-space: pre-line;
    border-radius: 2px;
}

/* Button styles */
.minecraft-btn {
    background: var(--minecraft-green);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
}

.minecraft-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.3s ease;
}

.minecraft-btn:hover::before {
    left: 100%;
}

.minecraft-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.minecraft-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}

.minecraft-btn.secondary {
    background: var(--minecraft-secondary);
}

.minecraft-btn.secondary:hover {
    background: #556B2F;
}

.minecraft-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.minecraft-btn:disabled:hover {
    transform: none;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    animation: tooltip-appear 0.3s forwards;
}

@keyframes tooltip-appear {
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0, 0, 0, 0.8);
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (min-width: 992px) {
    .grass-block-decoration,
    .diamond-ore-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .whitelist-generator-container,
    .whitelist-features-section,
    .usage-guide {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .input-buttons {
        flex-direction: column;
    }
    
    .input-buttons .minecraft-btn {
        width: 100%;
        text-align: center;
    }
    
    .usage-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-actions .minecraft-btn {
        width: 100%;
        text-align: center;
    }
    
    .results-summary {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: auto;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
}
