/* MX Gold Silver Plugin Styles */

/* Main wrapper */
.mx-gold-silver-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Pillar Content Tables */
.mx-pillar-table-wrapper {
    margin: 25px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mx-pillar-table-wrapper h3 {
    color: #d4af37 !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    font-size: 18px !important;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.mx-pillar-content-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    border: 2px solid #d4af37 !important;
    font-family: Arial, sans-serif !important;
}

.mx-pillar-content-table thead {
    background-color: #f9f9f9 !important;
}

.mx-pillar-content-table th {
    border: 2px solid #d4af37 !important;
    padding: 12px 10px !important;
    text-align: center !important;
    font-weight: bold !important;
    vertical-align: middle !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.mx-pillar-content-table td {
    border: 2px solid #d4af37 !important;
    padding: 10px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
    background-color: #ffffff !important;
    color: #333 !important;
    font-size: 13px !important;
}

.mx-pillar-content-table tr:nth-child(even) td {
    background-color: #f9f9f9 !important;
}

.mx-pillar-content-table tr:hover td {
    background-color: #fff5dc !important;
}

/* Separator lines */
.mx-pillar-table-wrapper hr {
    border: 1px solid #d4af37 !important;
    margin: 20px 0 !important;
    height: 1px !important;
    background-color: #d4af37 !important;
}

/* Regular gold/silver rates tables */
.mx-gold-silver-rates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #d4af37;
}

.mx-gold-silver-rates-table th,
.mx-gold-silver-rates-table td {
    border: 2px solid #d4af37;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.mx-gold-silver-rates-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.mx-gold-silver-rates-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.mx-gold-silver-rates-table tr:hover {
    background-color: #fff5dc;
}

/* Table wrapper */
.mx-gold-silver-table-wrapper {
    overflow-x: auto;
    margin: 15px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .mx-pillar-content-table th,
    .mx-pillar-content-table td {
        padding: 8px 5px !important;
        font-size: 12px !important;
    }
    
    .mx-pillar-table-wrapper h3 {
        font-size: 16px !important;
    }
    
    .mx-gold-silver-table-wrapper {
        overflow-x: scroll;
    }
}

/* Ads placement */
.mx-ads-placement {
    margin: 20px 0;
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.mx-ads-top {
    margin-bottom: 25px;
}

.mx-ads-middle {
    margin: 25px 0;
}

.mx-ads-bottom {
    margin-top: 25px;
}

/* Simple rates display */
.mx-simple-rates {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin: 15px 0;
}

.mx-simple-rates h4 {
    color: #d4af37;
    margin-bottom: 10px;
}

/* Inline rates */
.mx-inline-rates {
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Last updated */
.mx-last-updated {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Rate trend */
.mx-rate-trend {
    padding: 10px;
    background: #e8f5e8;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
}

/* Change indicators */
.positive {
    color: #008000 !important;
    font-weight: bold !important;
}

.negative {
    color: #cc0000 !important;
    font-weight: bold !important;
}

/* Pillar content */
.mx-pillar-content {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mx-pillar-section {
    margin-bottom: 30px;
}

.mx-pillar-section h3 {
    color: #d4af37;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.mx-pillar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #d4af37;
}

.mx-pillar-table thead {
    background: linear-gradient(135deg, #d4af37, #f7e98e);
    color: #333;
}

.mx-pillar-table th,
.mx-pillar-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.mx-pillar-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.mx-pillar-table tbody tr:hover {
    background-color: #f8f8f8;
}

.mx-historical-table th {
    background: linear-gradient(135deg, #8b4513, #daa520);
    color: white;
}

/* Positive and negative change styling */
.mx-pillar-table .positive {
    color: #28a745;
    font-weight: 600;
}

.mx-pillar-table .negative {
    color: #dc3545;
    font-weight: 600;
}

/* Enhanced table headers */
.mx-pillar-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

/* FAQ Section Styling */
.mx-faq-section {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mx-faq-section h2 {
    color: #d4af37;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.mx-faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #d4af37;
}

.mx-faq-question {
    background: linear-gradient(135deg, #f7f7f7 0%, #eeeeee 100%);
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mx-faq-question:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f7e98e 100%);
    color: #333;
}

.mx-faq-answer {
    padding: 20px;
    background: white;
    line-height: 1.6;
    color: #555;
}

.mx-faq-answer p {
    margin-bottom: 10px;
}

/* Loading states */
.mx-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.mx-error {
    background: #ffe6e6;
    color: #d00;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #d00;
    margin: 20px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mx-gold-silver-table-wrapper,
.mx-simple-rates,
.mx-pillar-content {
    animation: fadeIn 0.5s ease-in;
}

/* Print Styles */
@media print {
    .mx-pillar-content,
    .mx-faq-section {
        background: white !important;
        box-shadow: none !important;
    }
    
    .mx-faq-question {
        background: #f0f0f0 !important;
    }
} 