/* Cobblestone Generator CSS - Minecraft Style */

/* Import Minecraft-style variables */
:root {
  --primary-color: #54AA54;
  --secondary-color: #8B5A2B;
  --bg-color: #F5F5F5;
  --dirt-color: #8B5A2B;
  --stone-color: #7C7C7C;
  --cobblestone-color: #535353;
  --lava-color: #E25822;
  --water-color: #3F76E4;
  --wood-color: #A0522D;
  --border-color: #333333;
  --text-color: #333333;
  --redstone-color: #FF0000;
}

/* Breadcrumb Navigation */
.minecraft-breadcrumb {
  background-color: #ECECEC;
  padding: 1rem 0;
  border-bottom: 2px solid #CCCCCC;
  margin-top: 76px; /* 增加与固定导航栏的距离 */
}

.minecraft-breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
}

.minecraft-breadcrumb .breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.minecraft-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.minecraft-breadcrumb .breadcrumb-item.active {
  color: var(--text-color);
}

.minecraft-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #777;
}

/* Hero Section */
.generator-hero {
  background-color: var(--cobblestone-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
  color: white;
  padding: 3rem 0;
  border-bottom: 4px solid #000;
  text-shadow: 2px 2px 0 #000;
}

.generator-hero h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.generator-hero p {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
}

/* Generator Tool */
.generator-tool {
  background-color: var(--bg-color);
  padding: 2rem 0;
}

.generator-card {
  background-color: white;
  border: 4px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: 0 0 0 4px #555555;
  margin-bottom: 1.5rem;
}

.generator-card-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

/* Generator Type Selector */
.generator-selector {
  gap: 10px;
  margin-top: 0.5rem;
  justify-content: center;
}

.generator-option {
  width: 90px;
  height: 90px;
  border: 2px solid #cccccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #f9f9f9;
  padding: 5px;
  margin-bottom: 10px;
}

.generator-icon {
  padding: 8px;
  margin-bottom: 5px;
  color: var(--cobblestone-color);
}

.generator-option span {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  text-align: center;
}

.generator-option.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
  background-color: #e9f7e9;
}

/* Form Controls */
.form-label {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
}

.minecraft-version-toggle {
  width: 100%;
  margin-top: 0.5rem;
}

.minecraft-btn-outline {
  background-color: #f0f0f0;
  border: 2px solid #cccccc;
  color: var(--text-color);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
}

