/* General Styles */
h1 {
    font-weight: 700 !important;
}
.gfc-pilar-header, .gfc-confluence-table, .gfc-pilar-news, .gfc-faq-item {
    margin-bottom: 2em;
}

/* Pilar Header */
.gfc-pilar-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gfc-price-card {
    background-color: #e9f3fd;
    border: 1px solid #d2e8ff;
    border-radius: 8px;
    padding: 1rem;
    flex-grow: 1;
    text-align: center;
}

.gfc-price-label {
    display: block;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0.5em;
}

.gfc-price-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

.gfc-price-change.gfc-positive {
    color: #28a745;
    font-size: 1.8em;
}

.gfc-price-change.gfc-negative {
    color: #dc3545;
    font-size: 1.8em;
}

/* Confluence Table */
.gfc-confluence-table {
    width: 100%;
    border-collapse: collapse;
}

.gfc-confluence-table th, .gfc-confluence-table td {
    padding: 0.75rem;
    border: 1px solid #d2e8ff;
    text-align: left;
}

.gfc-confluence-table th {
    background-color: #e9f3fd;
}

.gfc-signal {
    padding: 0.3em 0.6em;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

.gfc-signal-alta, .gfc-signal-muito-positivo, .gfc-signal-positivo {
    background-color: #28a745;
}

.gfc-signal-baixa, .gfc-signal-muito-negativo, .gfc-signal-negativo {
    background-color: #dc3545;
}

.gfc-signal-neutro {
    background-color: #ffc107;
    color: #333;
}

.gfc-confluence-conclusion {
    margin-top: 1em;
    font-size: 1.2em;
    text-align: center;
    padding: 1em;
    background-color: #e9f3fd;
    border: 1px solid #d2e8ff;
    border-radius: 8px;
}

/* FAQ Shortcode */
.gfc-faq-item {
    border: 1px solid #d2e8ff;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.gfc-faq-question {
    background-color: #e9f3fd;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: bold;
}

.gfc-faq-answer {
    padding: 1rem;
    display: none; /* Handled by JS if available, or simple show/hide */
}

/* News Section */
.gfc-pilar-news .gfc-news-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.gfc-pilar-news .gfc-news-item:last-child {
    border-bottom: none;
}

/* Lazy Loading Chart */
.gfc-chart-wrapper {
    position: relative;
    min-height: 610px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfc-chart-placeholder {
    text-align: center;
    color: #666;
}

.gfc-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(3600deg); }
}

/* Auto Link SEO */
.gfc-auto-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    color: inherit;
    font-weight: 500;
}

.gfc-auto-link:hover {
    color: #3498db;
    text-decoration-style: solid;
}

/* Responsive */
@media (max-width: 768px) {
    .gfc-pilar-header {
        flex-direction: column;
    }
    .content-area {
        width: 100% !important;
        float: none !important;
    }
}

div.page-header-image {
    max-height: 45vh;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}