/**
 * WebPhotoNC Instructions Styles
 *
 * @package    WebPhotoNC
 * @subpackage WebPhotoNC/public/css
 */

.webphotonc-instructions-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

.webphotonc-instructions-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Header */
.instructions-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #0073aa;
}

.instructions-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #0073aa;
}

.instructions-header .subtitle {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

/* Table of Contents */
.instructions-toc {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.instructions-toc h2 {
    margin-top: 0;
    color: #0073aa;
}

.instructions-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-toc li {
    margin: 10px 0;
}

.instructions-toc a {
    color: #0073aa;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.instructions-toc a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Sections */
.instruction-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.instruction-section h2 {
    font-size: 2em;
    color: #0073aa;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.instruction-section h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.instruction-section h4 {
    font-size: 1.2em;
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.instruction-section p {
    margin-bottom: 15px;
}

.instruction-section ul,
.instruction-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.instruction-section li {
    margin-bottom: 10px;
}

/* Feature Highlights */
.feature-highlights {
    background: #e8f4f8;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.feature-highlights h3 {
    margin-top: 0;
    color: #0073aa;
}

.feature-highlights ul {
    margin-bottom: 0;
}

/* Step by Step */
.step-by-step {
    margin: 30px 0;
}

.step {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.step h3 {
    margin-top: 0;
    color: #28a745;
}

/* Processing Types */
.processing-type {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.processing-type:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.processing-type h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 1.6em;
}

.processing-type .details {
    margin-top: 20px;
}

.processing-type .details h4 {
    color: #555;
    margin-top: 15px;
}

/* Settings Tables */
.settings-group {
    margin-bottom: 40px;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-table th,
.settings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.settings-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.settings-table tr:hover {
    background: #f8f9fa;
}

.settings-table code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63384;
}

/* G-code Commands Table */
.gcode-commands {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gcode-commands th,
.gcode-commands td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.gcode-commands th {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.gcode-commands code {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #d63384;
    font-weight: bold;
}

/* Feature Details */
.feature-detail {
    margin-bottom: 40px;
}

.feature-detail h3 {
    color: #0073aa;
}

/* Quality Guide */
.quality-guide {
    margin: 20px 0;
}

.quality-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.quality-item.quality-high {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quality-item.quality-medium {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.quality-item.quality-low {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Stock Presets */
.stock-presets,
.custom-stock {
    margin-bottom: 30px;
}

.stock-presets ul,
.custom-stock ul {
    background: #f8f9fa;
    padding: 20px 20px 20px 50px;
    border-radius: 4px;
}

/* G-code Info */
.gcode-info {
    margin-bottom: 40px;
}

.download-info ol {
    background: #f8f9fa;
    padding: 20px 20px 20px 50px;
    border-radius: 4px;
}

/* Tips Categories */
.tips-category {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.tips-category h3 {
    margin-top: 0;
    color: #0073aa;
}

.tips-category ul {
    margin-bottom: 0;
}

/* Troubleshooting Items */
.troubleshooting-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.troubleshooting-item h3 {
    margin-top: 0;
    color: #dc3545;
}

.troubleshooting-item strong {
    color: #28a745;
}

/* Boxes */
.tip-box,
.note-box {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.tip-box {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.note-box {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.tip-box strong,
.note-box strong {
    color: inherit;
    font-weight: 600;
}

/* Footer */
.instructions-footer {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 2px solid #e0e0e0;
    color: #666;
}

.instructions-footer p {
    margin: 10px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .webphotonc-instructions-container {
        padding: 20px;
    }

    .instructions-header h1 {
        font-size: 2em;
    }

    .instruction-section h2 {
        font-size: 1.6em;
    }

    .instruction-section h3 {
        font-size: 1.3em;
    }

    .settings-table,
    .gcode-commands {
        font-size: 0.9em;
    }

    .settings-table th,
    .settings-table td,
    .gcode-commands th,
    .gcode-commands td {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 480px) {
    .webphotonc-instructions-wrapper {
        padding: 0 10px;
    }

    .webphotonc-instructions-container {
        padding: 15px;
    }

    .instructions-header h1 {
        font-size: 1.6em;
    }

    .instructions-header .subtitle {
        font-size: 1em;
    }

    .settings-table,
    .gcode-commands {
        font-size: 0.8em;
    }
}

/* Print Styles */
@media print {
    .webphotonc-instructions-wrapper {
        max-width: 100%;
    }

    .webphotonc-instructions-container {
        box-shadow: none;
    }

    .instructions-toc a {
        color: #000;
        text-decoration: none;
    }

    .instruction-section {
        page-break-inside: avoid;
    }

    .processing-type,
    .troubleshooting-item,
    .tips-category {
        page-break-inside: avoid;
    }
}