.btn-check:checked + .minecraft-btn-outline {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.form-check {
  margin-bottom: 0.5rem;
}

.form-check-label {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  cursor: pointer;
}

/* Buttons */
.minecraft-button {
  background-color: var(--primary-color);
  border: 2px solid #1a7a1a;
  color: white;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  transition: all 0.2s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 
              inset 0 -2px 0 rgba(0,0,0,0.25);
}

.minecraft-button:hover {
  background-color: #64c464;
  transform: translateY(-2px);
}

.minecraft-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.minecraft-button-small {
  background-color: var(--primary-color);
  border: 2px solid #1a7a1a;
  color: white;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
  transition: all 0.2s;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 
              inset 0 -2px 0 rgba(0,0,0,0.25);
}

.minecraft-button-small:hover {
  background-color: #64c464;
  transform: translateY(-2px);
}

/* Output Card */
.output-card {
  background-color: white;
  border: 4px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: 0 0 0 4px #555555;
}

.output-card-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.design-display {
  margin-bottom: 1.5rem;
}

.design-img {
  border: 3px solid var(--border-color);
  max-height: 350px;
  object-fit: contain;
}

/* Text Diagram Styles */
.design-diagram {
  border: 3px solid var(--border-color);
  background-color: #f8f9fa;
  font-family: monospace;
  text-align: center;
}

.diagram-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.diagram-content {
  background-color: white;
  border: 1px solid #ddd;
  padding: 1rem;
  overflow-x: auto;
}

.diagram-ascii {
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
  margin-bottom: 0;
  text-align: left;
}

.diagram-note {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: #6c757d;
}

.design-details {
  border: 2px solid #cccccc;
  padding: 1rem;
  border-radius: 4px;
}

.design-details h4 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.design-details h5 {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.materials-list {
  list-style-type: none;
  padding-left: 0;
}

.materials-list li {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
}

.materials-list li i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.schematic-export {
  text-align: center;
  margin-top: 1rem;
}

/* Info Card */
.info-card {
  background-color: white;
  border: 4px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: 0 0 0 4px #555555;
  margin-top: 0;
}

.info-card-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.info-content {
  font-family: 'VT323', monospace;
}

.generator-type-info {
  margin-bottom: 1.2rem;
}

.generator-type-info h4 {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.generator-type-info h4 i {
  margin-right: 0.5rem;
}

.generator-type-info p {
  font-size: 1.1rem;
  margin-left: 1.5rem;
}

.info-tip {
  background-color: #fffde7;
  border: 2px solid #ffecb3;
  padding: 1rem;
  border-radius: 4px;
}

.info-tip h4 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #b7801f;
}

.info-tip p {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Comprehensive Guide Section */
.comprehensive-guide {
  padding: 3rem 0;
}

.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.guide-content {
  background-color: white;
  border: 4px solid var(--border-color);
  padding: 2rem;
  box-shadow: 0 0 0 4px #555555;
}

.guide-content h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content p, .guide-content li {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.guide-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.tutorial-steps {
  margin-top: 1.5rem;
}

.tutorial-step {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h4 {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0;
}

.troubleshooting-section {
  margin-top: 1.5rem;
}

.issue-solution {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  padding: 1rem;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.issue, .solution {
  flex: 1;
  min-width: 250px;
}

.issue h4, .solution h4 {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.issue h4 i, .solution h4 i {
  margin-right: 0.5rem;
}

/* Comparison Section */
.comparison-section {
  padding: 3rem 0;
}

.section-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.minecraft-table {
  border: 3px solid var(--border-color);
  font-family: 'VT323', monospace;
}

.minecraft-table th {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid #1a7a1a;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.minecraft-table td {
  font-size: 1.1rem;
  padding: 0.8rem;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.minecraft-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.minecraft-table tr:hover {
  background-color: #e9f7e9;
}

/* FAQ Section */
.faq-section {
  padding: 3rem 0;
}

.minecraft-accordion {
  margin-top: 2rem;
}

.minecraft-accordion .accordion-item {
  border: 2px solid #cccccc;
  margin-bottom: 0.5rem;
  border-radius: 0;
}

.minecraft-accordion .accordion-header {
  margin-bottom: 0;
}

.minecraft-accordion .accordion-button {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #f5f5f5;
  color: var(--text-color);
  padding: 1.2rem;
}

.minecraft-accordion .accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.minecraft-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.minecraft-accordion .accordion-body {
  padding: 1.2rem;
  background-color: white;
}

.minecraft-accordion .accordion-body p {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Related Generators Section */
.related-generators {
  padding: 3rem 0;
}

.related-card {
  background-color: white;
  border: 3px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.related-icon {
  margin-bottom: 1rem;
}

.obsidian-icon {
  color: #441199;
}

.tnt-icon {
  color: #E53935;
}

.farm-icon {
  color: #43A047;
}

.related-card h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.related-card p {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .generator-hero h1 {
    font-size: 1.8rem;
  }
  
  .info-card {
    margin-top: 2rem;
  }
  
  .issue-solution {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .generator-selector {
    justify-content: center;
  }
  
  .design-img {
    max-height: 250px;
  }
}

@media (max-width: 576px) {
  .generator-hero h1 {
    font-size: 1.5rem;
  }
  
  .generator-hero p {
    font-size: 1.2rem;
  }
  
  .generator-option {
    width: 80px;
    height: 80px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .minecraft-breadcrumb {
    margin-top: 65px;
  }
} 