/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
    line-height: 1.5;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 300;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(580px, 1fr));
    gap: 0;
}

.equipment-section {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.equipment-section:nth-child(even) {
    background-color: #fafbfc;
}

.section-header {
    padding: 20px 30px;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
}

.section-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2em;
}

.section-title {
    font-size: 1.8em;
    font-weight: 400;
    color: #2c3e50;
}

/* Color scheme inspired by the examples */
.cameras .section-header { border-bottom-color: #ff9999; }
.cameras .section-number { background-color: #ff9999; }

.tvs .section-header { border-bottom-color: #99ccff; }
.tvs .section-number { background-color: #99ccff; }

.soundboard .section-header { border-bottom-color: #99ff99; }
.soundboard .section-number { background-color: #99ff99; }

.gfx2 .section-header { border-bottom-color: #ffcc99; }
.gfx2 .section-number { background-color: #ffcc99; }

.switcher .section-header { border-bottom-color: #cc99ff; }
.switcher .section-number { background-color: #cc99ff; }

.streaming .section-header { border-bottom-color: #99ffcc; }
.streaming .section-number { background-color: #99ffcc; }

.section-content {
    padding: 30px;
}

.procedure-block {
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
}

.procedure-header {
    padding: 12px 20px;
    font-weight: 500;
    color: white;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.power-on { background-color: #28a745; }
.testing { background-color: #17a2b8; }
.setup { background-color: #6f42c1; }
.power-off { background-color: #dc3545; }
.troubleshooting { background-color: #fd7e14; }

.procedure-content {
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    padding: 20px;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
    color: #495057;
}

.step-list > li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #6c757d;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
}

.bullet-list {
    list-style: none;
}

.bullet-list li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    color: #495057;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6c757d;
    font-weight: bold;
}

.sub-list {
    margin-top: 8px;
    margin-left: 20px;
}

.sub-list li {
    font-size: 0.95em;
    color: #6c757d;
    padding-left: 10px;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #856404;
}

.warning-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #721c24;
}

.info-box {
    background: #d1ecf1;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 12px;
    margin: 12px 0;
    font-size: 0.9em;
    color: #0c5460;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.tv-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.tv-card h4 {
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

.tv-card p {
    color: #6c757d;
    font-size: 0.9em;
}

.subsection-title {
    font-weight: 600;
    color: #495057;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.placeholder {
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 10px 0;
}
.article-listing {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px;
}

.article-listing p {
    font-size:2rem;
}
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .tv-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .section-content {
        padding: 20px;
    }
}

@media print {
    body {
        padding: 0;
        background: #fff;
    }
    .header {
        display: none;
    }
    .header.print {
        display: flex;
    }
    .section-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 85px;
    }

    .guide-container {
       max-width: 100vw;
       width: 100%;
       box-shadow: none;
       margin: 0;
    }
    .brxe-post-content[data-source=bricks] {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .equipment-section {
        border: none;
    }
    
    .procedure-block:first-child {
        margin-top: 105px;
    }
    .page-break-before {
      page-break-before: always;
      /* OR the newer syntax: */
      break-before: page;
      margin-top: 105px;
    }
}