/* assets/css/public.css */

.cds-rates-wrapper {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.cds-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.cds-section-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.cds-section-header p {
    color: #7f8c8d;
    font-size: 16px;
}

.cds-rates-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cds-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

.cds-rate-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
    background-color: white;
}

.cds-rate-row:last-child {
    border-bottom: none;
}

.cds-term {
    font-weight: bold;
    color: #2c3e50;
}

.cds-apy {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

.cds-vs-avg {
    color: #27ae60;
}

.cds-trends-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.cds-trends-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Responsive design */
@media (max-width: 768px) {
    .cds-table-header,
    .cds-rate-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .cds-table-header span {
        display: none;
    }

    .cds-rate-row::before {
        content: attr(data-label);
        font-weight: bold;
        color: #7f8c8d;
    }

    .cds-rate-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
}