/* Estilos específicos para a página de Refinamento */

/* Event Header Override */
.event-header {
    text-align: center;
}

.event-header .page-title {
    text-align: center;
}

/* Page Header */
.refine-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.refine-banner-container {
    margin-bottom: 20px;
}

.event-banner {
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #000;
}

.refine-banner {
    max-width: 100%;
    width: 75%;
    max-width: 1080px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
}

.refine-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.refine-header p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Banner and TOC Container */
.banner-toc-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.banner-toc-container .event-banner {
    flex: 1;
    text-align: center;
}

/* Table of Contents */
.toc-box {
    background: #f8f9fa;
    border: 2px solid #a2a9b1;
    border-radius: 6px;
    padding: 18px;
    width: 300px;
    flex-shrink: 0;
}

.toc-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #000;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 8px;
}

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

.toc-box ul li {
    margin: 8px 0;
    padding-left: 0;
}

.toc-box ul li:before {
    content: none;
}

.toc-box ul li a {
    color: #0645ad;
    text-decoration: none;
    font-size: 14px;
}

.toc-box ul li a:hover {
    text-decoration: underline;
}

.toc-box ul ul {
    margin-left: 15px;
    margin-top: 5px;
}

/* Section Styling */
.refine-section {
    margin-bottom: 35px;
    clear: both;
}

.refine-section h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.refine-section h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.refine-section h4 {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Intro Text */
.intro-text {
    font-size: 15px;
    line-height: 1.6;
    color: #202122;
    margin-bottom: 15px;
    max-width: 900px;
}

/* Material Types Grid */
.material-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.material-card {
    background: #fff;
    border: 2px solid #a2a9b1;
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.material-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #667eea;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.material-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.material-icons img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.material-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.material-card ul li {
    padding: 6px 0;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.6;
}

.material-card ul li:before {
    content: none;
}

/* Material List */
.material-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 15px 0;
    max-width: 900px;
}

.material-item {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.material-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.material-item-info {
    flex: 1;
}

.material-item-info strong {
    display: block;
    font-size: 15px;
    color: #000;
    margin-bottom: 4px;
}

.material-item-info span {
    font-size: 13px;
    color: #54595d;
}

/* Tables */
.refine-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
    border: 1px solid #a2a9b1;
    font-size: 14px;
}

.refine-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #000;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #a2a9b1;
}

.refine-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #a2a9b1;
}

.refine-table tr:hover {
    background: #f5f5f5;
}

.refine-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.refine-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* Compact Table for Safe Levels */
.compact-table {
    font-size: 13px;
    max-width: 600px;
}

.compact-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Rate Badges */
.rate-100 {
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    font-size: 13px;
}

.rate-high {
    background: #8bc34a;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    font-size: 13px;
}

.rate-medium {
    background: #ff9800;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    font-size: 13px;
}

.rate-low {
    background: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    font-size: 13px;
}

.rate-verylow {
    background: #e91e63;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    font-size: 13px;
}

/* Info Boxes */
.alert-box {
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 5px solid;
    max-width: 900px;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-box > strong:first-child {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Garantir que outros strongs sejam inline */
.alert-box strong:not(:first-child) {
    display: inline;
    margin-bottom: 0;
}

.alert-box p strong {
    display: inline;
}

.alert-box ul {
    margin: 10px 0 5px 0;
    padding-left: 20px;
}

.alert-box ul li {
    margin: 5px 0;
}

.alert-box ul li strong {
    display: inline;
    margin-bottom: 0;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    max-width: 1000px;
}

.comparison-card {
    background: #fff;
    border: 2px solid #a2a9b1;
    border-radius: 6px;
    padding: 20px;
}

.comparison-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #667eea;
}

.comparison-card .highlight-box {
    background: #f0f7ff;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Bonus Table */
.bonus-section {
    margin: 30px 0;
}

.bonus-highlight {
    background: #fffde7;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
    max-width: 1100px;
}

.tip-card {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    padding: 18px;
}

.tip-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #667eea;
}

.tip-card ul {
    margin: 0;
    padding-left: 20px;
}

.tip-card ul li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    margin: 25px 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 6px;
    padding: 15px 18px;
    margin-bottom: 12px;
    max-width: 900px;
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #667eea;
}

.faq-item p {
    margin: 0;
    line-height: 1.7;
    font-size: 14px;
    color: #202122;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-toc-container {
        flex-direction: column;
    }

    .toc-box {
        width: 100%;
    }

    .refine-banner {
        width: 90%;
    }

    .refine-header h1 {
        font-size: 28px;
    }

    .material-types,
    .material-list {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .refine-table {
        font-size: 12px;
    }

    .refine-table th,
    .refine-table td {
        padding: 8px 5px;
    }
}
