/* Container for the currency grid */
.currency-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

/* Individual modern currency card styling */
.currency-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rounded miniature flag element inside the card */
.currency-flag-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease;
}

/* Bold currency abbreviation text formatting */
.currency-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    z-index: 2;
}

/* Action helper text under code */
.currency-action {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Sleek interaction states for premium feel */
.currency-card:hover {
    background: #ffffff;
    border-color: #2563eb; 
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

.currency-card:hover .currency-flag-wrapper {
    transform: scale(1.1);
}

.currency-card:hover .currency-action {
    color: #2563eb; 
}