:root {
    --optimization-card-bg: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #E0E0E0;
}

.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-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;
    overflow: hidden;
}

.tool-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;
}

.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;
}

.stone-block-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background-color: var(--minecraft-stone, #7D7D7D);
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none;
}

header {
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.minecraft-title {
    font-family: 'VT323', 'VT323-Fallback', monospace;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--minecraft-green);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: #666666;
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

h2 {
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

h3 {
    color: #E0E0E0;
}

.section-subtitle {
    color: #AAAAAA;
    margin: 0.5rem 0 1.5rem;
    max-width: 900px;
}

.overview-section {
    margin-bottom: 2.5rem;
}

.overview-header {
    margin-bottom: 1.5rem;
}

.overview-header h2 {
    margin-bottom: 0.5rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: var(--optimization-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.overview-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.overview-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 0;
}

.overview-card li {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.overview-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--minecraft-accent);
}

.quick-fix-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.quick-fix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.quick-fix-card {
    background: var(--optimization-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-fix-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.priority-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

.priority-high {
    background: rgba(255, 71, 87, 0.18);
    color: #ff6b81;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.priority-medium {
    background: rgba(255, 184, 0, 0.18);
    color: #ffd866;
    border: 1px solid rgba(255, 184, 0, 0.4);
}

.file-label {
    color: #AAAAAA;
}

.quick-fix-card h3 {
    font-size: 1.05rem;
}

.value-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: rgba(59, 133, 38, 0.25);
    border: 1px solid rgba(59, 133, 38, 0.5);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.value-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #c5e5c8;
}

.value-text {
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
}

.value-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
    background: rgba(59, 133, 38, 0.35);
}

.value-pill.copied {
    background: rgba(76, 175, 80, 0.4);
    border-color: rgba(129, 199, 132, 0.9);
}

.fix-impact {
    font-size: 0.9rem;
    color: #DDDDDD;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CCCCCC;
}

.hint-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #AAAAAA;
}

.config-section-group {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.config-section {
    margin-top: 2rem;
}

.config-section-header {
    margin-bottom: 1rem;
}

.config-section-header h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.config-table-wrapper {
    overflow-x: auto;
}

.config-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
}

.config-table thead {
    background: rgba(0, 0, 0, 0.5);
}

.config-table th,
.config-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.config-table th {
    font-weight: 600;
    color: #E0E0E0;
}

.config-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table-value-pill {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(68, 189, 50, 0.18);
    border: 1px solid rgba(68, 189, 50, 0.6);
    cursor: pointer;
    font-family: 'Noto Sans Mono', monospace;
    font-size: 0.85rem;
}

.table-value-pill:hover {
    background: rgba(68, 189, 50, 0.3);
}

.table-value-pill.copied {
    background: rgba(76, 175, 80, 0.4);
}

.pitfall-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.pitfall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pitfall-card {
    background: var(--optimization-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.pitfall-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.pitfall-card p {
    font-size: 0.9rem;
    color: #DDDDDD;
}

.workflow-section {
    margin-top: 2.5rem;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.workflow-step {
    background: var(--optimization-card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    position: relative;
}

.step-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--minecraft-accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.workflow-step h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.workflow-step p {
    font-size: 0.9rem;
    color: #DDDDDD;
}

.related-tools-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.related-tools-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.related-tools-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #AAAAAA;
}

@media (min-width: 992px) {
    .grass-block-decoration,
    .stone-block-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 1.25rem;
    }
    
    .tool-container {
        padding: 1.5rem 1.25rem;
    }
    
    header {
        padding: 2.5rem 1rem 1rem;
    }
}

