/* assets/css/frontend-style.css */

.gri-gold-rate-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.gri-intro-paragraph {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 20px;
    border-left: 4px solid #d4af37;
    margin-bottom: 30px;
    border-radius: 4px;
}

.gri-intro-paragraph p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.gri-current-rates {
    margin-bottom: 40px;
}

.gri-current-rates h2 {
    color: #333;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.gri-rate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gri-rate-card {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gri-rate-card.gold-24k {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
}

.gri-rate-card.gold-22k {
    background: linear-gradient(135deg, #f0c420 0%, #c9a227 100%);
}

.gri-rate-card.gold-18k {
    background: linear-gradient(135deg, #e6b800 0%, #b8941e 100%);
}

.gri-rate-card .rate-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gri-rate-card .rate-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.gri-rate-table-section {
    margin-bottom: 40px;
}

.gri-rate-table-section h3 {
    background: #333;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
}

.gri-rate-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gri-rate-table th,
.gri-rate-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.gri-rate-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.gri-rate-table tbody tr:hover {
    background: #fafafa;
}

.gri-rate-table .change.positive {
    color: #28a745;
    font-weight: 600;
}

.gri-rate-table .change.negative {
    color: #dc3545;
    font-weight: 600;
}

.gri-history-section {
    margin-top: 40px;
}

.gri-history-section h3 {
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
}

.gri-history-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gri-history-table th,
.gri-history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.gri-history-table th {
    background: #34495e;
    color: #fff;
    font-weight: 500;
}

.gri-history-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.gri-history-table tbody tr:hover {
    background: #f0f0f0;
}

.gri-last-updated {
    text-align: right;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .gri-rate-cards {
        grid-template-columns: 1fr;
    }
    
    .gri-rate-table,
    .gri-history-table {
        font-size: 14px;
    }
    
    .gri-rate-table th,
    .gri-rate-table td,
    .gri-history-table th,
    .gri-history-table td {
        padding: 10px;
    }
}
/* ===================================
   Related Cities Section
   =================================== */

.gri-related-cities {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.gri-related-cities h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4af37;
    display: inline-block;
}

.gri-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.gri-related-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gri-related-section h4 {
    font-size: 16px;
    color: #555;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.gri-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gri-related-list li {
    margin-bottom: 12px;
}

.gri-related-list li:last-child {
    margin-bottom: 0;
}

.gri-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.gri-related-list a:hover {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.gri-related-list a:hover .gri-related-city {
    color: #1a1a1a;
}

.gri-related-list a:hover .gri-related-rate {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
}

.gri-related-city {
    font-weight: 600;
    font-size: 15px;
    color: #0073aa;
}

.gri-related-state {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.gri-related-rate {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 15px;
}

/* Browse States Section */
.gri-browse-states {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
}

.gri-browse-states h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px 0;
}

.gri-state-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gri-state-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.3s ease;
}

.gri-state-tag:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Related Cards Alternative Style */
.gri-related-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #d4af37;
}

.gri-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.gri-related-card .city-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.gri-related-card .city-state {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.gri-related-card .city-rate {
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
}

/* Responsive */
@media (max-width: 768px) {
    .gri-related-grid {
        grid-template-columns: 1fr;
    }
    
    .gri-related-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gri-related-rate {
        align-self: flex-start;
    }
    
    .gri-state-tags {
        justify-content: center;
    }
}

/* Animation for related items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gri-related-list li {
    animation: slideInRight 0.4s ease forwards;
}

.gri-related-list li:nth-child(1) { animation-delay: 0.1s; }
.gri-related-list li:nth-child(2) { animation-delay: 0.2s; }
.gri-related-list li:nth-child(3) { animation-delay: 0.3s; }